kindgi flows
kindgi flows
Section titled “kindgi flows”Synopsis
kindgi flows <command>Manage flow registrations and which version runs where.
Commands
| Command | Description |
|---|---|
kindgi flows list |
List registered flows (the latest version of each). |
kindgi flows get |
Fetch a registered flow: its latest version, or the version given. |
kindgi flows publish |
Register a flow definition at its version. |
kindgi flows unregister |
Unregister a specific flow version: new runs of it are refused; kindgi flows reinstate brings it back. |
kindgi flows versions |
List the registered versions of a flow. |
kindgi flows reinstate |
Bring back an unregistered flow version. |
kindgi flows pinned |
Show the version of this flow that a run naming none would use in a project (or an org, or with neither the workspace), and why: a pinned version (with its scope) or the latest. |
kindgi flows pinned-versions |
List every scope with a version of this flow pinned. |
kindgi flows pin |
Pin a version of this flow for a scope, or move the scope's pin to it: its runs that name no version use it, from the next run. |
kindgi flows unpin |
Remove a scope's own pin of this flow: its runs use the next scope up's pin, or the latest when nothing is pinned. |
kindgi flows pin-history |
The history of what was pinned or unpinned. |
See also
kindgi flows list
Section titled “kindgi flows list”Synopsis
kindgi flows list [--name=<prefix>] [--include-retired] [--limit=<n>] [--cursor=<c>]List registered flows (the latest version of each).
Options
| Option | Default | Description |
|---|---|---|
--cursor <value> |
none | Resume after this cursor, from the previous page's nextCursor. |
--include-retired |
off | Include retired flows (every version unregistered), each as its highest version with unregisteredAt. |
--limit <value> |
25 (at most 100) |
The most to return (default 25, at most 100). |
--name <value> |
none | Only flows whose id starts with this. |
Every command also takes the global flags.
Examples
List registered flows, retired ones too.
kindgi flows list --include-retiredSee also
kindgi flows get
Section titled “kindgi flows get”Synopsis
kindgi flows get <flow-id> [<version>]Fetch a registered flow: its latest version, or the version given.
Options
Every command also takes the global flags.
Examples
Fetch a flow's latest version.
kindgi flows get acme.nightly-digestFetch one version of a flow.
kindgi flows get acme.nightly-digest 0.1.0See also
kindgi flows publish
Section titled “kindgi flows publish”Synopsis
kindgi flows publish --spec=<json-or-@file> [--project=<project-id>]Register a flow definition at its version. The server checks it: no cycles, every node and edge resolves.
Options
| Option | Default | Description |
|---|---|---|
--project <value> |
the workspace's default project | The project to register the flow in, by id (default: the workspace's default project). |
--spec <value> |
required | The flow definition as JSON, or @<file> to read it from a file. Required. |
Every command also takes the global flags.
Examples
Register a flow definition from a file.
kindgi flows publish --spec=@flows/acme.nightly-digest.jsonSee also
kindgi flows unregister
Section titled “kindgi flows unregister”Synopsis
kindgi flows unregister <flow-id> <version>Unregister a specific flow version: new runs of it are refused; kindgi flows reinstate brings it back.
Options
Every command also takes the global flags.
Examples
Unregister a flow version: new runs of it are refused.
kindgi flows unregister acme.nightly-digest 0.1.0See also
kindgi flows versions
Section titled “kindgi flows versions”Synopsis
kindgi flows versions <flow-id> [--include-unregistered] [--limit=<n>] [--cursor=<c>]List the registered versions of a flow.
Options
| Option | Default | Description |
|---|---|---|
--cursor <value> |
none | Resume after this cursor, from the previous page's nextCursor. |
--include-unregistered |
off | Include unregistered versions (each with unregisteredAt), a retired flow's too. |
--limit <value> |
25 (at most 100) |
The most to return (default 25, at most 100). |
Every command also takes the global flags.
Examples
List a flow's versions, unregistered ones too.
kindgi flows versions acme.nightly-digest --include-unregisteredSee also
kindgi flows reinstate
Section titled “kindgi flows reinstate”Synopsis
kindgi flows reinstate <flow-id> <version>Bring back an unregistered flow version.
Options
Every command also takes the global flags.
Examples
Bring back an unregistered flow version.
kindgi flows reinstate acme.nightly-digest 0.1.0See also
kindgi flows pinned
Section titled “kindgi flows pinned”Synopsis
kindgi flows pinned <flow-id> [--project=<project-id> | --org=<org-id>]Show the version of this flow that a run naming none would use in a project (or an org, or with neither the workspace), and why: a pinned version (with its scope) or the latest.
Options
| Option | Default | Description |
|---|---|---|
--org <value> |
none | An org, by id: its pin, else the workspace's. |
--project <value> |
none | A project, by id: its pin, else its org's, else the workspace's. |
Every command also takes the global flags.
Examples
Show the version of the flow that a run in a project would use, and why.
kindgi flows pinned acme.nightly-digest --project=<project-id>See also
kindgi flows pinned-versions
Section titled “kindgi flows pinned-versions”Synopsis
kindgi flows pinned-versions <flow-id>List every scope with a version of this flow pinned.
Options
Every command also takes the global flags.
Examples
List every scope with a pinned version of the flow.
kindgi flows pinned-versions acme.nightly-digestSee also
kindgi flows pin
Section titled “kindgi flows pin”Synopsis
kindgi flows pin <flow-id> <version> (--tenant | --org=<org-id> | --project=<project-id>) [--reason=<text>]Pin a version of this flow for a scope, or move the scope's pin to it: its runs that name no version use it, from the next run. Pinning the version already pinned there changes nothing. A workspace- or org-wide pin of a flow in an environment order is refused (409 pin-scope-spans-environments): pin it per project.
Options
| Option | Default | Description |
|---|---|---|
--idempotency-key <value> |
none | A retry with the same key returns the first call's result. |
--org <value> |
required: one of --tenant, --org, --project |
An org, by id. |
--project <value> |
required: one of --tenant, --org, --project |
A project, by id. |
--reason <value> |
none | Why, kept on the record. |
--tenant |
required: one of --tenant, --org, --project |
The whole workspace (scope tenant). |
Every command also takes the global flags.
Examples
Pin a version of the flow in a project, before publishing a new one to try.
kindgi flows pin acme.nightly-digest 0.1.0 --project=<project-id> --reason='Keep 0.1.0 while 0.2.0 is tried'See also
kindgi flows unpin
Section titled “kindgi flows unpin”Synopsis
kindgi flows unpin <flow-id> (--tenant | --org=<org-id> | --project=<project-id>) [--reason=<text>]Remove a scope's own pin of this flow: its runs use the next scope up's pin, or the latest when nothing is pinned.
Options
| Option | Default | Description |
|---|---|---|
--idempotency-key <value> |
none | A retry with the same key returns the first call's result. |
--org <value> |
required: one of --tenant, --org, --project |
An org, by id. |
--project <value> |
required: one of --tenant, --org, --project |
A project, by id. |
--reason <value> |
none | Why, kept on the record. |
--tenant |
required: one of --tenant, --org, --project |
The whole workspace (scope tenant). |
Every command also takes the global flags.
Examples
Remove a project's own pin of the flow.
kindgi flows unpin acme.nightly-digest --project=<project-id>See also
kindgi flows pin-history
Section titled “kindgi flows pin-history”Synopsis
kindgi flows pin-history <command>The history of what was pinned or unpinned.
Commands
| Command | Description |
|---|---|
kindgi flows pin-history list |
List this flow's pin history, newest first: every pin and unpin. |
See also
kindgi flows pin-history list
Section titled “kindgi flows pin-history list”Synopsis
kindgi flows pin-history list <flow-id> [--limit=<n>] [--cursor=<c>]List this flow's pin history, newest first: every pin and unpin.
Options
| Option | Default | Description |
|---|---|---|
--cursor <value> |
none | Resume after this cursor, from the previous page's nextCursor. |
--limit <value> |
25 (at most 100) |
The most to return (default 25, at most 100). |
Every command also takes the global flags.
Examples
List the flow's pins and unpins, newest first.
kindgi flows pin-history list acme.nightly-digest --limit=10See also