Skip to content

Configuration

Most projects need no manual configuration:

Terminal window
nbx analyze .
nbx configure

nbx init creates explicit box configuration when defaults are not enough:

Terminal window
nbx init --name my-box --alias app

Use nbx repo to manage multiple repositories inside one box:

Terminal window
nbx repo add ./apps/api --as api
nbx repo add ./apps/web --as web
nbx repo list

Repository aliases must be unique. Changing an alias changes repository identity and requires re-analysis.

nbx configure detects and configures supported coding clients:

Terminal window
nbx configure
nbx configure status

Use nbx configure --force to replace outdated managed assets. Avoid editing generated files by hand.

  • nbx init --ci requires existing box configuration and lock state.
  • nbx status --check exits non-zero when analysis is stale or integrity checks fail.
  • nbx configure -y accepts integration defaults without prompts.
  • nbx verify --digest --audience agent produces a concise verification report.

Local reads use the current box. Use --box, --repo, or --remote explicitly when another target is intended.

A box can have a private copy in your organization. You read it with --remote origin, like a git remote. Hosting is opt-in. First choose the organization:

Terminal window
nbx sync enable --organization <ORGANIZATION>

This writes the organization to the [sync] section of .nbx/nbx.toml. It needs no sign-in and sends nothing about your box; only the usual telemetry runs (see What nbx sends). Review and commit that change. nbx sync disable clears it.

nbx push publishes the private copy, including the source text of each symbol (see What nbx sends). Only some nbx builds include it, and a build without it says so when you read --remote origin. Then read the copy:

Terminal window
nbx search "auth refresh flow" --remote origin

Reading origin needs a sign-in, and it works only on a machine that has pushed the box with nbx push. Another machine, such as a teammate’s clone, reads origin after it pushes the box too. The copy is private to that organization. Public example boxes are in the Showcase.

Preview metadata migrations before applying them:

Terminal window
nbx migrate --dry-run