Skip to main content

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

ArgumentTypeRequiredDescription
FILEtextJSON or YAML file of primitives; omit or pass - to read stdin.

Options

OptionTypeDefaultRequiredDescription
--dry-runflagShow what would be imported, and the conflicts, without writing.
--updateflagOverwrite an existing primitive with the same name.
--skip-conflictsflagLeave an existing primitive with the same name alone (the default).
--yes, -yflagImport without asking. Required when there is no terminal.
--continue-on-errorflagImport the rows that are fine when others fail, and exit 0.
--reportpathWrite a JSON report with one entry per row.