CLI commands
Run these from the repository that owns the command. kb-1-cloud contains the
Cloud apps and docs; the daemon lives in the local/ submodule and in the public
kb-1-daemon repository.
Fresh cloud checkout
Section titled “Fresh cloud checkout”git submodule update --initpnpm installCloud dev stack
Section titled “Cloud dev stack”pnpm bootstrap:worktree --force-envpm2 start ecosystem.config.jscurl http://127.0.0.1:9988/api/healthpnpm --filter @kb-1-cloud/api seed:devpm2 restart kb1-cloud-dev-daemonSeeded users:
| User | Password | |
|---|---|---|
| Marcus | [email protected] |
dev-password-123 |
| Olivia | [email protected] |
dev-password-123 |
pnpm docs:devpnpm docs:buildpnpm docs:previewpnpm --filter @kb-1-cloud/docs buildChecks
Section titled “Checks”pnpm checkpnpm check:catalogpnpm check:catalog:testpnpm lint:cloudpnpm check runs catalog drift checks, Nx typecheck/test/build targets, and
Cloud lint. Use it before committing docs or code changes.
Local daemon
Section titled “Local daemon”From a daemon checkout:
corepack enablepnpm installKB1_HOME="$PWD/.kb1-quickstart" KB1_PORT=7382 pnpm devUseful probes:
curl http://127.0.0.1:7382/api/healthcurl http://127.0.0.1:7382/api/vaultscurl http://127.0.0.1:7382/api/relay/statusFlush before backup:
curl -X POST http://127.0.0.1:7382/api/vaults/<vault-id>/ops/flushpnpm test:e2epnpm --filter @kb-1-cloud/web test:e2e:gauntletpnpm test:e2e:lifecycleThe full e2e gate needs Docker because local Cloud Hosted tests build and run a managed daemon runtime through the local Docker provider.