The @nextlevelbuilder/cli package provides the nlb binary for validating, previewing, submitting, and inspecting products on the Next Level Builders Directory.
# Run directly via npx (recommended)
npx @nextlevelbuilder/cli <command>
# Or install globally
npm install -g @nextlevelbuilder/cliValidates a product document JSON file against @nextlevelbuilder/contracts Zod schemas and outputs the deterministic SHA-256 canonical hash.
nlb validate product.json
nlb validate product.json --jsonOptions:
--json: Output machine-readable JSON result{ valid: boolean, contentHash?: string, errors?: Array }.
Renders a visual terminal preview of the product document with Unicode box borders and syntax-colored blocks.
nlb preview product.json
nlb preview product.json --jsonSubmits a product revision into the Next Level Builders Directory review queue. If a paid publishing slot is not yet active, the command provides a direct Polar checkout URL.
nlb submit product.json --org <ORG_UUID> --api-key <YOUR_API_KEY>
nlb submit product.json --org <ORG_UUID> --fast-track
nlb submit product.json --org <ORG_UUID> --pay-only
nlb submit product.json --dry-run
nlb submit product.json --jsonOptions:
-o, --org <orgId>: Organization UUID identifier (required, find at/studio).-k, --api-key <key>: Next Level Builders API Key (nlb_live_...orNLB_API_KEYenv var).-u, --url <url>: Directory base URL (default:https://nextlevelbuilder.io).-n, --notes <notes>: Notes for the moderation review team.--fast-track: Request fast-track priority review.--pay-only: Generate Polar checkout session without immediate moderation submission.--dry-run: Validate schema, compute hash, and simulate submission without sending network mutation.--json: Output result as JSON.
Lists products registered on the directory with Trust Scores and status.
nlb list
nlb list --limit 10 --offset 0
nlb list --page 2
nlb list --jsonOptions:
-l, --limit <limit>: Max products to return (1-50, default: 20).--offset <offset>: Pagination offset (default: 0).-p, --page <page>: Page number (calculated into offset).--json: Output products list in machine-readable JSON format.
Fetches detailed product information and block summaries by product slug, or exports raw LLM-optimized Markdown.
# Structured view:
nlb get my-product-slug
# Raw Markdown for LLMs / AI agents:
nlb get my-product-slug --markdown
nlb get my-product-slug --markdown > product.md
# JSON metadata:
nlb get my-product-slug --jsonOptions:
-m, --markdown: Print raw LLM Markdown representation directly to stdout.--json: Output full product object in JSON format.
Fetches transparent community ranking snapshots and leaderboards.
# Daily snapshot (default):
nlb rankings
# Weekly or monthly window:
nlb rankings weekly
nlb rankings monthly
nlb rankings --jsonDisplays live global platform metrics and directory statistics.
nlb stats
nlb stats --jsonOutputs:
- Published products count
- Outbound click-outs
- Registered builders
- Total community votes
Casts an organic community vote for a product. Note: Organic voting requires user session authentication to prevent automated bot voting.
nlb vote <PRODUCT_UUID> --cookie "<SESSION_COOKIE>"
nlb vote <PRODUCT_UUID> --token "<TURNSTILE_TOKEN>"Uploads images (up to 10MB) or videos (up to 100MB) to Next Level Builders media storage with client-side format and size verification.
nlb upload screenshot.png
nlb upload demo.mp4 --folder "showcase"
nlb upload asset.png --jsonGenerates a Polar checkout session URL for purchasing directory publishing slots or memberships using a Polar product UUID.
nlb checkout <POLAR_PRODUCT_UUID> --email builder@example.com --slug my-toolManages developer API keys. Requires user session cookie authentication.
# List active API keys:
nlb keys list --cookie "<SESSION_COOKIE>"
# Create a new key:
nlb keys create "CI Deployment Key" --cookie "<SESSION_COOKIE>"
# Revoke a key by ID:
nlb keys revoke <KEY_ID> --cookie "<SESSION_COOKIE>"Lists available layout templates or generates a starter JSON file with supported block blueprints.
# List all templates:
nlb template
# Generate starter file:
nlb template dev-tool --out product.json
nlb template saas-launch --out saas.json
nlb template ai-agent --out agent.jsonReads or sets CLI configuration stored in ~/.nlb/config.json.
nlb config
nlb config set api-key nlb_live_your_key_here
nlb config set url https://staging.nextlevelbuilder.ioPerforms system, configuration, API connectivity, and database health diagnostics. Evaluates semantic database health.
nlb doctor
nlb doctor -u https://staging.nextlevelbuilder.io
nlb doctor --jsonQueries organization-authorized traffic for the NLB-hosted product page, including totals, daily series, referrers, countries, devices, and active visitors.
# Uses your existing NLB_API_KEY or saved CLI API key:
nlb traffic my-product
nlb traffic my-product --from 2026-08-01T00:00:00Z --to 2026-08-31T00:00:00Z --jsonOptions:
-k, --api-key <key>: Override the configured API key; it must be authorized for the product organization.-u, --url <url>: Directory API base URL.--from <iso>: UTC ISO start timestamp; defaults to 30 days before the end.--to <iso>: UTC ISO end timestamp; defaults to now.--json: Print the complete{ data: ... }traffic response.
Ranges must be increasing, end no later than now, and span at most 90 days. Unavailable analytics set a nonzero exit status.
Visitor counts measure daily sessions. Identifiers reset each UTC day, so a returning session on the next day counts again; period totals do not represent unique people across the full range. Human output labels this as Daily visitor sessions; JSON preserves the API's visitors field.
To show aggregate traffic publicly, add the Analytics block to your product JSON and submit it through nlb submit product.json --org <ORG_UUID>. nlb validate and nlb preview accept the block and its defaults. Publishing this block opts into public aggregate traffic; detailed breakdowns remain private.