{"title":"Amber CLI","description":"Standalone Amber V2 CLI installation and command reference","section":"","version":"v2","path":"cli","canonical_url":"https://amberframework.org/docs/v2/cli","markdown_url":"https://amberframework.org/docs/v2/cli.md","inherited":false,"content_markdown":"# Amber CLI\n\nAmber CLI `2.0.6` is the standalone project generator, development watcher,\ngenerator suite, database tool, and diagnostics LSP for Amber V2.\n\n```bash\nbrew install amberframework/amber_cli/amber_cli\namber --version\n```\n\nThe fully qualified command follows Homebrew's tap-trust model. The formula is\n`amber_cli`; the executable is `amber`.\n\n## Supported quick start\n\n**Run from: a parent directory where `my_app/` can be created. Commands after\n`cd my_app` run from the generated application root.**\n\n```bash\namber new my_app --type web\ncd my_app\nshards install\namber assets check\namber generate scaffold Pet name:string:required species:string:required adopted:bool\namber database migrate\ncrystal spec\namber watch\n```\n\n## Commands\n\n| Command | Beta status | Purpose |\n|---|---|---|\n| [`new`](new/) | Supported for web | Create web or preview native apps |\n| [`generate`](generate/) | Mixed | Generate core or preview components |\n| [`watch`](watch/) | Supported | Rebuild and restart the app |\n| `routes` | Supported | List configured routes |\n| `pipelines` | Supported | Inspect pipelines |\n| `database` | Supported | Migrate, inspect, roll back, redo, and seed the generated database |\n| `assets` | Supported | Build or verify the fingerprinted asset manifest |\n| `setup:lsp` | Available | Configure the bundled diagnostics LSP |\n\nUse `amber --help` and `amber COMMAND --help` for the installed version's exact\nsyntax.\n\n## Asset commands\n\nRun these from an Amber CLI `2.0.6` application root:\n\n```bash\namber assets build\namber assets check\n```\n\n`build` fingerprints `app/assets/` into `public/assets/` and writes the manifest.\n`check` verifies the manifest, emitted bytes, digests, SRI metadata, MIME types,\nand precompressed files without changing them. `amber new` performs the first\nbuild, and `amber watch` rebuilds assets before recompiling the application when\nauthored files change."}