apiome properties
Global options such as --base-url, --tenant and --json go before the command — see CLI reference. Exit codes are listed in Exit codes.
apiome properties
List, show, fetch, create, update, delete and copy project properties.
apiome properties [OPTIONS] COMMAND [ARGS]...
Subcommands: copy, create, delete, get, list, show, update.
apiome properties copy
Copy properties to another project of the same tenant (GET, then POST / PUT per property).
A name the destination already has is skipped, unless --update.
Nothing is written if a property refers to a primitive the tenant lacks (exit 7).
--to <tenant>/<project> naming another tenant exits 4. Properties have no tags.
apiome properties copy [OPTIONS] SRC_PROJECT [NAMES]
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT_REF | text | yes | Source project slug or UUID. |
NAMES_ARG | text | Property name(s) to copy, comma-separated (or pass --all). |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--to | text | yes | Destination project: <project>, or <tenant>/<project> (same tenant). | |
--all | flag | Copy every property of the source project. | ||
--rename | text | Name in the destination (one property only). | ||
--update | flag | Overwrite a destination property with the same name. | ||
--skip-conflicts | flag | Leave a destination property with the same name alone (the default). | ||
--dry-run | flag | Show what would be copied, and the conflicts, without writing. | ||
--yes, -y | flag | Skip the question --update asks before overwriting. |
apiome properties create
Create a property from a primitive (POST /v1/properties/{tenant}/{project}).
The primitive's JSON Schema is copied in; each example is checked against it locally.
On a terminal, missing fields are asked for. Properties have no tags.
Exit 7, one line per field, when the property is invalid.
apiome properties create [OPTIONS] PROJECT
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT_REF | text | yes | Project slug or UUID. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--name | text | Property name (unique in the project). | ||
--primitive | text | Primitive whose schema the property copies: name, UUID or $id. | ||
--description | text | What the property holds. | ||
--example | text (repeatable) | An example value (repeatable); read as JSON when it parses, else as text. | ||
--from-file | path | JSON or YAML object with name, primitive, description and examples. | ||
--yes, -y | flag | Skip the final question the prompts ask. |
apiome properties delete
Delete a property once no class uses it (DELETE /v1/properties/{tenant}/{project}/{id}).
In use, it lists the class attributes and exits 6.
--force --yes removes those attributes and deletes it in one server transaction.
A use in a published version refuses even a forced delete (exit 6).
apiome properties delete [OPTIONS] PROJECT PROPERTY
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT_REF | text | yes | Project slug or UUID. |
PROPERTY_REF | text | yes | Property name or UUID. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--yes, -y | flag | Skip the typed confirmation. | ||
--force | flag | Remove it from the classes that use it, then delete it (needs --yes). |
apiome properties get
Fetch one property by id (GET /v1/properties/{tenant_slug}/{project_id}/{id}).
apiome properties get [OPTIONS] PROPERTY_ID
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROPERTY_ID | uuid | yes | Property UUID. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project-id | uuid | yes | Project UUID. |
apiome properties list
List a project's properties with their type and the classes that use them (GET /v1/properties/{tenant}/{project}).
Properties have no tags and are not bound to primitives, so the TYPE column is read from each property's JSON Schema (its format, else its type).
apiome properties list [OPTIONS] [PROJECT]
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT_REF | text | Project slug or UUID (or pass --project-id). |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project-id | uuid | Project UUID (the older form). | ||
--type, --primitive | text | Only properties of this schema type, e.g. string, uuid, date-time, array<string>. | ||
--search | text | Case-insensitive text in the name or description. | ||
--unused | flag | Only properties no class uses. | ||
--limit | integer range | 50 | Show at most this many. | |
--all | flag | Show every match (ignores --limit). |
apiome properties show
Show one property: its type, constraints, examples, description and the classes that use it.
The name is matched exactly, then ignoring case; a miss suggests the closest names (exit 2). --json prints the full property with usage of {class_name, attribute_name, required}.
apiome properties show [OPTIONS] PROJECT PROPERTY
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT_REF | text | yes | Project slug or UUID. |
PROPERTY_REF | text | yes | Property name or UUID. |
apiome properties update
Change a property's name, description, primitive or examples (PUT /v1/properties/{tenant}/{project}/{id}).
Only changed fields are sent. A concurrent edit since the read (or the file) exits 6.
--primitive is refused (exit 6) while a class requires the property, unless --allow-breaking.
Field problems exit 7. Properties have no tags.
apiome properties update [OPTIONS] PROJECT PROPERTY
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT_REF | text | yes | Project slug or UUID. |
PROPERTY_REF | text | yes | Property name or UUID. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--name | text | Rename the property. | ||
--primitive | text | Re-copy the schema from this primitive (name, UUID or $id); keeps examples. | ||
--description | text | New description; an empty string clears it. | ||
--add-example | text (repeatable) | Add an example (repeatable). | ||
--remove-example | text (repeatable) | Remove an example (repeatable). | ||
--required-everywhere / --optional-everywhere | flag | --optional-everywhere | Mark it required (or optional) on every class attribute using it, in unpublished versions. | |
--from-file | path | Apply an edited properties show --json dump (JSON or YAML); exit 6 if it changed since. | ||
--allow-breaking | flag | Change the primitive even though classes require the property. | ||
--dry-run | flag | Print the changes as a diff without sending them. | ||
--yes, -y | flag | Skip the question --primitive and --required-everywhere ask. |