rok-cli-0.1.3 is not a library.
rok-cli
Developer CLI for rok-based Axum applications. Scaffold models, controllers,
migrations, jobs, and events; manage databases; run the TUI dashboard; and
orchestrate AI agents for automated phase execution.
Installation
cargo install rok-cli
Commands
Code Generation
rok make:model User --migration rok make:controller UserController --resource rok make:migration create_posts_table
rok make:middleware AuthMiddleware
rok make:job SendWelcomeEmail
rok make:event UserRegistered
rok make:listener SendWelcomeEmailListener
rok make:scaffold auth rok make:scaffold billing
rok make:feature --spec feature.json
Database
rok db:migrate
rok db:rollback
rok db:rollback --steps 3
rok db:status
rok db:fresh rok db:pull
Planning & Agents
rok plan:next rok plan:list rok plan:graph rok plan:status --phase 40
rok agent:rules rok agent:context --phase 40 rok agent:claude --phase 40 rok agent:opencode
Utilities
rok key:generate rok ts-client --output types/ rok routes rok dev rok new my-app
TUI / Studio
rok tui rok studio
JSON Output
All commands support --json / -j for machine-readable output:
rok plan:next --json
rok plan:list --json | jq '.[] | select(.complete == false)'