CLI reference
Every command the strata CLI accepts. Run npx strata <command> --help for the same text in your terminal.
Global flags
Flag | Meaning |
|---|---|
| Act on this project instead of the linked one |
| Print machine-readable output |
| Answer yes to every prompt |
Commands
strata dev
Start the database, storage and your app locally.
strata migrate dev
Create a migration from contract changes and apply it locally.
npx strata migrate dev --name add_tagsstrata migrate deploy
Apply pending migrations to the target database. Use in CI.
strata deploy
Build and deploy the current project.
Flag | Default | Meaning |
|---|---|---|
|
| Target environment |
| project default | Override the region for this deploy |
| off | Skip |
strata postgres create
Create a managed database and write its URL to .env.
Updated
Was this page helpful?