Pipelines

Use the khotan CLI to operate Khotan pipelines. Add --json for machine-readable output; results go to stdout, diagnostics to stderr.

Commands

khotan pipelines create

Usage: khotan pipelines create --name <string> [--region-preference <string>] [--env KEY=VALUE]... [--database <json>] [--redis <json>] [--idempotency-key <string>]

Provision a new pipeline.

Arguments & options:

khotan pipelines delete

Usage: khotan pipelines delete <pipelineId>

Permanently delete a pipeline and tear down its provider resources.

Arguments & options:

Safety: destructive — prompts for confirmation in a terminal and refuses in non-interactive sessions unless you pass --yes.

khotan pipelines email-subscriptions create

Usage: khotan pipelines email-subscriptions create <pipelineId> --email-integration-id <string> --delivery-url <string>

Watch a connected Gmail mailbox for this pipeline; Google pushes notifications directly to the delivery URL.

Arguments & options:

khotan pipelines email-subscriptions delete

Usage: khotan pipelines email-subscriptions delete <pipelineId> <subscriptionId>

Remove an email subscription (deletes the Pub/Sub push subscription).

Arguments & options:

Safety: destructive — prompts for confirmation in a terminal and refuses in non-interactive sessions unless you pass --yes.

khotan pipelines email-subscriptions get

Usage: khotan pipelines email-subscriptions get <pipelineId> <subscriptionId>

Get one email subscription by id.

Arguments & options:

khotan pipelines email-subscriptions list

Usage: khotan pipelines email-subscriptions list <pipelineId>

List the connected mailboxes this pipeline watches.

Arguments & options:

khotan pipelines env bulk-set

Usage: khotan pipelines env bulk-set <pipelineId> [--var KEY=VALUE]... [--target <a,b>]

Create or update many env vars in one request. Writes every environment unless you pass target.

Arguments & options:

khotan pipelines env list

Usage: khotan pipelines env list <pipelineId>

List env var metadata (never values) for a pipeline.

Arguments & options:

khotan pipelines env reveal

Usage: khotan pipelines env reveal <pipelineId> <key> [--target <string>]

Reveal a single decrypted env var value for one environment. Secret-bearing; explicit-only.

Arguments & options:

Safety: secret — returns credential-bearing values; never shown in list/table output.

khotan pipelines env set

Usage: khotan pipelines env set <pipelineId> <key> --value <string> [--target <a,b>]

Create or update one env var. Writes every environment unless you pass target.

Arguments & options:

khotan pipelines env unset

Usage: khotan pipelines env unset <pipelineId> <key> [--target <string>]

Delete one env var. Removes it from every environment unless you pass target.

Arguments & options:

Safety: destructive — prompts for confirmation in a terminal and refuses in non-interactive sessions unless you pass --yes.

khotan pipelines get

Usage: khotan pipelines get <pipelineId>

Get one pipeline by id, including its current deployment.

Arguments & options:

khotan pipelines list

Usage: khotan pipelines list

List the organization's pipelines.

khotan pipelines oauth disconnect

Usage: khotan pipelines oauth disconnect <pipelineId>

Revoke the OAuth client and remove its injected environment variables.

Arguments & options:

Safety: destructive — prompts for confirmation in a terminal and refuses in non-interactive sessions unless you pass --yes.

khotan pipelines oauth export

Usage: khotan pipelines oauth export <pipelineId>

Export secret-bearing .env.local content for local development.

Arguments & options:

Safety: secret — returns credential-bearing values; never shown in list/table output.

khotan pipelines oauth rotate

Usage: khotan pipelines oauth rotate <pipelineId> [--redeploy]

Invalidate the current secret, inject a new one, and optionally redeploy.

Arguments & options:

Safety: secret — returns credential-bearing values; never shown in list/table output.

khotan pipelines oauth set-redirects

Usage: khotan pipelines oauth set-redirects <pipelineId> --redirect-uris <a,b>

Replace additional redirect URIs while preserving the managed production callback.

Arguments & options:

khotan pipelines oauth setup

Usage: khotan pipelines oauth setup <pipelineId>

Create OAuth credentials once and return the plaintext secret.

Arguments & options:

Safety: secret — returns credential-bearing values; never shown in list/table output.

khotan pipelines oauth status

Usage: khotan pipelines oauth status <pipelineId>

Show non-secret OAuth client state and redirect URIs.

Arguments & options:

khotan pipelines oauth sync

Usage: khotan pipelines oauth sync <pipelineId>

Repair OAuth redirects and environment values without rotating the secret.

Arguments & options:

khotan pipelines redeploy

Usage: khotan pipelines redeploy <pipelineId>

Trigger a new deployment of a pipeline.

Arguments & options:

khotan pipelines setup

Usage: khotan pipelines setup <pipelineId> --name <string> --website <string> [--logo <string>] [--idempotency-key <string>]

Start a cloud setup run for a pipeline: a cloud agent provisions its database, Redis, and env, brands it from the website, and Khotan merges the setup PR when its checks pass. The pipeline must be ready: after creating one, wait until pipelines get shows status ready, because setup refuses a pipeline that is still being created. Returns the run in status running; follow it with pipelines setup status.

Arguments & options:

khotan pipelines setup status

Usage: khotan pipelines setup status <pipelineId>

Show the newest cloud setup run for a pipeline: its status, the reason when it is not ready, the setup PR, and the live URL.

Arguments & options:

khotan pipelines source

Usage: khotan pipelines source <pipelineId>

Download the pipeline's source files (its subdirectory in the org mono-root repo) as a JSON listing with paths rooted at the pipeline. Text files come back utf-8, binary files base64.

Arguments & options:

khotan pipelines tags set

Usage: khotan pipelines tags set <pipelineId> --tags <a,b>

Replace the tags on a pipeline and return the stored list.

Arguments & options:

Examples: