apiome primitives
Global options such as --base-url, --tenant and --json go before the command — see CLI reference. Exit codes are listed in Exit codes.
apiome primitives
Import a tenant's primitives in bulk.
apiome primitives [OPTIONS] COMMAND [ARGS]...
Subcommands: import.
apiome primitives import
Import primitives from a file (POST /v1/primitives/{tenant}/import).
The file holds one primitive or an array of them: name, base (a JSON Schema type) and any schema keyword such as pattern or examples — or name and schema, as types list --json prints.
Every row is checked here first, then reviewed by the server; nothing is written before you confirm, or without --yes when there is no terminal.
A row that fails stops the import with exit 7, unless --continue-on-error.
apiome primitives import [OPTIONS] [FILE]
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
FILE | text | JSON or YAML file of primitives; omit or pass - to read stdin. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--dry-run | flag | Show what would be imported, and the conflicts, without writing. | ||
--update | flag | Overwrite an existing primitive with the same name. | ||
--skip-conflicts | flag | Leave an existing primitive with the same name alone (the default). | ||
--yes, -y | flag | Import without asking. Required when there is no terminal. | ||
--continue-on-error | flag | Import the rows that are fine when others fail, and exit 0. | ||
--report | path | Write a JSON report with one entry per row. |