CLI Reference
Generated from the live command tree by uv run stk inspect commands --markdown.
Do not edit it by hand: stk verify fails when this page and the code disagree.
Agents can read the same data as JSON with uv run stk inspect commands --json.
Develop
Section titled “Develop”stk new
Section titled “stk new”stk new [OPTIONS] NAME
Scaffold a new blueprint module, ending at a page you can open.
| Option | Description |
|---|---|
--migrate, --no-migrate |
Autogenerate and apply the migration for the new model. |
--port |
Port used in the URL. |
stk routes
Section titled “stk routes”stk routes [OPTIONS]
Show all registered routes with endpoints and methods.
| Option | Description |
|---|---|
--sort, -s |
Method to sort routes by. “match” is the order that Quart will match routes when dispatching a request. |
--all-methods |
Show HEAD and OPTIONS methods. |
stk run
Section titled “stk run”stk run [OPTIONS]
Run a local development server.
| Option | Description |
|---|---|
--host, -h |
The interface to bind to. |
--port, -p |
The port to bind to. |
--certfile, --cert |
Specify a certificate file to use HTTPS. |
--keyfile, --key |
The key file to use when specifying a certificate. |
--reload, --no-reload |
Enable or disable the reloader |
stk shell
Section titled “stk shell”stk shell [OPTIONS]
Async REPL with the app, a live DB session, and all models loaded.
| Option | Description |
|---|---|
-c, --command |
Run code and exit. |
Database
Section titled “Database”stk create-db
Section titled “stk create-db”stk create-db [OPTIONS]
Apply all database migrations.
stk db check
Section titled “stk db check”stk db check [OPTIONS]
Fail if models have drifted away from the migrations.
stk db current
Section titled “stk db current”stk db current [OPTIONS]
Show the current database revision.
stk db downgrade
Section titled “stk db downgrade”stk db downgrade [OPTIONS] REVISION
Downgrade the database to a target revision.
stk db history
Section titled “stk db history”stk db history [OPTIONS]
Show migration history.
stk db revision
Section titled “stk db revision”stk db revision [OPTIONS]
Create a new migration revision.
| Option | Description |
|---|---|
-m, --message |
Revision message |
--autogenerate, --empty |
Autogenerate from model metadata or create an empty revision |
stk db stamp
Section titled “stk db stamp”stk db stamp [OPTIONS] [REVISION]
Stamp a database with a revision without running migrations.
stk db upgrade
Section titled “stk db upgrade”stk db upgrade [OPTIONS] [REVISION]
Upgrade the database to a target revision.
Verify
Section titled “Verify”stk doctor
Section titled “stk doctor”stk doctor [OPTIONS]
Report the state of this checkout, and what to run for anything wrong.
| Option | Description |
|---|---|
--json |
Emit JSON. |
stk inspect commands
Section titled “stk inspect commands”stk inspect commands [OPTIONS]
Inspect every stk command and its options.
| Option | Description |
|---|---|
--json |
Emit JSON. |
--markdown |
Emit the docs CLI reference page. |
stk inspect context
Section titled “stk inspect context”stk inspect context [OPTIONS]
Inspect routes and models as one agent-readable contract.
| Option | Description |
|---|---|
--json |
Emit JSON. |
stk inspect routes
Section titled “stk inspect routes”stk inspect routes [OPTIONS]
Inspect registered routes.
| Option | Description |
|---|---|
--json |
Emit JSON. |
stk report
Section titled “stk report”stk report [OPTIONS]
Generate a static project report.
| Option | Description |
|---|---|
-o, --output |
HTML output path. |
--json |
Emit JSON. |
stk smoke
Section titled “stk smoke”stk smoke [OPTIONS]
Run a real-browser smoke check against a temporary development app.
| Option | Description |
|---|---|
--json |
Emit JSON. |
stk verify
Section titled “stk verify”stk verify [OPTIONS]
Run STK verification checks.
| Option | Description |
|---|---|
--json |
Emit JSON. |
-w, --watch |
Re-run affected checks on every file save. |
Accounts
Section titled “Accounts”stk add-role
Section titled “stk add-role”stk add-role [OPTIONS]
Adds a role to the specified user.
| Option | Description |
|---|---|
-e, --email |
|
-r, --role |
stk browser-token create
Section titled “stk browser-token create”stk browser-token create [OPTIONS]
Create a signed test-only browser login URL.
| Option | Description |
|---|---|
--user |
Test user email. |
--ttl |
Token TTL in seconds. |
--next |
Local redirect path. |
stk cleanup-sessions
Section titled “stk cleanup-sessions”stk cleanup-sessions [OPTIONS]
Deactivate expired sessions and delete old rows.
stk create
Section titled “stk create”stk create [OPTIONS]
Creates a user using an email.
| Option | Description |
|---|---|
-e, --email |
|
-p, --password |
stk install
Section titled “stk install”stk install [OPTIONS]
Install a default admin user and add an admin role to it.
| Option | Description |
|---|---|
-e, --email |
Admin email |
-p, --password |
Admin password |
stk protect-mfa
Section titled “stk protect-mfa”stk protect-mfa [OPTIONS]
Encrypt legacy MFA seeds or rotate them to the current key.
stk reset
Section titled “stk reset”stk reset [OPTIONS]
Reset a user password using email
| Option | Description |
|---|---|
-e, --email |
|
-p, --password |

