Русский перевод документации в работе — содержимое пока на английском.
Справочник
CLI reference · Документация — DomainCraft
Every domaincraft command and flag — generate, validate, bridges, and their options.
Commands
| Command | Description |
|---|---|
domaincraft generate |
Generate code. Interactive bridge selection if --bridge omitted. |
domaincraft validate |
Validate domain.yaml. |
domaincraft bridges |
List known bridges with cache status. |
domaincraft update |
Update the domaincraft core to the latest GitHub release (--check to only report). |
domaincraft --version |
Print the CLI version. |
Global flags
| Flag | Description |
|---|---|
--domain / -d |
Path to domain.yaml. |
--bridge / -b |
Bridge ID, local path, or owner/repo. |
--output / -o |
Output directory. |
--non-interactive |
Force flag-only mode. |
--addons |
Comma-separated infrastructure accelerators that toggle addon templates, e.g. --addons "dapr". |
--update-bridges |
Check cached bridges for newer versions and download them before generating (no prompts, CI-safe). |
generate flags
| Flag | Description |
|---|---|
--admin |
Generate an admin panel; optional bridge ID, default admin-alpine. |
--prune |
Automatically remove/rename orphaned files, rewrite renamed identifiers in custom files, and run the bridge’s migrations (best-effort) when the schema changed, without prompting (CI-friendly). |
--migrate |
After generation, run the bridge’s declared database-migration commands (migrations: in bridge.yaml) against a real database. |
bridges flags
| Flag | Description |
|---|---|
--check-updates |
Contact each cached bridge’s remote and report whether a newer version is available. |
Bridge resolution order
- Local path → use directly.
- Registry ID (e.g.
csharp-restful) → check~/.domaincraft/bridges/, clone if needed. owner/repoGitHub shorthand → clone.- Empty + interactive terminal → show selection menu.