Skip to content

kindgi guardrails

View as Markdown

Synopsis

Terminal window
kindgi guardrails <command>
Signature

Manage guardrail registrations.

Commands

Command Description
kindgi guardrails list List registered guardrails.
kindgi guardrails get Fetch a guardrail by id.
kindgi guardrails register Register a guardrail.
kindgi guardrails unregister Unregister a guardrail.

See also

Synopsis

Terminal window
kindgi guardrails list [--name=<prefix>] [--limit=<n>] [--cursor=<c>]
Signature

List registered guardrails.

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 guardrails to return (default 25, at most 100).
--name <value> none Only the guardrails whose id starts with this prefix.

Every command also takes the global flags.

Examples

List the guardrails whose id starts with a prefix.

Terminal window
kindgi guardrails list --name=acme.

See also

Synopsis

Terminal window
kindgi guardrails get <guardrail-id>
Signature

Fetch a guardrail by id.

Options

Every command also takes the global flags.

Examples

From Configure a guardrail:

Terminal window
pnpm exec kindgi guardrails get my-pack.answer-length

See also

Synopsis

Terminal window
kindgi guardrails register --spec=<json-or-@file> [--project=<project-id>]
Signature

Register a guardrail.

Options

Option Default Description
--project <value> the tenant's Default project The project to register the guardrail in, by id (default: the tenant's Default project).
--spec <value> required The guardrail definition as JSON, or @<file> to read it from a file. Required.

Every command also takes the global flags.

Examples

Register a guardrail from a file in a given project.

Terminal window
kindgi guardrails register --spec=@guardrails/acme.no-refunds.json --project=<project-id>

See also

Synopsis

Terminal window
kindgi guardrails unregister <guardrail-id>
Signature

Unregister a guardrail.

Options

Every command also takes the global flags.

Examples

Unregister a guardrail.

Terminal window
kindgi guardrails unregister acme.no-refunds

See also