apiome projects
Global options such as --base-url, --tenant and --json go before the command — see CLI reference. Exit codes are listed in Exit codes.
apiome projects
List, fetch, update, delete and export tenant projects.
apiome projects [OPTIONS] COMMAND [ARGS]...
Subcommands: delete, export, get, list, update.
apiome projects delete
Delete a project — permanently, or with --archive restorably (DELETE /v1/projects/{tenant}/{id}).
Shows what will be removed, refuses a project with published versions unless --force is passed (exit 6), and asks you to type the project slug before a permanent delete.
apiome projects delete [OPTIONS] PROJECT_REF
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT_REF | text | yes | Project slug or UUID (with --yes, the exact slug). |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--yes, -y | flag | Skip the typed confirmation; the argument must then be the project's exact slug. | ||
--archive | flag | Archive (soft-delete, restorable) instead of deleting permanently. | ||
--force | flag | Delete (or archive) even though the project has published versions (exit 6 without). |
apiome projects export
Export a whole project as one JSON (or YAML) document — versions, classes, paths, tags.
The document format is apiome.project-export version 1. Summary counts and the document's SHA-256 go to stderr, so stdout carries only the export.
apiome projects export [OPTIONS] PROJECT_REF
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT_REF | text | yes | Project slug or UUID. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--output, -o | path | Write to this file instead of stdout. | ||
--include | text | Sections to export, comma-separated: versions, classes, properties, paths, tags (default: all of them). | ||
--exclude | text | Sections to leave out, comma-separated. | ||
--versions | text | Only these versions, by label (e.g. v2.0.0,v2.1.0). | ||
--format | text | json | json (streamed) or yaml (built in memory). | |
--gzip | flag | Compress the output with gzip (reproducible bytes). | ||
--deterministic / --no-deterministic | flag | --deterministic | Sort keys for byte-identical output across runs; --no-deterministic adds exportedAt. |
apiome projects get
Fetch one project by id (GET /v1/projects/{tenant_slug}/{project_id}).
apiome projects get [OPTIONS] PROJECT_ID
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT_ID | uuid | yes | Project UUID. |
apiome projects list
List projects (GET /v1/projects/{tenant_slug}).
apiome projects list [OPTIONS]
apiome projects update
Update a project's name, slug, description or domain (PUT /v1/projects/{tenant}/{id}).
Only the fields that change are sent. Every update carries the project's updated_at as a precondition — the dump's for --from-file, otherwise the one read just before the write — so a concurrent edit is never overwritten: the command exits 6 instead.
apiome projects update [OPTIONS] PROJECT_REF
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT_REF | text | yes | Project slug or UUID. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--name | text | New display name. | ||
--rename | text | New slug. Asks for confirmation (or --yes): links using the old slug stop working. | ||
--description | text | New description; an empty string clears it. | ||
--domain | text | Domain category: iot, social, gaming, travel, media, ecommerce, healthcare, finance, saas, education, realestate, logistics, or none. | ||
--from-file | path | Apply an edited projects get --json dump; fails (exit 6) if the project changed since the dump. | ||
--yes, -y | flag | Skip the --rename confirmation. | ||
--dry-run | flag | Print the changes as a diff without sending them. |