Skip to main content

App commands

Every command exits non-zero on failure. Commands that create or remove apps run as a named user, because the apps and their objects need an owner.

buildiq:app:list​

Lists every app with its slug, name and versions with their status.

OptionMeaning
--jsonPrint the list as JSON, for scripts.

buildiq:app:export <slug>​

Writes the same archive the export dialog produces.

OptionMeaning
-o, --outputWhere to write the archive (required).
--app-versionThe version slug to export (default: the newest published version).
--seed-dataInclude the app's records as seed data (data/<schema>.jsonl).
--userThe UID the export runs as (default: the app's owner).

buildiq:app:import <file>​

Imports an exported archive as a new app, with the same checks as the Import app dialog. A refused package prints the error code and the file at fault, for example Import refused: schema_unparseable in schemas/permit.json.

OptionMeaning
--ownerThe UID of the user who will own the new app (required; an unknown UID is refused).
--slugThe new app's slug (default: the archive's own slug). A taken slug is refused.
--nameThe new app's name (default: the archive's own name).
--recordsAlso import the records in data/. One line per schema says how many arrived and how many failed; a failed schema does not fail the import.

buildiq:app:delete <slug>​

Deletes an app and its versions after asking for confirmation. Its registers and records stay unless asked.

OptionMeaning
-f, --forceDelete without asking.
--delete-dataAlso delete the app's registers and their records.

buildiq:templates:publish​

Publishes the seeded application templates to GitHub as template repositories, one line per template with its outcome.

OptionMeaning
--credentialThe GitHub broker credential UUID to publish with (required).
--orgThe organisation to publish under (default: the credential user's account).
--userThe credential owner, the acting user UID.
--slugPublish only this template.
--visibilitypublic (default) or private, for new repositories.
--dry-runList what would be published without calling GitHub.