Commands Reference

Rakiba uses Babashka (bb) tasks for all operations. Commands are organized by category and where they should be run from.

Rakiba Root Commands

Run these from the rakiba/ directory:

CommandDescription
bb init <project>Create a new project
bb project:sync <project>Update project’s lib space from templates
bb project:sync:allSync all projects in projects/
bb project:scaffold <project>Setup and scaffold project after init
bb project:example <project> <type>Scaffold example code (api, routes, websocket, etc.)
bb project:bench <project> <server>Benchmark server performance
bb project:listList discovered projects
bb project:start <project>Start a project
bb project:stop <project>Stop a project
bb project:restart <project>Restart a project
bb project:logs <project>Tail project logs
bb project:statusShow status of all projects with metrics
bb adminStart admin web dashboard on port 4000
bb admin:tuiLaunch interactive TUI dashboard

Project Commands

Run these from your project directory (projects/<name>/):

CommandDescription
bb cljStart Clojure nREPL server
bb cljsStart shadow-cljs with hot reload
bb sassWatch and compile SASS
bb testRun tests
bb buildBuild uberjar for production

VPS Commands

Manage remote VPS targets for deployment:

CommandDescription
bb vps:add <user@host> --name <name>Add VPS to inventory (verifies SSH connectivity)
bb vps:add <user@host> --name <name> --port 2222 --key ~/.ssh/id_rsaAdd with custom SSH port and key
bb vps:listList all VPS targets
bb vps:remove <name>Remove VPS from inventory
bb vps:status <name>Show VPS connection status
bb vps:verify <name>Verify VPS connectivity and requirements

Local Sandbox Commands

Create and manage Docker-based local environments for testing deployments:

CommandDescription
bb local:create ubuntu@24.04 --name <name>Create new sandbox
bb local:destroy <name> [--force]Destroy sandbox
bb local:list [--quiet]List all sandboxes
bb local:status <name> [--json]Show sandbox status
bb local:start <name> [--no-wait]Start a stopped sandbox
bb local:stop <name> [--timeout <seconds>]Stop sandbox container
bb local:shell <name> [--root] [--cmd CMD]Open shell in sandbox
bb local:logs <name> [service]View sandbox logs
bb local:upgrade <name>Upgrade sandbox to match config
bb local:dns-setupConfigure host DNS for *.rakiba.test (requires sudo)
bb local:dns-statusCheck DNS configuration status
bb local:dns-removeRemove DNS configuration
bb deploy <project> --target <name>Deploy project to sandbox or VPS
bb deploy:status --target <name>Show deployed apps status
bb deploy:rollback <project> --target <name> [--to <sha>]Rollback deployment
bb deploy:history <project> --target <name>Show deployment history

Service Commands

Manage Docker Compose services for local development (PostgreSQL, Valkey, Datomic, etc.):

CommandDescription
bb services:upStart all managed services
bb services:downStop all managed services
bb services:resetReset managed services (removes volumes)
bb services:logs [service]Tail managed service logs
bb services:setupFirst-time setup of managed services
bb services:sync-aclRegenerate Valkey ACL file and reload

Backup Commands

Backup and restore project data:

CommandDescription
bb backup <project>Backup a project
bb backup:allBackup all projects
bb backup:list <project>List backups for a project
bb backup:restore <project> <backup-id> [--yes]Restore from backup
bb backup:verify <project>Verify backup integrity
bb backup:prune [--dry-run]Run retention cleanup
bb backup:statusShow backup status
bb backup:rotate-key <new-key-id>Rotate encryption key

Testing Commands

Run tests and manage test environments:

CommandDescription
bb testRun all tests
bb test:libRun lib unit tests (fast, <5s)
bb test:replStart REPL for fast test iteration
bb test:integrationRun all integration tests
bb test:integration:quickRun quick smoke test subset
bb test:ssh-container:createCreate SSH test container
bb test:ssh-container:destroyDestroy SSH test container
bb test:ssh-container:statusShow SSH test container status

Admin Commands

Admin dashboard and user management:

CommandDescription
bb adminStart admin web dashboard (GraalVM binary)
bb admin:jvmStart admin via JVM (dev mode, slower startup)
bb admin:tuiLaunch interactive TUI dashboard
bb admin:buildBuild GraalVM native-image admin binary
bb admin:sassWatch and compile admin SASS to CSS
bb admin:sass:buildCompile admin SASS to CSS (one-time)
bb admin:user:create --username NAME --role ROLECreate admin user
bb admin:user:reset-password --username NAMEReset admin user password
bb admin:user:listList admin users

Utility Commands

Miscellaneous development utilities:

CommandDescription
bb util:depsCheck what dependency updates are available
bb secrets:generate <project>Generate cryptographic secrets for a project
bb tmuxLaunch tmux session from :startup config