Generated Command Reference
Every command the CLI emits from the contract, with the flags each one takes.
This is the exhaustive list. The Command Reference beside it is the one to read first: it carries the worked examples, the flows that take more than one command, and the explanations a table cannot hold. This page exists so that the exhaustive list is never the thing that falls behind: it is emitted from the same declarations the commands themselves are emitted from.
A flag marked required must be passed. A flag typed json takes a JSON
value: quote it for your shell.
foir agents
foir agents connect-mcp-server
Begin connecting the caller’s own account to an agent’s MCP server.
| Flag | Type | |
|---|---|---|
--agent | string | required |
--server | string | required |
--return-url | string | required |
foir agents create
Create an agent. It is a draft until a release publishes it.
| Flag | Type | |
|---|---|---|
--agent | json |
foir agents create-attachment-upload
Make an upload address for an image or PDF to send an agent with a message.
| Flag | Type | |
|---|---|---|
--agent | string | required |
--filename | string | required |
--media-type | string | required |
--size | number | required |
--visitor-token | string | required |
foir agents delete
Delete an agent. A released one keeps running until a release carries the deletion.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir agents delete-mcp-connection
Remove a connected account. The agent cannot reach it from the next call.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir agents delete-thread
Delete one of the caller’s own threads.
| Flag | Type | |
|---|---|---|
--id | string | required |
--visitor-token | string | required |
foir agents discard-draft
Throw away an agent’s unreleased changes, so it is again what production runs.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir agents discard-project-brief-draft
Throw away the project brief’s unreleased changes, so it is again what agents are given.
Takes no flags.
foir agents discover-mcp-tools
List the tools a remote MCP server offers, to choose which an agent may use.
| Flag | Type | |
|---|---|---|
--url | string | required |
--credential | string | required; one of MCP_CREDENTIAL_KIND_UNSPECIFIED, MCP_CREDENTIAL_KIND_NONE, MCP_CREDENTIAL_KIND_PROJECT, MCP_CREDENTIAL_KIND_PER_USER |
--secret-ref | string | required |
foir agents get
Fetch an agent by id or key.
| Flag | Type | |
|---|---|---|
--id | string | required |
--key | string | required |
foir agents get-assistant-allowance
Read the workspace’s included Ask Fóir requests this month, and whether it carries on with credits.
Takes no flags.
foir agents get-choices
List the Fóir verbs an agent may be given, to choose an agent’s tools.
Takes no flags.
foir agents get-project-brief
Read the project brief: the house rules every agent working in the project is given.
Takes no flags.
foir agents get-thread
Fetch one of the caller’s own threads with its messages.
| Flag | Type | |
|---|---|---|
--id | string | required |
--after-seq | number | required |
--visitor-token | string | required |
foir agents list
List the project’s agents.
Takes no flags.
foir agents list-project-mcp-connections
List every person’s connected account to the project’s agents’ MCP servers. A person lists their own as me.
| Flag | Type | |
|---|---|---|
--agent | string | required |
--user-id | string | required |
--after | string | |
--first | number |
foir agents list-provider-models
List the models a provider offers the project’s own key, to choose an agent’s model.
| Flag | Type | |
|---|---|---|
--provider | string | required; one of MODEL_PROVIDER_UNSPECIFIED, MODEL_PROVIDER_ANTHROPIC, MODEL_PROVIDER_OPENAI |
--secret-ref | string | required |
foir agents list-threads
List the caller’s own threads with agents.
| Flag | Type | |
|---|---|---|
--agent | string | required |
--after | string | |
--first | number | |
--visitor-token | string | required |
foir agents rename-thread
Rename one of the caller’s own threads.
| Flag | Type | |
|---|---|---|
--id | string | required |
--title | string | required |
--visitor-token | string | required |
foir agents set-assistant-continuation
Let Ask Fóir carry on with AI credits once the included requests are spent, up to a monthly ceiling, or stop it.
| Flag | Type | |
|---|---|---|
--continue-on-credits | boolean | required |
--continuation-cap-micro | number | required |
foir agents unpublish
Withdraw an agent from production now, as a release that can be rolled back: nobody starts it from then on. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir agents unpublish-project-brief
Withdraw the project brief from what agents are given now, as a release that can be rolled back. It stays withdrawn until a release names it.
Takes no flags.
foir agents update
Change an agent. The change is a draft until a release publishes it.
| Flag | Type | |
|---|---|---|
--id | string | required |
--agent | json |
foir agents update-project-brief
Change the project brief. The change is a draft until a release publishes it.
| Flag | Type | |
|---|---|---|
--text | string | required |
--model-rules | json | repeatable |
foir app-auth
foir app-auth issue-exchange-ticket
Issue a single-use ticket an installed app exchanges for a session.
| Flag | Type | |
|---|---|---|
--app-name | string | required |
foir app-auth redeem-exchange-ticket
Exchange a single-use ticket for an app session.
| Flag | Type | |
|---|---|---|
--ticket | string | required |
foir app-installation
foir app-installation complete-app-install
Runs the __validate_credentials probe (when the app’s manifest declares it), then writes one vault row per credential field.
| Flag | Type | |
|---|---|---|
--app-name | string | required |
--values | json |
foir app-installation get-app-credential-struct
Lists every app-owned vault row for the given app, decrypts each, and returns a struct keyed by field name (the vault row’s label).
| Flag | Type | |
|---|---|---|
--app-name | string | required |
foir app-installation rotate-app-credential
Rotates a single named field.
| Flag | Type | |
|---|---|---|
--app-name | string | required |
--field-name | string | required |
--plaintext | string | required |
--idempotency-key | string | required |
foir app-status
foir app-status get-app-status
Fetch an app status by id.
| Flag | Type | |
|---|---|---|
--app-name | string | required |
foir app-status list-app-events
List app events.
| Flag | Type | |
|---|---|---|
--app-name | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--where | json |
foir app-status upsert-app-status
Create an app status, or update it when one with the same key exists.
| Flag | Type | |
|---|---|---|
--status | json |
foir apps
foir apps confirm-install
Confirm an app installation that is waiting on a person to authorise it.
| Flag | Type | |
|---|---|---|
--install-ticket | string | required |
--source-mappings | json | repeatable |
--sink-mappings | json | repeatable |
--settings | json | |
--placement-field-choices | json | repeatable |
--update-push-snapshot | boolean | required |
--user-sign-in | string | required |
foir apps confirm-update
Apply an app update that was reviewed, accepting what the app gains.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--name | string | one of ref |
--new-manifest-hash | string | required |
--force | boolean | required |
--user-sign-in | string | |
--accept-gains | string | required |
foir apps discard-draft
Throw away an install’s unpublished settings and mappings, so it is again what production is served.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--name | string | one of ref |
foir apps discard-placement-draft
Throw away a placement’s unpublished changes, so it is again what production is served.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir apps get
Fetch an app by id.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--name | string | one of ref |
foir apps get-console-settings
Read the settings an app’s console may change.
Takes no flags.
foir apps get-install-ticket
Read an app install’s ticket: how far the install has got, and whether you may confirm it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir apps install
Start installing an app: fetch and check its manifest, and issue the ticket a person confirms.
| Flag | Type | |
|---|---|---|
--manifest-url | string | required |
foir apps list
List apps.
| Flag | Type | |
|---|---|---|
--first | number | |
--after | string | |
--last | number | |
--before | string | |
--where | json | |
--every-level | boolean | required |
foir apps list-placements
List placements.
| Flag | Type | |
|---|---|---|
--where | json | |
--first | number | |
--after | string | |
--last | number | |
--before | string | |
--model | string |
foir apps mint-placement-token
Issue the short-lived token an app’s full-page placement acts with, for the user viewing it.
| Flag | Type | |
|---|---|---|
--app-name | string | required |
--placement-id | string | one of placement |
--placement-key | string | one of placement |
foir apps preview-update
Review an app update: what it changes, what may stop working, and what the app gains. Nothing is applied.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--name | string | one of ref |
--user-sign-in | string |
foir apps set-console-settings
Change the settings an app’s console may change.
| Flag | Type | |
|---|---|---|
--settings | json |
foir apps set-enabled
Hold an installed app quiet, or let it run again.
| Flag | Type | |
|---|---|---|
--name | string | required |
--enabled | boolean | |
--reason | string |
foir apps set-mapping
Set an app mapping.
| Flag | Type | |
|---|---|---|
--name | string | required |
--source-mappings | json | repeatable |
--sink-mappings | json | repeatable |
--placement-field-choices | json | repeatable |
--update-push-snapshot | boolean | required |
--snapshot-only | boolean | required |
--user-sign-in | string |
foir apps set-settings
Replace an installed app’s settings.
| Flag | Type | |
|---|---|---|
--name | string | required |
--settings | json |
foir apps uninstall
Uninstall an app: its credentials are revoked and what it declared is removed. force skips the app’s own uninstall call.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--name | string | one of ref |
--force | boolean | required |
foir apps unpublish
Withdraw an install’s settings and mappings from what production is served now, as a release that can be rolled back. They stay withdrawn until a release names them.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--name | string | one of ref |
foir apps unpublish-placement
Withdraw a placement from what production is served now, as a release that can be rolled back. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir apps validate-manifest
Validate an app manifest against the platform’s rules, as a dry run.
| Flag | Type | |
|---|---|---|
--manifest-url | string | one of source |
--manifest-json | string | one of source |
foir billing
foir billing assign-custom-package
Assign a custom package.
| Flag | Type | |
|---|---|---|
--package-id | string | required |
foir billing assign-plan
Assign a plan.
| Flag | Type | |
|---|---|---|
--plan-slug | string | required |
--plan-id | string | required |
foir billing change-plan
Move the workspace to another plan.
| Flag | Type | |
|---|---|---|
--plan-slug | string | required |
--billing-interval | string | required; one of BILLING_INTERVAL_UNSPECIFIED, BILLING_INTERVAL_MONTH, BILLING_INTERVAL_YEAR |
--accept-caps-narrowed | boolean | required |
--prorated-at | json | |
--custom-package-id | string | required |
foir billing clear-project-limit
Clear a project limit.
| Flag | Type | |
|---|---|---|
--metric | string | required |
foir billing create-checkout-session
Open a checkout for a catalogue plan or the workspace’s own package.
| Flag | Type | |
|---|---|---|
--plan-slug | string | required |
--success-url | string | required |
--cancel-url | string | required |
--billing-interval | string | required; one of BILLING_INTERVAL_UNSPECIFIED, BILLING_INTERVAL_MONTH, BILLING_INTERVAL_YEAR |
--package | json |
foir billing create-custom-package
Create a custom package.
| Flag | Type | |
|---|---|---|
--input | json | |
--idempotency-key | string | required |
foir billing create-plan
Create a billing plan.
| Flag | Type | |
|---|---|---|
--slug | string | required |
--name | string | required |
--description | string | |
--price-cents | number | required |
--billing-interval | string | required; one of BILLING_INTERVAL_UNSPECIFIED, BILLING_INTERVAL_MONTH, BILLING_INTERVAL_YEAR |
--currency | string | |
--is-active | boolean | required |
--sort-order | number | required |
--annual-price-cents | number | |
--trial | json | |
--takes-no-card | boolean | required |
--is-default-offer | boolean | required |
--is-lapse-landing | boolean | required |
--history-days | number | |
--ai-credits-daily-cap | number | |
--limits | json | repeatable |
--entitlements | json | repeatable |
--stripe-product-id | string | |
--stripe-price-id | string |
foir billing create-portal-session
Create a billing portal session.
| Flag | Type | |
|---|---|---|
--return-url | string | required |
foir billing create-top-up-checkout-session
Buy a pack of AI credits: open a checkout for it.
| Flag | Type | |
|---|---|---|
--id | string | required |
--success-url | string | required |
--cancel-url | string | required |
foir billing create-workspace-checkout-session
Take card details for founding a workspace.
| Flag | Type | |
|---|---|---|
--name | string | required |
--project-name | string | |
--plan-slug | string | required |
--billing-interval | string | required; one of BILLING_INTERVAL_UNSPECIFIED, BILLING_INTERVAL_MONTH, BILLING_INTERVAL_YEAR |
--success-url | string | required |
--cancel-url | string | required |
foir billing delete-custom-package
Delete a custom package.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir billing delete-feature-rollout-rule
Delete a feature rollout rule.
| Flag | Type | |
|---|---|---|
--feature-key | string | required |
foir billing dismiss-usage-alert
Dismiss a usage alert.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir billing get-ai-credit-platform-stats
Report platform-wide AI credit spend and balances.
| Flag | Type | |
|---|---|---|
--window-days | number | required |
foir billing get-ai-credit-spend-breakdown
Fetch an AI credit spend breakdown by id.
Takes no flags.
foir billing get-organization-allowance
The plan’s organisation allowance: the live count, the cap, whether the workspace is over it, and the organisations it holds suspended.
Takes no flags.
foir billing get-plan
Fetch a billing plan by its id or its slug.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--slug | string | one of ref |
foir billing get-plan-offer
Fetch the plan a buyer is offered, by its slug or the default.
| Flag | Type | |
|---|---|---|
--plan-slug | string |
foir billing get-project-usage
Fetch project usage.
Takes no flags.
foir billing get-subscription
Fetch a subscription by id.
Takes no flags.
foir billing get-tenant-cohorts
Fetch the tenant cohorts.
Takes no flags.
foir billing get-usage-history
Fetch usage history.
| Flag | Type | |
|---|---|---|
--from | json | |
--to | json |
foir billing get-usage-summary
Fetch a usage summary by id.
Takes no flags.
foir billing list-ai-credit-spend-by-tenant
List AI credit spend by tenants.
| Flag | Type | |
|---|---|---|
--window-days | number | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir billing list-ai-top-up-packs
List the AI credit top-up packs on sale.
Takes no flags.
foir billing list-custom-packages
List custom packages.
| Flag | Type | |
|---|---|---|
--first | number | |
--after | string | |
--last | number | |
--before | string | |
--where | json |
foir billing list-feature-rollout-rules
List feature rollout rules.
Takes no flags.
foir billing list-features
List features.
Takes no flags.
foir billing list-known-cohorts
List known cohorts.
Takes no flags.
foir billing list-plan-offers
List the plans a buyer can take up online, in the catalogue’s order.
Takes no flags.
foir billing list-plans
List billing plans.
| Flag | Type | |
|---|---|---|
--where | json | |
--first | number | |
--after | string | |
--last | number | |
--before | string |
foir billing list-project-limits
List project limits.
Takes no flags.
foir billing list-project-usage
Report usage for many projects in one call.
| Flag | Type | |
|---|---|---|
--project-ids | string | repeatable |
--first | number | |
--after | string | |
--last | number | |
--before | string |
foir billing list-stripe-products
List Stripe products.
| Flag | Type | |
|---|---|---|
--first | number | |
--after | string | |
--last | number | |
--before | string |
foir billing list-usage-alerts
List usage alerts.
| Flag | Type | |
|---|---|---|
--first | number | |
--after | string | |
--last | number | |
--before | string | |
--where | json |
foir billing preview-plan-change
Say what moving the workspace to another plan would do, before it is done.
| Flag | Type | |
|---|---|---|
--plan-slug | string | required |
--billing-interval | string | required; one of BILLING_INTERVAL_UNSPECIFIED, BILLING_INTERVAL_MONTH, BILLING_INTERVAL_YEAR |
--custom-package-id | string | required |
foir billing set-feature-rollout-rule
Set a feature rollout rule.
| Flag | Type | |
|---|---|---|
--feature-key | string | required |
--percentage | number | required |
--cohorts | string | repeatable |
--reason | string | required |
foir billing set-project-limit
Set a project limit.
| Flag | Type | |
|---|---|---|
--metric | string | required |
--value | number | required |
foir billing set-tenant-ai-credits-enabled
Set a tenant AI credits enabled.
| Flag | Type | |
|---|---|---|
--enabled | boolean | required |
foir billing set-tenant-cohorts
Set the tenant cohorts.
| Flag | Type | |
|---|---|---|
--cohorts | string | repeatable |
--reason | string | required |
foir billing update-custom-package
Update a custom package.
| Flag | Type | |
|---|---|---|
--id | string | required |
--input | json |
foir billing update-plan
Update a billing plan.
| Flag | Type | |
|---|---|---|
--id | string | required |
--slug | string | |
--name | string | |
--description | string | |
--price-cents | number | |
--billing-interval | string | one of BILLING_INTERVAL_UNSPECIFIED, BILLING_INTERVAL_MONTH, BILLING_INTERVAL_YEAR |
--currency | string | |
--is-active | boolean | |
--sort-order | number | |
--annual-price-cents | number | |
--trial | json | |
--takes-no-card | boolean | |
--is-default-offer | boolean | |
--is-lapse-landing | boolean | |
--history-days | number | |
--ai-credits-daily-cap | number | |
--limits | json | repeatable |
--entitlements | json | repeatable |
--stripe-product-id | string | |
--stripe-price-id | string |
foir configs
foir configs apply-bundle
Store a manifest, resolve its plan against the project on the server, and apply it.
| Flag | Type | |
|---|---|---|
--config-id | string | one of config |
--config-key | string | one of config |
--config-data | json | |
--options | json | |
--validate-only | boolean | required |
foir configs apply-record-migration
Answer one held field’s decision from outside a push.
| Flag | Type | |
|---|---|---|
--migration | json |
foir configs create
Create a config.
| Flag | Type | |
|---|---|---|
--key | string | required |
--config-type | string | required |
--direction | string | required; one of CONFIG_DIRECTION_UNSPECIFIED, CONFIG_DIRECTION_READ, CONFIG_DIRECTION_WRITE, CONFIG_DIRECTION_BIDIRECTIONAL |
--name | string | required |
--description | string | |
--config | json | |
--enabled | boolean |
foir configs delete
Delete a config. Released definitions it declared stay in production until a release carries their deletion.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir configs discard-record-migration
Write off a FAILED migration that will not be resolved.
| Flag | Type | |
|---|---|---|
--id | string | required |
--reason | string | required |
foir configs get
Fetch a config by id or by its key.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--key | string | one of ref |
foir configs list
List configs.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir configs list-history
List config history.
| Flag | Type | |
|---|---|---|
--config-id | string | required |
--after | string | |
--first | number |
foir configs list-record-migrations
List record migrations.
| Flag | Type | |
|---|---|---|
--limit | number |
foir configs update
Update a config.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--description | string | |
--config | json | |
--enabled | boolean | |
--webhooks | json | |
--hooks | json |
foir configs write-credential
Write a config credential.
| Flag | Type | |
|---|---|---|
--config-id | string | one of config |
--config-key | string | one of config |
--value | string | required |
foir docs
foir docs search
Search Fóir’s documentation and answer with the passages that match, each with the page it comes from.
| Flag | Type | |
|---|---|---|
--query | string | required |
--limit | number | required |
foir email
foir email delete-copy-override
Delete a copy override.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir email discard-copy-override-draft
Throw away a project’s unreleased changes to a copy override, so it is again what production sends.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir email get-copy-override
Fetch a copy override by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir email list-actions
List the emails Fóir sends, each with the copy an override where the request stands falls back to.
| Flag | Type | |
|---|---|---|
--audience | string | one of EMAIL_AUDIENCE_UNSPECIFIED, EMAIL_AUDIENCE_PLATFORM, EMAIL_AUDIENCE_PROJECT |
--locale | string | required |
foir email list-copy-overrides
List the copy overrides kept where the request stands, or, for staff sending it to no workspace, Fóir’s own.
| Flag | Type | |
|---|---|---|
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--where | json |
foir email render-preview
Render an email template with sample data, without sending it.
| Flag | Type | |
|---|---|---|
--action-key | string | required |
--locale | string | required |
--heading-override | string | |
--body-override | string | |
--footer-override | string | |
--subject-override | string | |
--ctas-override | json | repeatable |
--sample | string | required; one of SAMPLE_PRESET_UNSPECIFIED, SAMPLE_PRESET_DEFAULT |
foir email send-test
Send a test email through the sender of the project the request stands in, to prove its key and from address end to end.
| Flag | Type | |
|---|---|---|
--to | string | required |
--idempotency-key | string | required |
foir email unpublish-copy-override
Withdraw a project’s copy override from what production sends now, as a release that can be rolled back, so its email falls back to the copy beneath it. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir email upsert-copy-override
Change a copy override, by id or by its action and locale where the request stands, making it when there is none.
| Flag | Type | |
|---|---|---|
--id | string | required |
--action-key | string | required |
--locale | string | required |
--heading | string | |
--body | string | |
--footer | string | |
--subject | string | |
--ctas | json | repeatable |
foir events
foir events list
Page the project’s event history forward by seq, or one model’s changes.
| Flag | Type | |
|---|---|---|
--after | number | required |
--limit | number | required |
--events | string | repeatable |
--record-model-key | string | required |
--record-model-id | string | required |
foir export
foir export start
Begins an export and streams its progress, then the bundle itself as chunks, ending with the report.
| Flag | Type | |
|---|---|---|
--postgis | boolean | required |
--include-raw | boolean | required |
--format | string | required; one of EXPORT_FORMAT_UNSPECIFIED, EXPORT_FORMAT_BUNDLE |
--include-credentials | boolean | required |
--reauth-password | string | required |
foir hooks
foir hooks backfill
Replay recorded history to a hook that calls an operation, bounded by a start time and a delivery limit.
| Flag | Type | |
|---|---|---|
--id | string | required |
--since | json | |
--limit | number | required |
--idempotency-key | string | required |
foir hooks create
Create a hook where the request stands: in a project or one of its organizations, or at the workspace. A project’s hook waits for a release; a workspace’s is served at once.
| Flag | Type | |
|---|---|---|
--key | string | required |
--name | string | required |
--description | string | |
--event | string | required |
--target-type | string | required |
--operation-id | string | one of operation |
--operation-key | string | one of operation |
--filter | json | |
--config-id | string | |
--platform-effect-config | json | |
--is-active | boolean |
foir hooks delete
Delete a hook. A released one stays in production until a release carries the deletion; a workspace’s goes now.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir hooks discard-draft
Throw away a project’s hook’s unpublished changes, so it is again what production is served.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir hooks get
Fetch a hook by id or by its key, where the request stands.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--key | string | one of ref |
foir hooks list
List the hooks where the request stands: a project’s, an organization’s, or the workspace’s own.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir hooks list-deliveries
List the deliveries of the hooks where the request stands.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir hooks retry-delivery
Retry a hook delivery.
| Flag | Type | |
|---|---|---|
--id | string | required |
--idempotency-key | string | required |
foir hooks test
Send a test delivery to a hook.
| Flag | Type | |
|---|---|---|
--id | string | required |
--test-payload | json | |
--idempotency-key | string | required |
foir hooks unpublish
Withdraw a project’s hook from what production is served now, as a release that can be rolled back. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir hooks update
Update a hook.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--description | string | |
--operation-id | string | one of operation |
--operation-key | string | one of operation |
--filter | json | |
--is-active | boolean | |
--platform-effect-config | json |
foir identity
foir identity accept-invitation
Accept an invitation: stand at its place, made in its pool where nobody holds the address.
| Flag | Type | |
|---|---|---|
--token | string | required |
--password | string | |
--first-name | string | |
--last-name | string |
foir identity activate-tenant
Put the workspace the request stands in back in use: out of setup, out of a scheduled cancellation, or for staff out of a suspension.
Takes no flags.
foir identity add-my-address
Send a code to an email address the signed-in user is adding to their account, and answer the step the code is brought back to.
| Flag | Type | |
|---|---|---|
--email | string | required |
--password | string |
foir identity add-organization-member
Add an organization member.
| Flag | Type | |
|---|---|---|
--user-id | string | required |
--role-id | string |
foir identity add-verified-domain
Add a domain to verify through a DNS TXT record.
| Flag | Type | |
|---|---|---|
--domain | string | required |
foir identity approve-impersonation
Approve an impersonation.
| Flag | Type | |
|---|---|---|
--id | string | required |
--code | string | required |
foir identity approve-join-request
Approve a request to join an organization: the person becomes a member, and is told.
| Flag | Type | |
|---|---|---|
--id | string | required |
--role-id | string |
foir identity approve-waitlist-entry
Approve a waitlist entry.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity assign-role
Assign a role.
| Flag | Type | |
|---|---|---|
--principal-id | string | required |
--role-id | string | required |
foir identity begin-mfa-enrollment
Begin adding a second factor to the signed-in user’s account, and answer the step it is finished on.
| Flag | Type | |
|---|---|---|
--method | string | required |
foir identity bulk-apply-workspace-creation
Let every active account that has never held it found a workspace, as the installation default’s grant. An account whose grant was taken back stays without.
Takes no flags.
foir identity bulk-revoke-workspace-creation
Take back every grant to found a workspace that the installation default gave. Grants staff made and grants an approved request wrote stand.
Takes no flags.
foir identity check-verified-domain
Look for a domain’s TXT record now, and verify it when found.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity create-api-key
Create an API key.
| Flag | Type | |
|---|---|---|
--name | string | required |
--key-type | string | required; one of API_KEY_TYPE_UNSPECIFIED, API_KEY_TYPE_PUBLIC, API_KEY_TYPE_SECRET, API_KEY_TYPE_CONTROL, API_KEY_TYPE_PUBLISHABLE, API_KEY_TYPE_SERVER, API_KEY_TYPE_ADMIN |
--expires-at | json | |
--allowed-models | string | repeatable |
--allowed-file-types | string | repeatable |
--config-id | string | |
--grants | string | repeatable |
--baseline-grants | string | repeatable |
--level | string | required; one of API_KEY_LEVEL_UNSPECIFIED, API_KEY_LEVEL_PROJECT, API_KEY_LEVEL_WORKSPACE |
--all-models | boolean | required |
--idempotency-key | string | required |
foir identity create-auth-client
Create an auth client.
| Flag | Type | |
|---|---|---|
--pool-id | string | required |
--client-id | string | required |
--name | string | required |
--redirect-uris | string | repeatable |
--is-first-party | boolean | required |
--requires-mfa | boolean | required |
--login-methods | json | |
--post-login-url | string | |
--allowed-origins | string | repeatable |
--grants | string | repeatable |
--initiate-login-uri | string | |
--prompts-for-organization | boolean | required |
--logo | json | |
--homepage-url | string | |
--confidential | boolean | required |
--idempotency-key | string | required |
foir identity create-auth-client-secret
Make a secret for a confidential auth client.
| Flag | Type | |
|---|---|---|
--pool-id | string | required |
--client-id | string | required |
--auth-client-id | string | required |
--idempotency-key | string | required |
foir identity create-auth-provider
Create an auth provider.
| Flag | Type | |
|---|---|---|
--key | string | required |
--name | string | required |
--type | string | required |
--config | json | |
--enabled | boolean | |
--is-default | boolean | |
--priority | number | |
--config-id | string |
foir identity create-invitation
Invite a person into a pool at a place.
| Flag | Type | |
|---|---|---|
--email | string | required |
--project-ids | string | repeatable |
--invite-type | string | required; one of INVITE_TYPE_UNSPECIFIED, INVITE_TYPE_WORKSPACE_OWNER, INVITE_TYPE_TEAM_MEMBER |
--message | string | |
--role-id | string | required |
--send-email | boolean | |
--accept-url-override | string | |
--pool-id | string | |
--client-id | string | |
--return-to | string |
foir identity create-organization
Create an organization.
| Flag | Type | |
|---|---|---|
--name | string | required |
--parent-id | string | |
--own-pool | boolean | |
--users | string | one of ORGANIZATION_USERS_UNSPECIFIED, ORGANIZATION_USERS_JOINED, ORGANIZATION_USERS_EVERYONE |
--joining | string | one of ORGANIZATION_JOINING_UNSPECIFIED, ORGANIZATION_JOINING_INVITATION_ONLY, ORGANIZATION_JOINING_OPEN, ORGANIZATION_JOINING_REQUEST |
--idempotency-key | string | required |
--founder | string | required |
--app-base-url | string |
foir identity create-personal-access-token
Make a personal access token. Its value is shown once.
| Flag | Type | |
|---|---|---|
--name | string | required |
--expires-in-days | number | required |
--user-id | string | |
--idempotency-key | string | required |
foir identity create-project
Create a project.
| Flag | Type | |
|---|---|---|
--name | string | required |
--description | string | |
--default-locale-code | string | |
--default-locale-display-name | string | |
--default-locale-native-name | string | |
--default-locale-is-rtl | boolean | |
--display-name | string | |
--logo-url | string | |
--primary-color | string | |
--from-name | string | |
--reply-to | string | |
--support-email | string | |
--app-base-url | string | |
--terms-url | string | |
--privacy-url | string | |
--welcome-email-enabled | boolean | |
--password-enabled | boolean | |
--otp-enabled | boolean | |
--organization-signup-enabled | boolean | |
--organization-users | string | one of ORGANIZATION_USERS_UNSPECIFIED, ORGANIZATION_USERS_JOINED, ORGANIZATION_USERS_EVERYONE |
--organization-own-pool | boolean | |
--organization-joining | string | one of ORGANIZATION_JOINING_UNSPECIFIED, ORGANIZATION_JOINING_INVITATION_ONLY, ORGANIZATION_JOINING_OPEN, ORGANIZATION_JOINING_REQUEST |
--signup-mode | string | one of SIGNUP_MODE_UNSPECIFIED, SIGNUP_MODE_PUBLIC, SIGNUP_MODE_RESTRICTED, SIGNUP_MODE_WAITLIST, SIGNUP_MODE_CLOSED |
--signup-restrictions | json | |
--note-screenshots-enabled | boolean | |
--anonymous-notes-enabled | boolean | |
--locks-accounts-after-failed-sign-ins | boolean | |
--idempotency-key | string | required |
foir identity create-role
Create a role.
| Flag | Type | |
|---|---|---|
--key | string | required |
--name | string | required |
--is-default | boolean | required |
--grants | string | repeatable |
foir identity create-user
Create a user in a pool, and give them a role where the request stands.
| Flag | Type | |
|---|---|---|
--email | string | required |
--password | string | |
--return-existing | boolean | |
--first-name | string | |
--last-name | string | |
--pool-id | string | |
--role-id | string |
foir identity create-workspace
Found a workspace: the caller’s own, or, for staff, one for the owner they name.
| Flag | Type | |
|---|---|---|
--name | string | required |
--owner-user-id | string | required |
--project-name | string | |
--checkout-session-id | string | required |
--plan-slug | string | required |
--idempotency-key | string | required |
foir identity decline-join-request
Decline a request to join an organization: the person is told, and may ask again.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity delete-auth-client
Delete an auth client, ending the consents, sessions and refresh tokens it leaves behind. A released app is deleted by the next release.
| Flag | Type | |
|---|---|---|
--pool-id | string | required |
--client-id | string | required |
--id | string | required |
foir identity delete-auth-provider
Delete an auth provider. A released one stays in production until a release carries the deletion.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity delete-custom-domain
Delete a custom domain.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity delete-organization-limit
Delete an organization limit.
| Flag | Type | |
|---|---|---|
--metric | string | required |
foir identity delete-project
Delete a project. Its keys, its sessions, its files and its schedules stop within a minute, and its data is destroyed after the retention window unless it is reactivated first.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity delete-tenant
Delete a workspace that holds no project, now.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity delete-user
Delete a user’s account. A person deletes their own as me, in every pool, after proving again who they are.
| Flag | Type | |
|---|---|---|
--id | string | required |
--confirm-email | string | required |
--password | string | |
--confirm | boolean | required |
foir identity deny-impersonation
Refuse an impersonation.
| Flag | Type | |
|---|---|---|
--id | string | required |
--code | string | required |
foir identity deny-waitlist-entry
Refuse a waitlist entry.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity disable-auth-client
Disable an auth client: it signs nobody in from then on, and what it issued ends.
| Flag | Type | |
|---|---|---|
--pool-id | string | required |
--client-id | string | required |
--id | string | required |
foir identity disable-role
Disable a role: nobody holds it from then on, and it is assigned to nobody new.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity discard-auth-provider-draft
Throw away a sign-in provider’s unpublished changes, so its definition is the one production is served again.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity drop-organization-pool
Drop an organization’s own pool, so it signs its people in to the pool above it.
Takes no flags.
foir identity enabled-o-auth-providers
List the OAuth providers a sign-in page should offer for this project.
| Flag | Type | |
|---|---|---|
--platform-lane | boolean |
foir identity enter-tenant
Enter a workspace as staff, taking its standing for the session.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity export-my-data
Export a copy of the signed-in user’s own data: their account, and everything deleting it would erase.
Takes no flags.
foir identity get-account-lockouts
Report console accounts locked out after repeated failures.
| Flag | Type | |
|---|---|---|
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity get-api-key
Fetch an API key by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity get-auth-client
Fetch an auth client by id.
| Flag | Type | |
|---|---|---|
--pool-id | string | required |
--client-id | string | required |
--id | string | required |
foir identity get-auth-provider
Fetch a sign-in provider by id, with whether its definition is published and what a release would change.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity get-auth-provider-version
Fetch an auth provider version by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity get-failed-logins
Report failed sign-in attempts where the request stands: a workspace’s, or every workspace’s for staff sending it to none.
| Flag | Type | |
|---|---|---|
--by | string | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity get-invitation
Fetch an invitation.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity get-organization
Fetch an organization by id.
| Flag | Type | |
|---|---|---|
--id | string |
foir identity get-organization-cap-usage
Read what the caps that bind an organization allow, and how much of each is used.
Takes no flags.
foir identity get-organization-pool
Say which pool an organization’s people sign in to: its own, an organization’s above it, or the project’s.
Takes no flags.
foir identity get-organization-provision
Where an organisation provision stands, by provision id or by the organisation it created.
| Flag | Type | |
|---|---|---|
--id | string | one of lookup |
foir identity get-project
Fetch a project by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity get-provider-token
Fetch the token of the provider a person signed in through, for the sign-in the request belongs to.
| Flag | Type | |
|---|---|---|
--user-id | string | required |
--provider-key | string | required |
--provider-id | string | required |
--force-refresh | boolean | required |
foir identity get-role
Fetch a role by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity get-security-summary
Fetch the sign-in security summary where the request stands: a workspace’s, or every workspace’s for staff sending it to none.
| Flag | Type | |
|---|---|---|
--from | json | |
--to | json |
foir identity get-session-context
Fetch a session context by id.
Takes no flags.
foir identity get-signup-config
Read the sign-up settings where the request stands: how somebody new joins its pool, and whether a new account may found a workspace.
Takes no flags.
foir identity get-suspicious-logins
Report sign-ins flagged as suspicious where the request stands: a workspace’s, or every workspace’s for staff sending it to none.
| Flag | Type | |
|---|---|---|
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity get-tenant
Read a workspace (a tenant) by id: its name, status and how long it keeps deleted content.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity get-user
Fetch a user by id, or by their exact email address in a pool. A person reads their own account as me, in any pool.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--email | string | one of ref |
--pool-id | string |
foir identity get-user-management-status
Say whether the project’s people are managed here or by an outside provider, and where.
Takes no flags.
foir identity grant-auth-client
Let an auth client sign users in against this project.
| Flag | Type | |
|---|---|---|
--user-id | string | required |
--client-id | string | required |
--grants | string | repeatable |
foir identity import-users
Import people from another sign-in provider with the password hashes they had, so they sign in with the passwords they know.
| Flag | Type | |
|---|---|---|
--users | json | repeatable |
--validate-only | boolean | required |
--idempotency-key | string | required |
foir identity join-waitlist
Join the waitlist of where the request stands: a project’s, or the platform’s with none.
| Flag | Type | |
|---|---|---|
--email | string | required |
foir identity leave-membership
End your own membership where the request stands, or at the organisation named, with every role you hold there.
Takes no flags.
foir identity list-api-keys
List API keys.
| Flag | Type | |
|---|---|---|
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--where | json | |
--include-descendants | boolean |
foir identity list-auth-client-grants
List the apps the signed-in user has authorised to act for them.
| Flag | Type | |
|---|---|---|
--user-id | string |
foir identity list-auth-client-secrets
List an auth client’s secrets.
| Flag | Type | |
|---|---|---|
--pool-id | string | required |
--client-id | string | required |
--auth-client-id | string | required |
foir identity list-auth-clients
List auth clients.
| Flag | Type | |
|---|---|---|
--pool-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--include-descendants | boolean |
foir identity list-auth-provider-versions
List auth provider versions.
| Flag | Type | |
|---|---|---|
--auth-provider-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity list-auth-providers
List auth providers.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity list-capability-requests
List the capability requests the caller’s standing reaches: every account’s for staff, the caller’s own otherwise.
| Flag | Type | |
|---|---|---|
--status | string | one of CAPABILITY_REQUEST_STATUS_UNSPECIFIED, CAPABILITY_REQUEST_STATUS_PENDING, CAPABILITY_REQUEST_STATUS_APPROVED, CAPABILITY_REQUEST_STATUS_DENIED |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity list-custom-domains
List custom domains.
| Flag | Type | |
|---|---|---|
--auth-client-id | string | required |
--include-descendants | boolean |
foir identity list-impersonation-grants
List impersonation grants.
| Flag | Type | |
|---|---|---|
--grantee-id | string | |
--active-only | boolean | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity list-invitations
List the invitations of a pool.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--pool-id | string |
foir identity list-join-requests
List the requests to join organizations.
| Flag | Type | |
|---|---|---|
--status | string | one of JOIN_REQUEST_STATUS_UNSPECIFIED, JOIN_REQUEST_STATUS_PENDING, JOIN_REQUEST_STATUS_APPROVED, JOIN_REQUEST_STATUS_DECLINED |
--after | string | |
--first | number |
foir identity list-members
List the people who stand where the request stands, or at the organisation named: a workspace’s people with the roles they hold there, or an organisation’s members.
| Flag | Type | |
|---|---|---|
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--search | string |
foir identity list-my-addresses
List the email addresses the signed-in user is known by, and which one their account uses.
Takes no flags.
foir identity list-my-factors
List the second factors, passkeys and recovery codes the signed-in user holds.
Takes no flags.
foir identity list-my-invitations
List the pending invitations addressed to the signed-in person, in their pool.
Takes no flags.
foir identity list-my-o-auth-connections
List the sign-in methods connected to the signed-in user’s own account.
| Flag | Type | |
|---|---|---|
--first | number | |
--after | string | |
--last | number | |
--before | string | |
--where | json |
foir identity list-my-organizations
List the organisations the signed-in person can enter: those they are a member of, are invited to, may join, or asked to join.
Takes no flags.
foir identity list-organization-limits
List organization limits.
Takes no flags.
foir identity list-organization-usage
List organization usage.
| Flag | Type | |
|---|---|---|
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity list-organizations
List the organizations the caller can stand in.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--parent-id | string | |
--include-descendants | boolean |
foir identity list-projects
List projects.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity list-role-assignments
List role assignments.
| Flag | Type | |
|---|---|---|
--where | json | |
--first | number | |
--after | string | |
--last | number | |
--before | string |
foir identity list-roles
List the roles at the request’s level.
| Flag | Type | |
|---|---|---|
--where | json | |
--first | number | |
--after | string | |
--last | number | |
--before | string |
foir identity list-sessions
List the sessions an auth client signed people in to. A person lists their own, and the personal access tokens they hold, as me, in any pool.
| Flag | Type | |
|---|---|---|
--auth-client-id | string | required |
--user-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity list-tenant-entitlements
Read the features a workspace is given or refused in place of what its plan says.
Takes no flags.
foir identity list-tenants
List every workspace.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir identity list-users
List the users of a pool: the one serving where the request stands, or the one named.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--include-descendants | boolean | |
--pool-id | string |
foir identity list-verified-domains
List the domains verified, or waiting to be, where the request stands.
Takes no flags.
foir identity list-waitlist-entries
List waitlist entries.
| Flag | Type | |
|---|---|---|
--status | string | one of WAITLIST_STATUS_UNSPECIFIED, WAITLIST_STATUS_PENDING, WAITLIST_STATUS_APPROVED, WAITLIST_STATUS_DENIED |
--pool-id | string | |
--first | number | |
--after | string | |
--last | number | |
--before | string |
foir identity make-my-address-primary
Make one of the signed-in user’s proven addresses the one their account uses.
| Flag | Type | |
|---|---|---|
--id | string | required |
--email | string | required |
foir identity make-recovery-codes
Make new recovery codes for the signed-in user. They are shown once.
| Flag | Type | |
|---|---|---|
--idempotency-key | string | required |
foir identity make-scim-token
Make a SAML connection’s SCIM bearer, replacing the one it held. It is shown once.
| Flag | Type | |
|---|---|---|
--provider-id | string | required |
--idempotency-key | string | required |
foir identity mark-user-email-verified
Mark the address of an account nobody has signed in to as verified.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity merge-users
Fold one user account into another, moving its sign-in methods and its records.
| Flag | Type | |
|---|---|---|
--survivor-id | string | required |
--duplicate-id | string | required |
--validate-only | boolean | required |
foir identity mint-mcp-working-token
Exchange the caller’s console session for a short-lived MCP working token for one project, so the console’s assistant acts as them there.
| Flag | Type | |
|---|---|---|
--read-only | boolean | |
--surface | string |
foir identity mint-service-token
Hand the caller’s session a short-lived token for one of Fóir’s own services: the data API, collaboration, storage, or the manifest a project serves.
| Flag | Type | |
|---|---|---|
--purpose | string | required |
--scope-narrowing | json | |
--manifest-subject | json |
foir identity move-organization
Re-parent an organization, taking its whole subtree with it.
| Flag | Type | |
|---|---|---|
--id | string | required |
--parent-id | string |
foir identity provision-organization
Provision an organisation in one resumable call, idempotent by the caller’s provision id.
| Flag | Type | |
|---|---|---|
--provision-id | string | required |
--name | string | required |
--parent-id | string | |
--brand | json | |
--settings | json | |
--first-member | json | |
--credential | json | |
--own-pool | boolean | |
--users | string | one of ORGANIZATION_USERS_UNSPECIFIED, ORGANIZATION_USERS_JOINED, ORGANIZATION_USERS_EVERYONE |
--joining | string | one of ORGANIZATION_JOINING_UNSPECIFIED, ORGANIZATION_JOINING_INVITATION_ONLY, ORGANIZATION_JOINING_OPEN, ORGANIZATION_JOINING_REQUEST |
foir identity purge-project
Destroy a deleted project and its data now. It cannot be undone, and a live project is refused.
| Flag | Type | |
|---|---|---|
--id | string | required |
--reason | string | required |
foir identity reactivate-project
Reactivate a deleted project while its data is still kept. It is charged the permission that deletes one.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity rebind-auth-client
Bind an auth client to another place: an app of a project’s pool to an organization of its project or to the whole project, an app of the console’s pool to a project of its workspace or to the whole workspace. What its old binding issued ends and is counted.
| Flag | Type | |
|---|---|---|
--pool-id | string | required |
--client-id | string | required |
--id | string | required |
--bound-project-id | string |
foir identity refresh-token
Exchange a refresh token for a new pair.
| Flag | Type | |
|---|---|---|
--refresh-token | string | required |
foir identity register
Start an account through an app’s own sign-up form: a code goes to the address, and signing in with it finishes the account.
| Flag | Type | |
|---|---|---|
--email | string | required |
--password | string | required |
--first-name | string | |
--last-name | string |
foir identity register-custom-domain
Register a custom login domain, so sign-in is served on your own hostname.
| Flag | Type | |
|---|---|---|
--auth-client-id | string | required |
--hostname | string | required |
--kind | string | required |
--app-target | string | required |
foir identity remove-member
End a person’s membership where the request stands, or at the organisation named, with every role they hold there.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity remove-my-address
Remove an email address from the signed-in user’s account. The one it uses stays.
| Flag | Type | |
|---|---|---|
--id | string | required |
--email | string | required |
foir identity remove-my-factor
Remove one of the signed-in user’s second factors.
| Flag | Type | |
|---|---|---|
--kind | string | required |
--id | string | required |
foir identity remove-verified-domain
Remove a domain. Addresses at it are no longer vouched for by the project’s own issuer.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity rename-my-factor
Rename one of the signed-in user’s security keys or passkeys.
| Flag | Type | |
|---|---|---|
--kind | string | required |
--id | string | required |
--name | string | required |
foir identity request-capability
Ask for a capability the account does not hold.
| Flag | Type | |
|---|---|---|
--capability | string | required |
--note | string | |
--idempotency-key | string | required |
foir identity request-impersonation
Ask a workspace’s managers to let staff in, for a reason they read before approving. For an incident with nobody to ask, it takes the grant at once, as a break-glass event.
| Flag | Type | |
|---|---|---|
--reason | string | required |
--break-glass-justification | string | required |
--idempotency-key | string | required |
foir identity request-password-reset
Mail a link to reset the password of the account an address belongs to. The link carries the token that redeems it, and nothing else does.
| Flag | Type | |
|---|---|---|
--email | string | required |
--client-id | string |
foir identity request-tenant-deletion
Ask for the workspace the request stands in to be deleted: its use ends with what it has paid for, and its data is destroyed after the retention window unless it is activated again first.
Takes no flags.
foir identity resend-account-access
Send a user a new link to choose a password: the account-ready mail where they have never set one, a reset where they have.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity resend-invitation
Send an invitation again, with a new token.
| Flag | Type | |
|---|---|---|
--id | string | required |
--send-email | boolean | |
--accept-url-override | string |
foir identity resolve-actors
Name the actors rows refer to, many at once: who did something, as a label to show beside it.
| Flag | Type | |
|---|---|---|
--ids | string | repeatable |
foir identity resolve-capability-request
Approve a capability request, granting what it asks for, or deny it.
| Flag | Type | |
|---|---|---|
--id | string | required |
--approve | boolean | required |
foir identity resolve-organization-address
Resolve a page URL to the organization whose registered address it falls under.
| Flag | Type | |
|---|---|---|
--url | string | required |
foir identity restore-auth-provider-version
Restore an auth provider version.
| Flag | Type | |
|---|---|---|
--version-id | string | required |
--change-description | string |
foir identity revoke-api-key
Revoke an API key, or every live key confined to an organization and the organizations beneath it, at once.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity revoke-auth-client-grant
Take back an app’s authority to act for the signed-in user.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity revoke-auth-client-secret
Revoke an auth client’s secret.
| Flag | Type | |
|---|---|---|
--pool-id | string | required |
--client-id | string | required |
--auth-client-id | string | required |
--id | string | required |
foir identity revoke-impersonation
Revoke an impersonation.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity revoke-invitation
Revoke an invitation.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity revoke-previous-api-key-secret
Retire the value a rotation left valid, so only the new one authenticates.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity revoke-role-assignment
Revoke a role assignment.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity revoke-session
End a session or revoke a personal access token. A person ends their own as me, one or every sign-in at once.
| Flag | Type | |
|---|---|---|
--id | string | required |
--user-id | string | required |
--everywhere | boolean | required |
--keep-this | boolean | required |
foir identity rotate-api-key
Rotate an API key, leaving the previous value valid until it is retired.
| Flag | Type | |
|---|---|---|
--id | string | required |
--idempotency-key | string | required |
foir identity set-organization-limit
Set an organization limit.
| Flag | Type | |
|---|---|---|
--metric | string | required |
--value | number | required |
foir identity set-organization-status
Move an organization through its lifecycle: suspend, resume, or schedule deletion.
| Flag | Type | |
|---|---|---|
--id | string | required |
--status | string | required |
foir identity set-tenant-entitlement
Give a workspace a feature, refuse it one, or let its plan decide again.
| Flag | Type | |
|---|---|---|
--feature-key | string | required |
--state | string | required; one of TENANT_ENTITLEMENT_STATE_UNSPECIFIED, TENANT_ENTITLEMENT_STATE_GRANT, TENANT_ENTITLEMENT_STATE_DENY |
--reason | string | required |
foir identity set-user-first-password
Set the first password of an account nobody has signed in to.
| Flag | Type | |
|---|---|---|
--id | string | required |
--password | string | required |
foir identity set-verified-domain-joining
Set what a verified address at an organisation’s domain gets: to join it, or to ask to.
| Flag | Type | |
|---|---|---|
--id | string | required |
--joining | string | required; one of ORGANIZATION_JOINING_UNSPECIFIED, ORGANIZATION_JOINING_INVITATION_ONLY, ORGANIZATION_JOINING_OPEN, ORGANIZATION_JOINING_REQUEST |
foir identity sign-in
Sign in with an email address and a password, or send the address a one-time code to sign in with. The code is brought back on the step’s own route.
| Flag | Type | |
|---|---|---|
--email | string | required |
--password | string | required |
--send-code | boolean | required |
foir identity sign-out
Sign out of the session making the request. It ends, and so do the provider tokens kept for it.
Takes no flags.
foir identity start-connect-provider
Start connecting a provider to the signed-in user’s own account.
| Flag | Type | |
|---|---|---|
--provider-key | string | required |
--provider-id | string | required |
--state | string | required |
--return-to | string |
foir identity start-organization-pool
Start an organization’s own pool, which it and everything beneath it sign their people in to.
| Flag | Type | |
|---|---|---|
--move-people | boolean | required |
--validate-only | boolean | required |
foir identity start-provider-sign-in
Start a provider sign-in: answers where the person signs in at the provider, and the step its finish is brought back to.
| Flag | Type | |
|---|---|---|
--provider-key | string | required |
--provider-id | string | required |
--return-to | string | |
--redirect-uri | string |
foir identity start-step-up
Begin proving the signed-in session again: answers the hosted page the person proves it on.
Takes no flags.
foir identity unlink-o-auth-provider
Disconnect a provider from the signed-in user’s own account.
| Flag | Type | |
|---|---|---|
--id | string | required |
--provider | string | required |
foir identity unpublish-auth-provider
Withdraw an auth provider from the published surface now, as a release that can be rolled back. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir identity update-api-key
Update an API key.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--is-active | boolean | |
--allowed-models | string | repeatable |
--update-allowed-models | boolean | required |
--allowed-file-types | string | repeatable |
--update-allowed-file-types | boolean | required |
--grants | string | repeatable |
--update-grants | boolean | required |
--baseline-grants | string | repeatable |
--update-baseline-grants | boolean | required |
--expires-at | json | |
--all-models | boolean |
foir identity update-auth-client
Update an auth client.
| Flag | Type | |
|---|---|---|
--pool-id | string | required |
--client-id | string | required |
--id | string | required |
--name | string | |
--redirect-uris | string | repeatable |
--requires-mfa | boolean | |
--login-methods | json | |
--post-login-url | string | |
--allowed-origins | json | |
--grants | string | repeatable |
--update-grants | boolean | required |
--is-first-party | boolean | |
--initiate-login-uri | string | |
--prompts-for-organization | boolean | |
--logo | json | |
--homepage-url | string | |
--confidential | boolean |
foir identity update-auth-provider
Update an auth provider.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--config | json | |
--enabled | boolean | |
--is-default | boolean | |
--priority | number |
foir identity update-organization
Update an organization.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | required |
--display-name | string | |
--logo-url | string | |
--primary-color | string | |
--from-name | string | |
--reply-to | string | |
--support-email | string | |
--app-base-url | string | |
--terms-url | string | |
--privacy-url | string | |
--users | string | one of ORGANIZATION_USERS_UNSPECIFIED, ORGANIZATION_USERS_JOINED, ORGANIZATION_USERS_EVERYONE |
--joining | string | one of ORGANIZATION_JOINING_UNSPECIFIED, ORGANIZATION_JOINING_INVITATION_ONLY, ORGANIZATION_JOINING_OPEN, ORGANIZATION_JOINING_REQUEST |
--joining-role-id | string | |
--sign-in-methods | json | |
--requires-second-factor | boolean | |
--locks-accounts-after-failed-sign-ins | string | one of ORGANIZATION_ACCOUNT_LOCKING_UNSPECIFIED, ORGANIZATION_ACCOUNT_LOCKING_LOCKS, ORGANIZATION_ACCOUNT_LOCKING_DOES_NOT_LOCK |
foir identity update-password
Update a password.
| Flag | Type | |
|---|---|---|
--current-password | string | required |
--new-password | string | required |
foir identity update-project
Change a project, or make it the workspace’s default.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--description | string | |
--display-name | string | |
--logo-url | string | |
--primary-color | string | |
--from-name | string | |
--reply-to | string | |
--support-email | string | |
--app-base-url | string | |
--terms-url | string | |
--privacy-url | string | |
--from-email | string | |
--resend-key-secret-ref | string | |
--welcome-email-enabled | boolean | |
--password-enabled | boolean | |
--otp-enabled | boolean | |
--session-idle-days | number | |
--session-absolute-days | number | |
--organization-signup-enabled | boolean | |
--organization-signup-role-key | string | |
--organization-signup-role-id | string | |
--organization-users | string | one of ORGANIZATION_USERS_UNSPECIFIED, ORGANIZATION_USERS_JOINED, ORGANIZATION_USERS_EVERYONE |
--organization-own-pool | boolean | |
--organization-joining | string | one of ORGANIZATION_JOINING_UNSPECIFIED, ORGANIZATION_JOINING_INVITATION_ONLY, ORGANIZATION_JOINING_OPEN, ORGANIZATION_JOINING_REQUEST |
--signup-mode | string | one of SIGNUP_MODE_UNSPECIFIED, SIGNUP_MODE_PUBLIC, SIGNUP_MODE_RESTRICTED, SIGNUP_MODE_WAITLIST, SIGNUP_MODE_CLOSED |
--signup-restrictions | json | |
--note-screenshots-enabled | boolean | |
--anonymous-notes-enabled | boolean | |
--organization-assignable-roles | json | |
--sites | json | |
--is-default | boolean | |
--locks-accounts-after-failed-sign-ins | boolean |
foir identity update-role
Update a role.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--is-default | boolean | |
--grants | string | repeatable |
--update-grants | boolean | required |
foir identity update-tenant
Change a workspace: its name, and for staff its status, its project limit and whether its projects take anonymous notes.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--status | string | one of TENANT_STATUS_UNSPECIFIED, TENANT_STATUS_PENDING_SETUP, TENANT_STATUS_ACTIVE, TENANT_STATUS_PAST_DUE, TENANT_STATUS_SUSPENDED, TENANT_STATUS_CANCELLED, TENANT_STATUS_CHURNED |
--project-limit | json | |
--anonymous-notes-enabled | boolean |
foir identity update-user
Update a user. A person changes their own name, picture and language as me; their address changes through their addresses, and their status is not theirs to change.
| Flag | Type | |
|---|---|---|
--id | string | required |
--email | string | |
--status | string | one of USER_STATUS_UNSPECIFIED, USER_STATUS_ACTIVE, USER_STATUS_PENDING, USER_STATUS_SUSPENDED, USER_STATUS_DELETED |
--preferred-locale | string | |
--first-name | string | |
--last-name | string | |
--avatar-url | string |
foir identity validate-api-key
Say what the API key the request carries is and may do.
| Flag | Type | |
|---|---|---|
--api-key | string | required |
foir identity validate-invitation
Read the invitation a token names, before accepting it.
| Flag | Type | |
|---|---|---|
--token | string | required |
foir identity verify-custom-domain
Check a custom domain’s DNS record, and serve sign-in on it once it is proven.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir marketplace
foir marketplace create-listing
Create a listing.
| Flag | Type | |
|---|---|---|
--slug | string | required |
--display-name | string | required |
--summary | string | required |
--long-description | string | required |
--category | string | required |
--publisher | string | required |
--icon-url | string | |
--screenshot-urls | string | repeatable |
--support-url | string | |
--manifest-url | string | required |
--sort-order | number |
foir marketplace get-listing
Fetch a published marketplace listing by slug or id, with the manifest it serves now.
| Flag | Type | |
|---|---|---|
--slug | string | one of selector |
--id | string | one of selector |
foir marketplace list-listings
List the published marketplace listings. Public content: any credential may read it.
| Flag | Type | |
|---|---|---|
--category | string | |
--first | number | |
--after | string | |
--last | number | |
--before | string | |
--include-unpublished | boolean |
foir marketplace reorder-listings
Reorder listings.
| Flag | Type | |
|---|---|---|
--ids | string | repeatable |
foir marketplace set-listing-published
Publish or withdraw a marketplace listing.
| Flag | Type | |
|---|---|---|
--id | string | required |
--published | boolean | required |
foir marketplace update-listing
Update a listing.
| Flag | Type | |
|---|---|---|
--id | string | required |
--display-name | string | |
--summary | string | |
--long-description | string | |
--category | string | |
--publisher | string | |
--icon-url | string | |
--support-url | string | |
--manifest-url | string | |
--sort-order | number | |
--screenshot-urls | json |
foir marketplace upload-listing-image
Upload an image for a marketplace listing.
| Flag | Type | |
|---|---|---|
--data | string | required |
--idempotency-key | string | required |
foir models
foir models create
Create a model.
| Flag | Type | |
|---|---|---|
--key | string | required |
--name | string | required |
--fields | json | repeatable |
--config | json | |
--config-id | string | |
--update-push-snapshot | boolean | required |
foir models delete
Delete a model. A released one stays in production, records included, until a release carries the deletion.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir models discard-draft
Discards unpublished draft edits: reverts the live schema (fields + config) back to published_snapshot and points current_version_id at published_version_id, returning the model to a clean “no pending changes” state.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir models duplicate
Copy a model into a new one.
| Flag | Type | |
|---|---|---|
--id | string | required |
--new-key | string | required |
--new-name | string | required |
--idempotency-key | string | required |
foir models get
Fetch a model by id or by its key. The full view adds whether its definition is published, what a release would change and which records it would strand.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--key | string | one of ref |
--view | string | required; one of MODEL_VIEW_UNSPECIFIED, MODEL_VIEW_BASIC, MODEL_VIEW_FULL |
foir models get-version
Fetch a model version by id.
| Flag | Type | |
|---|---|---|
--model-id | string | required |
--id | string | required |
foir models list
List models.
| Flag | Type | |
|---|---|---|
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--where | json |
foir models list-versions
List model versions.
| Flag | Type | |
|---|---|---|
--model-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir models restore-version
Restore a model version.
| Flag | Type | |
|---|---|---|
--model-id | string | required |
--version-id | string | required |
foir models unpublish
Withdraw a model from the published surface.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir models update
Update a model.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--fields | json | repeatable |
--config | json | |
--change-description | string | |
--update-fields | boolean | required |
--update-push-snapshot | boolean | required |
--snapshot-only | boolean | required |
--allow-lookup-rebuild | boolean | required |
--expected-version-id | string | |
--drop-removed-fields | boolean | required |
foir notifications
foir notifications delete
Delete a notification.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir notifications delete-push-credential
Delete a push credential.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir notifications get-preferences
Fetch the notification preferences.
| Flag | Type | |
|---|---|---|
--user-id | string | required |
foir notifications get-web-push-config
Fetch the project’s VAPID public key, for a web client to subscribe to push.
Takes no flags.
foir notifications list
List notifications.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir notifications list-announcement-history
List announcement history.
| Flag | Type | |
|---|---|---|
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir notifications list-platform-categories
List the categories of notification the platform itself sends.
Takes no flags.
foir notifications list-push-credentials
List push credentials.
Takes no flags.
foir notifications list-sent
List the notifications this project sent.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir notifications mark-read
Mark a notification as read, many, or every unread one.
| Flag | Type | |
|---|---|---|
--id | string | required |
--ids | string | repeatable |
--all-unread | json |
foir notifications register-device-token
Register a device to receive push notifications.
| Flag | Type | |
|---|---|---|
--user-id | string | required |
--token | string | required |
--platform | string | required |
--device-name | string |
foir notifications send
Send a notification to a person, or to many.
| Flag | Type | |
|---|---|---|
--user-id | string | required |
--user-ids | string | repeatable |
--title | string | required |
--message | string | |
--category | string | |
--action-url | string | |
--metadata | json | |
--image-url | string | |
--expires-at | json | |
--channels | json | repeatable |
--copy-action-key | string | |
--rich-body | string | |
--validate-only | boolean | required |
--idempotency-key | string |
foir notifications send-announcement
Send an announcement.
| Flag | Type | |
|---|---|---|
--title | string | required |
--message | string | |
--action-url | string | |
--target-type | string | |
--target-ids | string | repeatable |
--category | string | |
--validate-only | boolean | required |
--idempotency-key | string | required |
foir notifications unregister-device-token
Stop sending push notifications to a device.
| Flag | Type | |
|---|---|---|
--id | string | one of device |
--token | string | one of device |
foir notifications update-preference
Update a notification preference.
| Flag | Type | |
|---|---|---|
--user-id | string | required |
--category | string | required |
--email-enabled | boolean | |
--push-enabled | boolean | |
--in-app-enabled | boolean | |
--source-modified-at | json | |
--given-elsewhere | boolean | |
--locale | string | |
--email | string |
foir notifications upload-push-credential
Upload a push credential.
| Flag | Type | |
|---|---|---|
--platform | string | required |
--apns-p-8-key | string | |
--bundle-id | string | |
--apns-team-id | string | |
--apns-key-id | string | |
--apns-production | boolean | |
--fcm-service-account-json | string |
foir operations
foir operations create
Create an operation.
| Flag | Type | |
|---|---|---|
--key | string | required |
--name | string | required |
--description | string | |
--icon | string | |
--category | string | |
--endpoint | string | required |
--endpoint-auth | string | |
--timeout-ms | number | |
--input-schema | json | |
--output-schema | json | |
--ui | json | |
--quotas | json | |
--allowed-permissions | string | repeatable |
--retry-policy | json | |
--precondition | json | |
--second-factor | json | |
--is-active | boolean | |
--supports-async | boolean | |
--callback-ttl-seconds | number | |
--callback-timeout-retry-policy | json | |
--grants | string | repeatable |
--read-only | boolean | required |
--kind | string | required; one of OPERATION_KIND_UNSPECIFIED, OPERATION_KIND_MUTATION, OPERATION_KIND_QUERY, OPERATION_KIND_FIELD |
--attached-to-model | string | |
--parent-fields | string | repeatable |
--cache-control | json | |
--secret-bindings | json | repeatable |
--request-template | json | |
--response-transform | string | |
--config-id | string | one of config |
--config-key | string | one of config |
foir operations delete
Delete an operation. A released one stays in production until a release carries the deletion.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir operations discard-draft
Throw away an operation’s unpublished changes, so its definition is the one production is served again.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir operations dismiss-dead-letter-entry
Dismiss a dead letter entry, many, or every pending one.
| Flag | Type | |
|---|---|---|
--id | string | required |
--ids | string | repeatable |
--all-pending | json |
foir operations get
Fetch an operation by id, with whether its definition is published and what a release would change.
| Flag | Type | |
|---|---|---|
--id | string | required |
--key | string |
foir operations get-dead-letter-stats
Fetch the dead letter stats.
Takes no flags.
foir operations get-quota-usage
Fetch operation quota usage.
| Flag | Type | |
|---|---|---|
--operation-id | string | one of operation |
--operation-key | string | one of operation |
--user-id | string | |
--actor-id | string |
foir operations get-signing-secret
Fetch the project’s signing secret, which signs every delivery between the platform and an app.
Takes no flags.
foir operations get-version
Fetch an operation version by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir operations list
List operations.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--applies-to-model-id | string | one of applies_to |
--applies-to-model-key | string | one of applies_to |
foir operations list-circuit-states
List circuit states.
| Flag | Type | |
|---|---|---|
--first | number | |
--after | string | |
--last | number | |
--before | string |
foir operations list-dead-letter-entries
List dead letter entries.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--with-operation-keys | boolean | required |
foir operations list-versions
List operation versions.
| Flag | Type | |
|---|---|---|
--operation-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir operations regenerate-signing-secret
Issue a new signing secret for operation callbacks, invalidating the old one.
| Flag | Type | |
|---|---|---|
--idempotency-key | string | required |
foir operations reset-circuit
Reset circuit.
| Flag | Type | |
|---|---|---|
--id | string | one of circuit |
--operation-key | string | one of circuit |
foir operations restore-version
Restore an operation version.
| Flag | Type | |
|---|---|---|
--version-id | string | required |
--change-description | string |
foir operations retry-dead-letter-entry
Retry a dead letter entry, or many.
| Flag | Type | |
|---|---|---|
--id | string | required |
--ids | string | repeatable |
--idempotency-key | string | required |
foir operations stream-dev-dispatches
Hold a LOCAL DEVELOPMENT session: dispatches for this project arrive down the stream instead of being POSTed to a public endpoint.
| Flag | Type | |
|---|---|---|
--operation-keys | string | repeatable |
--operation-ids | string | repeatable |
--forward-to | string | required |
foir operations unpublish
Withdraw an operation from the published surface now, as a release that can be rolled back. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir operations update
Update an operation.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--description | string | |
--endpoint | string | |
--endpoint-auth | string | |
--timeout-ms | number | |
--input-schema | json | |
--output-schema | json | |
--ui | json | |
--is-active | boolean | |
--quotas | json | |
--retry-policy | json | |
--precondition | json | |
--allowed-permissions | string | repeatable |
--second-factor | json | |
--supports-async | boolean | |
--callback-ttl-seconds | number | |
--callback-timeout-retry-policy | json | |
--grants | string | repeatable |
--update-grants | boolean | required |
--read-only | boolean | |
--kind | string | one of OPERATION_KIND_UNSPECIFIED, OPERATION_KIND_MUTATION, OPERATION_KIND_QUERY, OPERATION_KIND_FIELD |
--attached-to-model | string | |
--parent-fields | string | repeatable |
--cache-control | json | |
--secret-bindings | json | repeatable |
--request-template | json | |
--response-transform | string | |
--config-id | string | one of config |
--config-key | string | one of config |
foir platform-settings
foir platform-settings get-model-setup
Read the models Fóir runs, their confirmed prices, and the model and fallback of each job.
Takes no flags.
foir platform-settings get-platform-settings
Returns every platform setting as a key/value list.
Takes no flags.
foir platform-settings get-response-cache-stats
Returns fleet-wide approximate key counts for the api-public GraphQL response cache.
Takes no flags.
foir platform-settings list-foir-model-catalogue
List a provider’s models as Fóir’s own key reads them, with their lifecycle where the provider states it.
| Flag | Type | |
|---|---|---|
--provider | string | required |
foir platform-settings remove-ai-model
Remove a model no job uses.
| Flag | Type | |
|---|---|---|
--provider | string | required |
--model | string | required |
foir platform-settings save-ai-model
Add a model Fóir runs, or change its confirmed price and what it can do.
| Flag | Type | |
|---|---|---|
--model | json |
foir platform-settings set-ai-job
Give one of Fóir’s jobs its model and its fallback on the other provider.
| Flag | Type | |
|---|---|---|
--job | string | required |
--model | json | |
--fallback | json |
foir platform-settings update-platform-setting
Upserts a single setting by key.
| Flag | Type | |
|---|---|---|
--key | string | required |
--value | string | required |
foir queue
foir queue get-all-status
Report the depth and health of every queue.
Takes no flags.
foir queue get-job-details
Fetch one queued job, with its payload and attempts.
| Flag | Type | |
|---|---|---|
--queue | string | required |
--id | string | required |
foir queue get-repeatable-jobs
List the jobs the queue re-runs on a schedule.
Takes no flags.
foir queue list-jobs
List queue jobs.
| Flag | Type | |
|---|---|---|
--queue | string | required |
--state | string | required; one of JOB_STATE_UNSPECIFIED, JOB_STATE_PENDING, JOB_STATE_ACTIVE, JOB_STATE_SCHEDULED, JOB_STATE_RETRY, JOB_STATE_ARCHIVED, JOB_STATE_COMPLETED, JOB_STATE_AGGREGATING |
--page | number | required |
--page-size | number | required |
foir queue retry-job
Retry a job.
| Flag | Type | |
|---|---|---|
--queue | string | required |
--id | string | required |
--idempotency-key | string | required |
foir records
foir records aggregate
Count, group and total records without pulling them.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
--where | json | |
--group-by | string | |
--aggregates | json | repeatable |
--limit | number |
foir records backfill-geometry
Backfill a record geometry over existing rows.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
foir records backfill-model-indexes
Rebuild the queryable indexes for a model’s existing records.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
foir records backfill-queryable-index
Backfill a queryable index over existing rows.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
foir records batch-operations
Apply record operations in one call.
| Flag | Type | |
|---|---|---|
--operations | json | repeatable |
--maintenance | boolean | required |
--validate | boolean | required |
--atomic | boolean | required |
--idempotency-key | string |
foir records bulk-update
Update records for many rows in one call.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
--where | json | |
--update | json | |
--maintenance | boolean | required |
--idempotency-key | string |
foir records capture-default-as-variant
Preserves the record’s current default content as a named, inactive variant, creating its catalogue entry in the same transaction.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
--name | string | required |
--key | string | |
--idempotency-key | string | required |
foir records check-lookup-availability
Check whether a lookup value is still free before writing it.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
--lookup-name | string | required |
--key-hash | string | required |
--channel | string | required |
--variant-id | string | |
--locale | string | |
--exclude-record-id | string |
foir records clear-slow-query-advisor-entry
Clear a slow query advisor entry.
| Flag | Type | |
|---|---|---|
--resource-key | string | |
--resource-id | string | required |
--field-path | string | required |
--operator | string | required |
foir records create
Create a record.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
--key | string | |
--data | json | |
--owner-id | string | |
--metadata | json | |
--write | json |
foir records create-variant
Create a variant.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
--key | string | required |
--data | json | |
--idempotency-key | string | required |
foir records delete
Delete a record.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir records delete-embeddings
Remove stored embeddings for records.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
foir records delete-variant
Delete a variant.
| Flag | Type | |
|---|---|---|
--variant-id | string | required |
foir records duplicate
Copy records, each under a new id and its own key or none, in one transaction.
| Flag | Type | |
|---|---|---|
--items | json | repeatable |
--model-key | string | |
--model-id | string | required |
--idempotency-key | string | required |
foir records embedding-digests
Report the stored content digest behind each record embedding, for deciding what needs re-embedding.
| Flag | Type | |
|---|---|---|
--record-ids | string | repeatable |
--key | string | |
--model-key | string | |
--model-id | string | required |
foir records enqueue-generate-embedding
Queue a background job to generate an embedding for a record.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
--model-key | string | required |
--model-id | string | required |
--source | string | |
--idempotency-key | string | required |
foir records erase-user
Erase what an app holds for a user it names by identity.
| Flag | Type | |
|---|---|---|
--user | json |
foir records find-nearest
Find nearest records.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
--radius-meters | number | |
--model-key | string | |
--model-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir records find-similar
Find similar records.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
--model-key | string | |
--model-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--user-id | string | |
--context | json |
foir records get
Fetch a record by its id, or by its model and its own key.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--key | json | one of ref |
foir records get-counts
Count the records in each of several models.
| Flag | Type | |
|---|---|---|
--model-keys | string | repeatable |
foir records get-embedding-stats
Fetch the embedding stats.
| Flag | Type | |
|---|---|---|
--model-key | string | |
--model-id | string | required |
foir records get-embeddings
Fetch a record’s stored embeddings.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
foir records get-user
Read the record of a user an app names by identity.
| Flag | Type | |
|---|---|---|
--user | json |
foir records get-user-by-identity
Find the user who holds an identity an app names.
| Flag | Type | |
|---|---|---|
--identity | string | required |
foir records get-user-identities
Read the identities of a user an app names by id.
| Flag | Type | |
|---|---|---|
--user-id | string | required |
foir records global-search
Search across every model in the project at once.
| Flag | Type | |
|---|---|---|
--query | string | required |
--model-keys | string | repeatable |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--cross-workspace | boolean | required |
--resolution | json |
foir records list
List records.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
--sort | json | repeatable |
--owner-id | string | |
--search | string | |
--preview | boolean | required |
--where | json | |
--include-descendants | boolean | |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--resolution | json | |
--skip-total | boolean | required |
--missing-embedding | string | |
--missing-geometry | string | |
--missing-locale | string |
foir records list-draft-versions
List draft versions.
| Flag | Type | |
|---|---|---|
--model-key | string | |
--model-id | string | required |
--search | string | |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--dedupe-by-parent | boolean | required |
foir records list-lookup-conflicts
List lookup conflicts.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
--lookup-name | string | |
--channel | string | required |
--first | number | |
--after | string | |
--last | number | |
--before | string |
foir records list-slow-query-advisor-entries
List the slow queries the advisor has recorded.
| Flag | Type | |
|---|---|---|
--resource-key | string | |
--resource-id | string | required |
--row-limit | number |
foir records list-variants
List record variants.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir records list-versions
List a record’s versions. A caller without drafts:read is answered the versions that are or were published.
| Flag | Type | |
|---|---|---|
--parent-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--only-published | boolean |
foir records lookup-models
Resolve record ids to their model keys, for polymorphic references that stored no model hint.
| Flag | Type | |
|---|---|---|
--record-ids | string | repeatable |
foir records patch-fields
Apply typed operations to a record’s fields.
| Flag | Type | |
|---|---|---|
--id | string | required |
--update | json | |
--write | json | |
--key | json | |
--match | json |
foir records publish-version
Publish a version, or many.
| Flag | Type | |
|---|---|---|
--version-id | string | required |
--version-ids | string | repeatable |
--maintenance | boolean | required |
foir records purge-response-cache
Clear cached responses for a record, a model or the project.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
--record-id | string | required |
--record-key | string | required |
--all | boolean | required |
foir records rebuild-model-lookups
Rebuild the model lookups.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
foir records records-locale-coverage
Report how much of the project is translated, per locale.
Takes no flags.
foir records records-using-variant-catalog
List the records that use a variant catalogue entry.
| Flag | Type | |
|---|---|---|
--catalog-id | string | required |
--model-key | string | |
--model-id | string | required |
--after | string | |
--first | number |
foir records rename
Change the key a record is addressed by.
| Flag | Type | |
|---|---|---|
--id | string | required |
--new-key | string | required |
--write | json | |
--key | json | |
--match | json |
foir records resolve
Resolve records as a reader is served them, named by id, by key or by lookup: variant selection, version data, media and system fields.
| Flag | Type | |
|---|---|---|
--refs | json | repeatable |
--audience | json | |
--unresolved | boolean | required |
foir records revert-to-version
Revert a record to an earlier version, by appending that version’s content as a new one.
| Flag | Type | |
|---|---|---|
--version-id | string | required |
--validate-only | boolean | required |
--model-key | string | |
--model-id | string | required |
--idempotency-key | string | required |
foir records save-content
Save a record’s content.
| Flag | Type | |
|---|---|---|
--id | string | one of target |
--key | json | one of target |
--own | json | one of target |
--user | json | one of target |
--content | json | |
--base | json | |
--autosave | boolean | required |
--write | json | |
--owner-id | string | |
--source-modified-at | json |
foir records search-by-location
Search by locations.
| Flag | Type | |
|---|---|---|
--lat | number | required |
--lng | number | required |
--radius-meters | number | |
--model-key | string | |
--model-id | string | required |
--key | string | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir records search-embeddings
Search embeddings.
| Flag | Type | |
|---|---|---|
--query-vector | number | repeatable |
--model-key | string | |
--model-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--query-text | string | |
--user-id | string | |
--context | json |
foir records set-default-variant
Set a default variant.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
--variant-id | string | required |
foir records set-field-locale
Write translations of a record’s fields: one field in one locale, or several as one change.
| Flag | Type | |
|---|---|---|
--id | string | required |
--field-path | string | required |
--locale | string | required |
--value | json | |
--overwrite | boolean | required |
--write | json | |
--segments | string | repeatable |
--translations | json | repeatable |
foir records set-metadata
Set a record’s display metadata.
| Flag | Type | |
|---|---|---|
--id | string | required |
--metadata | json | |
--write | json |
foir records set-owner
Reassign who a record belongs to.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
--owner-id | string | |
--owner-kind | string |
foir records slow-query-advisor-summary
Summarise the slow-query advisor: how many slow queries, and against which models.
Takes no flags.
foir records start-embedding-backfill
Start an embedding backfill.
| Flag | Type | |
|---|---|---|
--model-key | string | required |
--model-id | string | required |
--idempotency-key | string | required |
--validate-only | boolean | required |
foir records unpublish
Withdraw a record from the published surface.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
foir records update-variant
Update a variant.
| Flag | Type | |
|---|---|---|
--variant-id | string | required |
--data | json | |
--metadata-patch | json |
foir records write-embeddings
Store embeddings for records.
| Flag | Type | |
|---|---|---|
--entries | json | repeatable |
foir resource-access
foir resource-access expand-resource-access
Expand: enumerate EVERY accessor the compiled RLS predicate admits (owner + grants + role plane), each tagged with its source, plus a public flag.
| Flag | Type | |
|---|---|---|
--resource-type | string | required; one of RESOURCE_TYPE_UNSPECIFIED, RESOURCE_TYPE_RECORD, RESOURCE_TYPE_FILE, RESOURCE_TYPE_NOTE |
--resource-id | string | required |
--principal | string | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir resource-access grant-resource-access
Grant a principal access to a resource (INSERT into the descriptor’s ACL edge).
| Flag | Type | |
|---|---|---|
--resource-type | string | required; one of RESOURCE_TYPE_UNSPECIFIED, RESOURCE_TYPE_RECORD, RESOURCE_TYPE_FILE, RESOURCE_TYPE_NOTE |
--resource-id | string | required |
--grantee | json | |
--access | string | required; one of ACCESS_UNSPECIFIED, ACCESS_READ, ACCESS_WRITE, ACCESS_DELETE |
foir resource-access list-resource-grants
List the visibility + per-principal grants on a resource (for those who can edit it).
| Flag | Type | |
|---|---|---|
--resource-type | string | required; one of RESOURCE_TYPE_UNSPECIFIED, RESOURCE_TYPE_RECORD, RESOURCE_TYPE_FILE, RESOURCE_TYPE_NOTE |
--resource-id | string | required |
foir resource-access revoke-resource-access
Revoke a principal’s access (DELETE from the ACL edge).
| Flag | Type | |
|---|---|---|
--resource-type | string | required; one of RESOURCE_TYPE_UNSPECIFIED, RESOURCE_TYPE_RECORD, RESOURCE_TYPE_FILE, RESOURCE_TYPE_NOTE |
--resource-id | string | required |
--grantee | json | |
--access | string | required; one of ACCESS_UNSPECIFIED, ACCESS_READ, ACCESS_WRITE, ACCESS_DELETE |
foir resource-access set-resource-visibility
Set a resource’s visibility mode (rides the resource’s own edit RLS).
| Flag | Type | |
|---|---|---|
--resource-type | string | required; one of RESOURCE_TYPE_UNSPECIFIED, RESOURCE_TYPE_RECORD, RESOURCE_TYPE_FILE, RESOURCE_TYPE_NOTE |
--resource-id | string | required |
--visibility | string | required; one of VISIBILITY_UNSPECIFIED, VISIBILITY_PRIVATE, VISIBILITY_PUBLIC |
foir runs
foir runs cancel
Cancel a run of an operation or an agent, or every run of one operation still going. What a run already did is not undone.
| Flag | Type | |
|---|---|---|
--id | string | required |
--visitor-token | string | required |
--of-operation | json |
foir runs decide-approval
Approve or deny an act held for a decision, and on approve, carry it out.
| Flag | Type | |
|---|---|---|
--id | string | required |
--approve | boolean | required |
--reason | string | required |
foir runs get
Fetch a run with its nodes: an operation’s step, or an agent’s tool calls, model turns, checks and held acts.
| Flag | Type | |
|---|---|---|
--id | string | required |
--visitor-token | string | required |
foir runs list
List runs of operations and agents, newest first.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--first | number | |
--before | string | |
--last | number |
foir runs list-approvals
List the acts held for a decision, from any run and on any note.
| Flag | Type | |
|---|---|---|
--include-decided | boolean | required |
--note-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir runs resolve
Answer a query operation inline, for one item or many.
| Flag | Type | |
|---|---|---|
--operation | string | required |
--items | json | repeatable |
--user-id | string | required |
foir runs start
Start a run of an operation or an agent.
| Flag | Type | |
|---|---|---|
--operation | json | one of target |
--agent | json | one of target |
--idempotency-key | string | required |
foir runs summarize
Count how the runs of each operation and agent have gone.
| Flag | Type | |
|---|---|---|
--target-id | string | one of only |
--target | string | one of only |
foir runs watch
Follow a run as it happens: an operation’s progress and outcome, or an agent’s answer as it is written, its tool calls and its held acts.
| Flag | Type | |
|---|---|---|
--id | string | required |
--after | string | required |
--visitor-token | string | required |
foir schedules
foir schedules create-cron
Create a cron schedule.
| Flag | Type | |
|---|---|---|
--key | string | required |
--name | string | required |
--description | string | |
--cron | string | required |
--timezone | string | |
--operation-id | string | one of operation |
--operation-key | string | one of operation |
--config-id | string | |
--each | string | |
--idempotency-key | string | required |
foir schedules delete-cron
Delete a cron schedule. A released one stays in production until a release carries the deletion.
| Flag | Type | |
|---|---|---|
--id | string | required |
--key | string |
foir schedules discard-cron-draft
Throw away a cron schedule’s unpublished changes, so it is again what production fires.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir schedules get-cron
Fetch a cron schedule by id or by its key.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--key | string | one of ref |
foir schedules list-cron
List cron schedules.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir schedules pause-cron
Stop a cron schedule firing, without deleting it.
| Flag | Type | |
|---|---|---|
--id | string | required |
--key | string |
foir schedules resume-cron
Resume a cron schedule.
| Flag | Type | |
|---|---|---|
--id | string | required |
--key | string |
foir schedules trigger-cron
Trigger a cron schedule.
| Flag | Type | |
|---|---|---|
--id | string | required |
--key | string | |
--idempotency-key | string | required |
foir schedules unpublish-cron
Withdraw a cron schedule from production now, so it stops firing, as a release that can be rolled back. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir schedules update-cron
Update a cron schedule.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--description | string | |
--cron | string | |
--timezone | string | |
--operation-id | string | one of operation |
--operation-key | string | one of operation |
--key | string | |
--each | string |
foir secrets
foir secrets delete
Delete a secret. It is kept for a while, and can be brought back until it is purged.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir secrets get
Fetch a secret by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
--purpose | string | required |
foir secrets list
List the secrets of the project the request stands in, never their values. Staff sending it to no workspace list the vault across every workspace, to watch deletions drain and rotations finish.
| Flag | Type | |
|---|---|---|
--owner-kind | string | required; one of OWNER_KIND_UNSPECIFIED, OWNER_KIND_PROJECT, OWNER_KIND_APP, OWNER_KIND_USER |
--owner-id | string | required |
--include-soft-deleted | boolean | required |
--first | number | |
--after | string | |
--last | number | |
--before | string | |
--where | json |
foir secrets purge-soft-deleted
Permanently remove soft-deleted secrets. The values go, and this cannot be undone.
Takes no flags.
foir secrets put
Store a secret and return the reference other configuration uses to name it.
| Flag | Type | |
|---|---|---|
--owner-kind | string | required; one of OWNER_KIND_UNSPECIFIED, OWNER_KIND_PROJECT, OWNER_KIND_APP, OWNER_KIND_USER |
--owner-id | string | required |
--label | string | required |
--plaintext | string | required |
--expires-at | json |
foir secrets restore
Bring back a deleted secret before it is purged.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir secrets rotate
Rotate a secret, leaving the previous value valid until it is retired.
| Flag | Type | |
|---|---|---|
--id | string | required |
--plaintext | string | required |
--expires-at | json | |
--idempotency-key | string | required |
foir settings
foir settings cancel-pending-deletion
Keep a definition pending deletion: no release deletes it, and its draft is back.
| Flag | Type | |
|---|---|---|
--item | json |
foir settings cancel-release
Cancel a release: one scheduled never goes out, and one running stops before its next record version.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings create-context-dimension
Create a context dimension.
| Flag | Type | |
|---|---|---|
--key | string | required |
--name | string | required |
--description | string | |
--source-type | string | required |
--source-model-id | string | one of source_model |
--source-model-key | string | one of source_model |
--default-record-id | string | one of default_record |
--default-record-key | string | one of default_record |
--evaluation-rules | json | |
--config-id | string |
foir settings create-locale
Create a locale.
| Flag | Type | |
|---|---|---|
--locale | string | required |
--display-name | string | required |
--native-name | string | |
--is-default | boolean | |
--is-rtl | boolean | |
--fallback-locale | string |
foir settings create-note
Create a note.
| Flag | Type | |
|---|---|---|
--content | json | |
--parent-note-id | string | |
--subject-type | string | required |
--subject-id | string | required |
--reply-to-user | boolean | |
--assignee-id | string | |
--attachment-file-ids | string | repeatable |
--due-date | json | |
--anonymous-contact-email | string | |
--anchor-field | string | |
--anchor-node-id | string | |
--anchor-snippet | string | |
--idempotency-key | string | required |
foir settings create-note-approval
Create a note approval.
| Flag | Type | |
|---|---|---|
--note-id | string | required |
--tool-name | string | required |
--tool-args | json | |
--summary | string | required |
--required-verb | string | required |
--execution-id | string | |
--idempotency-key | string | required |
foir settings create-notification-category
Create a notification category.
| Flag | Type | |
|---|---|---|
--key | string | required |
--display-name | string | required |
--description | string | |
--email-policy | string | one of CHANNEL_POLICY_UNSPECIFIED, CHANNEL_POLICY_DEFAULT_ON, CHANNEL_POLICY_DEFAULT_OFF, CHANNEL_POLICY_REQUIRED |
--push-policy | string | one of CHANNEL_POLICY_UNSPECIFIED, CHANNEL_POLICY_DEFAULT_ON, CHANNEL_POLICY_DEFAULT_OFF, CHANNEL_POLICY_REQUIRED |
--in-app-policy | string | one of CHANNEL_POLICY_UNSPECIFIED, CHANNEL_POLICY_DEFAULT_ON, CHANNEL_POLICY_DEFAULT_OFF, CHANNEL_POLICY_REQUIRED |
--opt-in-confirmation | string | one of OPT_IN_CONFIRMATION_UNSPECIFIED, OPT_IN_CONFIRMATION_NONE, OPT_IN_CONFIRMATION_EMAIL |
foir settings create-variant-catalog-entry
Create a variant catalog entry.
| Flag | Type | |
|---|---|---|
--key | string | required |
--name | string | required |
--description | string | |
--targeting-rules | json | |
--priority | number | |
--is-default | boolean | |
--is-active | boolean |
foir settings delete-context-dimension
Delete a context dimension. A released one stays in production until a release carries the deletion.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings delete-locale
Delete a locale. A released one stays in production until a release carries the deletion.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings delete-note
Delete a note.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings delete-notification-category
Delete a notification category.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings delete-variant-catalog-entry
Delete a variant catalog entry. A released one stays in production until a release carries the deletion.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings discard-context-dimension-draft
Throw away a context dimension’s unpublished changes, so its definition is the one production is served again.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings discard-design-tokens-draft
Throw away the draft design tokens of the level the request stands in, so the draft is the published document again.
Takes no flags.
foir settings discard-locale-draft
Throw away a locale’s unpublished changes, so it is again what production is served.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings discard-login-page-draft
Throw away a sign-in page’s unpublished changes, so its draft is again what production is served.
| Flag | Type | |
|---|---|---|
--relying-party-id | string | required |
foir settings discard-notification-category-draft
Throw away a notification category’s unpublished changes, so it is again what production is served.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings discard-variant-catalog-entry-draft
Throw away a variant catalogue entry’s unpublished changes, so it is again what production is served.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings get-context-dimension
Fetch a context dimension by id, with whether its definition is published and what a release would change.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings get-context-dimension-version
Fetch one revision of a context dimension, with the definition it held.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings get-design-token-version
Fetch one revision of the design tokens the request is served, with the document it held.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings get-design-tokens
Fetch the design tokens of the level the request stands in, with whether the draft is published and what a release would change.
| Flag | Type | |
|---|---|---|
--channel | string | required; one of SCHEMA_CHANNEL_UNSPECIFIED, SCHEMA_CHANNEL_PUBLISHED, SCHEMA_CHANNEL_DRAFT |
foir settings get-locale
Fetch a locale by id, by its code, or the default where the request stands.
| Flag | Type | |
|---|---|---|
--id | string | one of ref |
--code | string | one of ref |
--default-locale | boolean | one of ref |
foir settings get-locale-chains
Report how the resolver will route each locale, so a console does not have to work it out.
| Flag | Type | |
|---|---|---|
--locales | string | repeatable |
--drafts | json | repeatable |
foir settings get-login-page
Read a sign-in page: what a level or an app sets, what is in force there, where each field comes from, and the page as the sign-in shows it.
| Flag | Type | |
|---|---|---|
--relying-party-id | string | required |
--channel | string | required; one of SCHEMA_CHANNEL_UNSPECIFIED, SCHEMA_CHANNEL_PUBLISHED, SCHEMA_CHANNEL_DRAFT |
foir settings get-login-page-version
Fetch one saved version of a sign-in page, with the page it held.
| Flag | Type | |
|---|---|---|
--relying-party-id | string | required |
--id | string | required |
foir settings get-nav-preferences
Fetch the nav preferences.
Takes no flags.
foir settings get-note
Fetch a note by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings get-notification-category
Fetch a notification category by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings get-project-schema
Fetch the whole project schema in one call, for building the GraphQL surface.
| Flag | Type | |
|---|---|---|
--channel | string | required; one of SCHEMA_CHANNEL_UNSPECIFIED, SCHEMA_CHANNEL_PUBLISHED, SCHEMA_CHANNEL_DRAFT |
foir settings get-release
Fetch one release: what it carries, where it has got to, and each record version’s outcome.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings get-resolution-stats
Fetch the resolution stats.
| Flag | Type | |
|---|---|---|
--record-id | string | required |
--window-days | number | required |
foir settings get-variant-catalog-entry
Fetch a variant catalog entry by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings list-audit-logs
List audit logs.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--platform | boolean | required |
foir settings list-context-dimension-values
List the values a context dimension can take.
| Flag | Type | |
|---|---|---|
--dimension-id | string | one of dimension |
--dimension-key | string | one of dimension |
--search | string | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir settings list-context-dimension-versions
List context dimension versions.
| Flag | Type | |
|---|---|---|
--context-dimension-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir settings list-context-dimensions
List context dimensions.
| Flag | Type | |
|---|---|---|
--search | string | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir settings list-design-token-versions
List the revisions of the design tokens the request is served, newest first.
| Flag | Type | |
|---|---|---|
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir settings list-editor-configs
List the editor configurations that place an app’s editor on a model’s fields.
| Flag | Type | |
|---|---|---|
--model-id | string | one of model |
--model-key | string | one of model |
foir settings list-locales
List locales.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir settings list-login-page-versions
List the saved versions of a sign-in page, newest first.
| Flag | Type | |
|---|---|---|
--relying-party-id | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir settings list-my-mentions
List the caller’s own mentions.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir settings list-notes
List notes.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--order-by | string |
foir settings list-notification-categories
List notification categories.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir settings list-recently-opened
List what the caller opened recently.
| Flag | Type | |
|---|---|---|
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir settings list-releases
List the project’s releases, scheduled ones included, newest first.
| Flag | Type | |
|---|---|---|
--limit | number | |
--state | string | one of RELEASE_STATE_UNSPECIFIED, RELEASE_STATE_SCHEDULED, RELEASE_STATE_RELEASED, RELEASE_STATE_CANCELLED, RELEASE_STATE_FAILED, RELEASE_STATE_RUNNING, RELEASE_STATE_PAUSED |
--record-id | string | |
--with-content | boolean | required |
foir settings list-variant-catalog
List variant catalogue entries.
| Flag | Type | |
|---|---|---|
--where | json | |
--after | string | |
--before | string | |
--first | number | |
--last | number |
foir settings pause-release
Hold a scheduled or running release where it is. What has gone out stays out.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings publish-release
Release pending drafts and record versions to production, now or at a time, or roll a release back. With validate_only it answers what the release would carry and changes nothing.
| Flag | Type | |
|---|---|---|
--items | json | repeatable |
--rollback-of | string | |
--at | json | |
--release-id | string | |
--name | string | |
--description | string | |
--validate-only | boolean | required |
foir settings remove-recently-opened
Take one entry out of the recently-opened list, or empty it.
| Flag | Type | |
|---|---|---|
--type | string | required |
--id | string | required |
--all | boolean | required |
foir settings restore-context-dimension-version
Restore a context dimension version.
| Flag | Type | |
|---|---|---|
--version-id | string | required |
--change-description | string |
foir settings restore-design-token-version
Roll the draft design tokens back to an earlier revision, as a new revision.
| Flag | Type | |
|---|---|---|
--version-id | string | required |
--change-description | string |
foir settings restore-login-page-version
Make a saved version of a sign-in page its draft again. A release publishes it.
| Flag | Type | |
|---|---|---|
--relying-party-id | string | required |
--version-id | string | required |
foir settings resume-release
Let a paused release go on: at its time if that is still to come, and now if it has passed.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings retry-release
Try again the record versions a release failed to put out or take out.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings search-notes
Search notes.
| Flag | Type | |
|---|---|---|
--query | string | required |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--subject-type | string | |
--subject-model-id | string | one of subject_model |
--subject-model-key | string | one of subject_model |
--mode | string |
foir settings track-recently-opened
Record that the caller opened something, for the recently-opened list.
| Flag | Type | |
|---|---|---|
--type | string | required |
--id | string | required |
--label | string | required |
--path | string | required |
foir settings unpublish-context-dimension
Withdraw a context dimension from the published surface now, as a release that can be rolled back. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings unpublish-design-tokens
Withdraw the project’s design token set from the published surface now, as a release that can be rolled back. It stays withdrawn until a release names it.
Takes no flags.
foir settings unpublish-locale
Withdraw a locale from the published surface now, as a release that can be rolled back. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings unpublish-login-page
Withdraw a sign-in page from what production is served now, as a release that can be rolled back. The sign-in shows the page above it until a release names it again.
| Flag | Type | |
|---|---|---|
--relying-party-id | string | required |
foir settings unpublish-notification-category
Withdraw a notification category from the published surface now, as a release that can be rolled back. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings unpublish-variant-catalog-entry
Withdraw a variant catalogue entry from the published surface now, as a release that can be rolled back. It stays withdrawn until a release names it.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir settings update-context-dimension
Update a context dimension.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--description | string | |
--source-model-id | string | one of source_model |
--source-model-key | string | one of source_model |
--default-record-id | string | one of default_record |
--default-record-key | string | one of default_record |
--evaluation-rules | json |
foir settings update-design-tokens
Replace the draft design tokens, answering with the content each removed typography token is still used in. With validate_only, check the document and answer that without saving.
| Flag | Type | |
|---|---|---|
--document | json | |
--validate-only | boolean | required |
foir settings update-locale
Update a locale.
| Flag | Type | |
|---|---|---|
--id | string | required |
--display-name | string | |
--native-name | string | |
--is-default | boolean | |
--is-active | boolean | |
--is-rtl | boolean | |
--fallback-locale | string |
foir settings update-login-page
Save a sign-in page’s draft, for the level the request stands in or for one app. A release publishes it.
| Flag | Type | |
|---|---|---|
--relying-party-id | string | required |
--page | json | one of body |
--config | json | one of body |
--snapshot-only | boolean | required |
foir settings update-mention
Update a mention: its status, when it is owed, or both.
| Flag | Type | |
|---|---|---|
--id | string | required |
--status | string | |
--completed-note | string | |
--dismiss-reason | string | |
--due-date | json | |
--clear-due-date | boolean | required |
foir settings update-nav-preferences
Update the nav preferences.
| Flag | Type | |
|---|---|---|
--preferences | json | |
--toggle-project-id | string | |
--toggle-nav-item | string | |
--toggle-section | string |
foir settings update-note
Update a note.
| Flag | Type | |
|---|---|---|
--id | string | required |
--content | json | |
--is-resolved | boolean | |
--resolution-note | string | |
--assignee-id | string | |
--due-date | json | |
--clear-due-date | boolean |
foir settings update-notification-category
Update a notification category.
| Flag | Type | |
|---|---|---|
--id | string | required |
--display-name | string | |
--description | string | |
--is-active | boolean | |
--email-policy | string | one of CHANNEL_POLICY_UNSPECIFIED, CHANNEL_POLICY_DEFAULT_ON, CHANNEL_POLICY_DEFAULT_OFF, CHANNEL_POLICY_REQUIRED |
--push-policy | string | one of CHANNEL_POLICY_UNSPECIFIED, CHANNEL_POLICY_DEFAULT_ON, CHANNEL_POLICY_DEFAULT_OFF, CHANNEL_POLICY_REQUIRED |
--in-app-policy | string | one of CHANNEL_POLICY_UNSPECIFIED, CHANNEL_POLICY_DEFAULT_ON, CHANNEL_POLICY_DEFAULT_OFF, CHANNEL_POLICY_REQUIRED |
--opt-in-confirmation | string | one of OPT_IN_CONFIRMATION_UNSPECIFIED, OPT_IN_CONFIRMATION_NONE, OPT_IN_CONFIRMATION_EMAIL |
foir settings update-release
Change a scheduled release: its name, its time, or what it carries. A time now carries it out now.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--description | string | |
--at | json | |
--items | json | repeatable |
--update-items | boolean | required |
foir settings update-variant-catalog-entry
Update a variant catalog entry.
| Flag | Type | |
|---|---|---|
--id | string | required |
--name | string | |
--description | string | |
--targeting-rules | json | |
--priority | number | |
--is-default | boolean | |
--is-active | boolean |
foir storage
foir storage cleanup-orphaned-files
Remove uploaded files no record references any more.
| Flag | Type | |
|---|---|---|
--orphan-threshold-days | number | required |
--validate-only | boolean | required |
--limit | number | required |
--trash-retention-days | number | required |
foir storage delete-file
Delete a file.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir storage get-file
Fetch a file by id.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir storage get-usage
Report how much storage the project is using.
Takes no flags.
foir storage list-files
List files.
| Flag | Type | |
|---|---|---|
--where | json | |
--include-deleted | boolean | required |
--after | string | |
--before | string | |
--first | number | |
--last | number | |
--only-deleted | boolean | required |
foir storage purge-file
Purge one file from the trash, or everything in it. The bytes go, and this cannot be undone.
| Flag | Type | |
|---|---|---|
--id | string | required |
--everything-in-trash | boolean | required |
foir storage retry-file-generation
Re-enqueue generation of a single derived asset for a video file.
| Flag | Type | |
|---|---|---|
--file-id | string | required |
--asset | string | required; one of FILE_ASSET_KIND_UNSPECIFIED, FILE_ASSET_KIND_THUMBNAIL, FILE_ASSET_KIND_PREVIEW, FILE_ASSET_KIND_HLS |
--idempotency-key | string | required |
foir storage undelete-file
Bring a deleted file back from the trash.
| Flag | Type | |
|---|---|---|
--id | string | required |
foir storage update-file
Update a file.
| Flag | Type | |
|---|---|---|
--id | string | required |
--filename | string | |
--folder | string | |
--tags | string | repeatable |
--status | string | one of FILE_STATUS_UNSPECIFIED, FILE_STATUS_PENDING, FILE_STATUS_PROCESSING, FILE_STATUS_READY, FILE_STATUS_FAILED, FILE_STATUS_SKIPPED, FILE_STATUS_NOT_ENTITLED |
--metadata | json | |
--alt-text | string | |
--caption | string | |
--description | string |
foir storage upload-file
Upload a file. The answer says where to send its bytes, and a door’s client sends them and waits for the file.
| Flag | Type | |
|---|---|---|
--filename | string | required |
--mime-type | string | required |
--size | number | required |
--folder | string | |
--metadata | json | |
--visibility | string | required; one of VISIBILITY_UNSPECIFIED, VISIBILITY_PRIVATE, VISIBILITY_PUBLIC |