Judgment Labs Logo

judgment prompts

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

The Judgment CLI is deprecated and no longer under active development. This reference is retained for existing users. See the CLI deprecation notice for supported alternatives.

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] [[[ORG_ID] PROJECT_ID] PROMPT_NAME PROMPT...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] PROMPT_NAME PROMPTno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
--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] [[[ORG_ID] PROJECT_ID] PROMPT_NAME...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] PROMPT_NAMEno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
--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] [[[ORG_ID] PROJECT_ID]...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID]no

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
-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] [[[ORG_ID] PROJECT_ID] PROMPT_NAME COMMIT_ID...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] PROMPT_NAME COMMIT_IDno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
--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] [[[ORG_ID] PROJECT_ID] PROMPT_NAME...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] PROMPT_NAMEno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
--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] [[[ORG_ID] PROJECT_ID] PROMPT_NAME...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] PROMPT_NAMEno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
-o, --outputyaml, jsonnoOutput format.