SDKs & ToolsCLI

spiral workloads

Manage workload identities and how they sign in

Usage: spiral workloads [OPTIONS] <COMMAND>

Options

OptionRequiredDefaultDescription
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

Subcommands

CommandSummary
spiral workloads lsList the workloads in a project
spiral workloads createCreate a workload in a project
spiral workloads showShow a workload with its keys and trust policies
spiral workloads dropDrop a workload and revoke all of its credentials
spiral workloads keysManage the key pairs a workload signs in with
spiral workloads trustManage the platform identities a workload signs in with
spiral workloads revoke-secretRevoke a workload client secret (spw_...) once the workload uses a key pair or a platform identity

spiral workloads ls

Usage: spiral workloads ls [OPTIONS] [PROJECT]

Arguments

ArgumentRequiredDefaultDescription
PROJECTnoProject ID. Prompted interactively when omitted on a TTY

Options

OptionRequiredDefaultDescription
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads create

Usage: spiral workloads create [OPTIONS] [PROJECT]

Arguments

ArgumentRequiredDefaultDescription
PROJECTnoProject ID. Prompted interactively when omitted on a TTY

Options

OptionRequiredDefaultDescription
--name <NAME>noA name that describes the workload
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads show

Usage: spiral workloads show [OPTIONS] [WORKLOAD]

Arguments

ArgumentRequiredDefaultDescription
WORKLOADnoWorkload ID. Prompted interactively when omitted on a TTY

Options

OptionRequiredDefaultDescription
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads drop

Usage: spiral workloads drop [OPTIONS] [WORKLOAD]

Arguments

ArgumentRequiredDefaultDescription
WORKLOADnoWorkload ID. Prompted interactively when omitted on a TTY

Options

OptionRequiredDefaultDescription
-y, --yesnoSkip the confirmation prompt
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads keys

Usage: spiral workloads keys [OPTIONS] <COMMAND>

Options

OptionRequiredDefaultDescription
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads keys ls

Usage: spiral workloads keys ls [OPTIONS] [WORKLOAD]

Arguments

ArgumentRequiredDefaultDescription
WORKLOADnoWorkload ID. Prompted interactively when omitted on a TTY

Options

OptionRequiredDefaultDescription
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads keys add

Add a key pair to a workload. Without --key, generate a P-256 key pair on this machine, write its private key as a JWK to --output, and register only the public key. With --key, register the public half of an existing RSA, EC or Ed25519 key in JWK or PEM form; when the file holds a private key, --output writes it as the JWK that SPIRAL_PRIVATE_KEY takes.

Usage: spiral workloads keys add [OPTIONS] [WORKLOAD]

Arguments

ArgumentRequiredDefaultDescription
WORKLOADnoWorkload ID. Prompted interactively when omitted on a TTY

Options

OptionRequiredDefaultDescription
--key <KEY>noA public or private key to register, as a JWK or in PEM, instead of a new key pair
--kid <KID>noThe key ID. Defaults to the key's own kid, or a new UUID
-o, --output <OUTPUT>noWhere to write the private key as a JWK, or - for standard output. A generated key defaults to <workload>.jwk in the current directory
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads keys rm

Usage: spiral workloads keys rm [OPTIONS] <WORKLOAD> <KID>

Arguments

ArgumentRequiredDefaultDescription
WORKLOADyesWorkload ID
KIDyesThe key's ID

Options

OptionRequiredDefaultDescription
-y, --yesnoSkip the confirmation prompt
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads trust

Usage: spiral workloads trust [OPTIONS] <COMMAND>

Options

OptionRequiredDefaultDescription
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads trust ls

Usage: spiral workloads trust ls [OPTIONS] [WORKLOAD]

Arguments

ArgumentRequiredDefaultDescription
WORKLOADnoWorkload ID. Prompted interactively when omitted on a TTY

Options

OptionRequiredDefaultDescription
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads trust add

Usage: spiral workloads trust add [OPTIONS] [WORKLOAD]

Arguments

ArgumentRequiredDefaultDescription
WORKLOADnoWorkload ID. Prompted interactively when omitted on a TTY

Options

OptionRequiredDefaultDescription
--github <OWNER/REPO>noGitHub Actions in a repository, OWNER/REPO
--gcp-service-account <UNIQUE_ID>noA GCP service account, by its numeric unique ID
--kubernetes-service-account <NAMESPACE/NAME>noA Kubernetes service account, NAMESPACE/NAME. Needs --issuer, the cluster's service-account issuer
--aws-role <ROLE_ARN>noAn AWS IAM role, by its ARN. Needs --issuer, the account's outbound identity federation issuer
--modal-workspace <WORKSPACE_ID>noA Modal workspace, by its ID
--issuer <ISSUER>noThe OIDC issuer of the tokens
--condition <CLAIM=VALUE>noA claim the tokens must carry, CLAIM=VALUE. Repeat to require several
--audience <AUDIENCE>noThe audience the tokens name, for an issuer whose tokens cannot name SpiralDB's token endpoint
--name <NAME>noA name that describes the policy
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads trust rm

Usage: spiral workloads trust rm [OPTIONS] <POLICY_ID>

Arguments

ArgumentRequiredDefaultDescription
POLICY_IDyesTrust policy ID

Options

OptionRequiredDefaultDescription
-y, --yesnoSkip the confirmation prompt
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error

spiral workloads revoke-secret

Usage: spiral workloads revoke-secret [OPTIONS] <CLIENT_ID>

Arguments

ArgumentRequiredDefaultDescription
CLIENT_IDyesThe client ID of the secret, which SPIRAL_CLIENT_ID holds

Options

OptionRequiredDefaultDescription
-y, --yesnoSkip the confirmation prompt
--jsonnoEmit output as JSON instead of formatted tables
--json-logsnoWrite structured JSON logs to standard error
Found a problem? Edit this page or report an issue.

On this page