Commands
Running Services
Section titled “Running Services”tilt upTilt installs dependencies, starts infrastructure, runs migrations, and launches all services. Open the Tilt UI at http://localhost:10350 for logs and manual resource triggers (seed, introspection).
Database
Section titled “Database”cd server/packages/db && bun run db:generate # Generate migrationscd server/packages/db && bun run db:migrate # Apply migrationscd server/packages/db && bun run db:studio # Drizzle Studio UIcd server/packages/db && bun run db:seed # Seed dataTilt runs db:generate and db:migrate automatically on startup. Seed and introspection are available as manual triggers in the Tilt UI.
Production bootstrap
Section titled “Production bootstrap”cd server/packages/api && bun run bootstrap # Prepare a fresh deploymentcd server/packages/api && bun run deploy:prepare # Wait for the database, migrate, then bootstrapdb:seed fills a disposable local database with demo data. A deployment runs bootstrap after migrations instead. It installs the model and tool catalog, creates the first owner (BOOTSTRAP_OWNER_EMAIL) with an organization (BOOTSTRAP_ORGANIZATION_NAME) and a default project, and adds a starter workflow if that organization has never had a workflow, so an archived starter stays archived. Each step skips what already exists, so it is safe to run on every deploy. The owner signs in with an email code, so sign-up can stay disabled.
The API sends sign-in codes as AUTH_EMAIL_DELIVERY says: resend emails them (set RESEND_API_KEY and TRANSACTIONAL_EMAIL_ADDRESS), and log writes them to the API log. Anyone who can read the log can sign in as anyone, so use log only locally or when you are the only person with access to the deployment’s logs.
Go Model Generation
Section titled “Go Model Generation”After schema changes, regenerate Go models from the Drizzle-managed Postgres schema:
cd models/db && go run ./cmd/introspectAlso available as a manual trigger in the Tilt UI.
Linting & Analysis
Section titled “Linting & Analysis”cd server && bunx biome check packages # TypeScript lint/formatTesting
Section titled “Testing”cd server && bun test # API and shared contract testsDocumentation Site
Section titled “Documentation Site”Started automatically by tilt up, or run standalone:
cd serverbun install --frozen-lockfilebun run --filter arcnem-vision-docs dev # Docs site on :4321