CLI reference

On this page 3

Application commands

CommandPurpose
bun run devStart the local application and API
./buddy migrateApply pending migrations
./buddy generate:migrationsGenerate model-driven schema changes
./buddy testRun the Bun test suite
bun run typecheckRun TypeScript checks
./buddy lintRun the configured linter
./buddy build docsBuild this BunPress site

Data movement

CommandPurpose
bun run export:site -- ...Export NDJSON or one CSV table
bun run import:site -- ...Restore or clone an AnalyticsHQ archive
bun run import:fathom -- ...Backfill from the Fathom API
bun run import:ga -- ...Import a supported Google Analytics export

Pass --help to the underlying script before an operational run. Start imports with --dry-run when supported.

Documentation

./buddy dev docs
./buddy build docs

The production build is written to dist/docs/.bunpress.

Privacy-first analytics, released under the MIT License.