Skip to main content

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

ArgumentTypeRequiredDescription
PROJECT_REFtextyesProject slug or UUID (with --yes, the exact slug).

Options

OptionTypeDefaultRequiredDescription
--yes, -yflagSkip the typed confirmation; the argument must then be the project's exact slug.
--archiveflagArchive (soft-delete, restorable) instead of deleting permanently.
--forceflagDelete (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

ArgumentTypeRequiredDescription
PROJECT_REFtextyesProject slug or UUID.

Options

OptionTypeDefaultRequiredDescription
--output, -opathWrite to this file instead of stdout.
--includetextSections to export, comma-separated: versions, classes, properties, paths, tags (default: all of them).
--excludetextSections to leave out, comma-separated.
--versionstextOnly these versions, by label (e.g. v2.0.0,v2.1.0).
--formattextjsonjson (streamed) or yaml (built in memory).
--gzipflagCompress the output with gzip (reproducible bytes).
--deterministic / --no-deterministicflag--deterministicSort 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

ArgumentTypeRequiredDescription
PROJECT_IDuuidyesProject 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

ArgumentTypeRequiredDescription
PROJECT_REFtextyesProject slug or UUID.

Options

OptionTypeDefaultRequiredDescription
--nametextNew display name.
--renametextNew slug. Asks for confirmation (or --yes): links using the old slug stop working.
--descriptiontextNew description; an empty string clears it.
--domaintextDomain category: iot, social, gaming, travel, media, ecommerce, healthcare, finance, saas, education, realestate, logistics, or none.
--from-filepathApply an edited projects get --json dump; fails (exit 6) if the project changed since the dump.
--yes, -yflagSkip the --rename confirmation.
--dry-runflagPrint the changes as a diff without sending them.