Judgment Labs Logo

Prompts

Fetch and commit versioned prompts in a project, including tagging commits (e.g. `production`).

Fetch and commit versioned prompts in a project, including tagging commits (e.g. production).

Commands

CommandDescription
prompts commitCommit a new prompt version.
prompts getFetch a prompt commit.
prompts listList prompts in a project.
prompts tagTag a prompt commit.
prompts untagRemove tags from a prompt.
prompts versionsList every commit of a prompt.

prompts commit

Commit a new prompt version.

Append a new commit to a prompt. If the prompt does not yet exist it is created. Optionally apply tags to the new commit in the same call.

judgment prompts commit [OPTIONS] <ORGANIZATION_ID> <PROJECT_ID> <PROMPT_NAME> <PROMPT>

Arguments

NameRequired
ORGANIZATION_IDyes
PROJECT_IDyes
PROMPT_NAMEyes
PROMPTyes

Options

FlagTypeRequiredDescription
--tagstextnoOptional tags (e.g. production, staging) to apply to the new commit. Tags move from any previous commit to this one.
-o, --outputyaml, jsonnoOutput format.

prompts get

Fetch a prompt commit.

Fetch a prompt by name. By default returns the latest commit; pass commit_id to pin a specific commit, or tag to resolve a named tag (e.g. production).

judgment prompts get [OPTIONS] <ORGANIZATION_ID> <PROJECT_ID> <PROMPT_NAME>

Arguments

NameRequired
ORGANIZATION_IDyes
PROJECT_IDyes
PROMPT_NAMEyes

Options

FlagTypeRequiredDescription
--commit-idtextnoSpecific commit SHA to fetch. Mutually exclusive with tag. When neither is provided the latest commit is returned.
--tagtextnoTag to fetch (e.g. production). Mutually exclusive with commit_id.
-o, --outputyaml, jsonnoOutput format.

prompts list

List prompts in a project.

List every prompt in a project with its latest commit timestamp and total version count.

judgment prompts list [OPTIONS] <ORGANIZATION_ID> <PROJECT_ID>

Arguments

NameRequired
ORGANIZATION_IDyes
PROJECT_IDyes

Options

FlagTypeRequiredDescription
-o, --outputtable, yaml, jsonnoOutput format.

prompts tag

Tag a prompt commit.

Attach one or more tags to a specific commit. Re-tagging moves the tag from any previous commit to the new one.

judgment prompts tag [OPTIONS] <ORGANIZATION_ID> <PROJECT_ID> <PROMPT_NAME> <COMMIT_ID>

Arguments

NameRequired
ORGANIZATION_IDyes
PROJECT_IDyes
PROMPT_NAMEyes
COMMIT_IDyes

Options

FlagTypeRequiredDescription
--tagstextyesTag names to add. Each tag is unique per prompt — re-tagging moves the tag to the new commit.
-o, --outputyaml, jsonnoOutput format.

prompts untag

Remove tags from a prompt.

Remove one or more tags from a prompt. Returns the commit IDs that previously held the removed tags.

judgment prompts untag [OPTIONS] <ORGANIZATION_ID> <PROJECT_ID> <PROMPT_NAME>

Arguments

NameRequired
ORGANIZATION_IDyes
PROJECT_IDyes
PROMPT_NAMEyes

Options

FlagTypeRequiredDescription
--tagstextyesTag names to remove from this prompt.
-o, --outputyaml, jsonnoOutput format.

prompts versions

List every commit of a prompt.

List every commit of a prompt in chronological order (newest first), including tags and authoring metadata.

judgment prompts versions [OPTIONS] <ORGANIZATION_ID> <PROJECT_ID> <PROMPT_NAME>

Arguments

NameRequired
ORGANIZATION_IDyes
PROJECT_IDyes
PROMPT_NAMEyes

Options

FlagTypeRequiredDescription
-o, --outputyaml, jsonnoOutput format.