Skip to main content

Documentation Index

Fetch the complete documentation index at: https://86d.app/docs/llms.txt

Use this file to discover all available pages before exploring further.

The 86d CLI is the primary tool for working with your store locally. You use it to start the development server, configure a new store, create and manage modules and templates, run code generation, and diagnose project issues.

Installation

Install the CLI globally with npm:
npm install -g 86d
Inside the 86d monorepo you can run the CLI without a global install:
bun run 86d <command>

What the CLI does

The CLI covers six main areas:
  • Project setup: configure a new store, install dependencies, run migrations, and seed data with a single command.
  • Development server: start the Next.js storefront on your local machine with database connectivity checks.
  • Module management: scaffold custom modules, install community modules from the registry / GitHub / npm, enable or disable modules, and check for updates.
  • Template management: create new themes, install third-party templates, and switch the active template.
  • Code generation: regenerate module imports, the API router, the registry, and component documentation after you edit config.json.
  • Diagnostics: run 86d doctor for a full health check with fix suggestions.

Command reference

CommandDescription
86d devStart the store development server
86d init [--yes]Configure a local store (env, deps, migrate, seed)
86d statusShow project health and configuration
86d doctorDiagnose project issues with fix suggestions
86d module create <name>Scaffold a new module
86d module add <specifier>Add a module from the registry, GitHub, or npm
86d module update [name]Check for and apply module updates
86d module listList all local modules
86d module search [query]Search the registry for modules
86d module info <name>Show module details
86d module enable <name>Enable a module in the active template
86d module disable <name>Disable a module in the active template
86d template create <name>Scaffold a new template from brisa
86d template add <specifier>Add a template from GitHub or npm
86d template remove <name>Remove an installed template
86d template activate <name>Switch the store to use a template
86d template listList all templates
86d generateRun all code generation
86d generate modulesGenerate module imports and the API router
86d generate registryGenerate registry.json
86d generate componentsGenerate component documentation
See Flags and usage reference for full details on every command.

Typical development workflow

This sequence covers the common setup-and-develop loop:
# 1. Configure the store: sets up .env, installs deps, runs migrations, seeds demo data
86d init

# 2. Check that everything is healthy before you start
86d doctor

# 3. Start the development server
86d dev

# 4. Scaffold a new module when you need custom functionality
86d module create loyalty-points

# 5. Enable it in your active template
86d module enable loyalty-points

# 6. Regenerate imports and the API router so the module is wired in
86d generate

Adding a community module

To install a published community or first-party module from the registry:
86d module add reviews
86d module add @86d-app/reviews
86d module add github:owner/repo/modules/loyalty
86d module add npm:@acme/commerce-module
The CLI fetches the module, installs its dependencies, enables it in the active template, and prompts you to run 86d generate. See Add a module for the full workflow.