ax prompts commands let you create and manage prompt templates and their versions on the Arize platform.
ax prompts list
List prompts in a space.
| Option | Description |
|---|---|
--space-id | Space ID to filter prompts |
--limit | Maximum number of results to return (default: 15) |
--cursor | Pagination cursor for the next page |
ax prompts get
Get a prompt by ID. Optionally resolve a specific version via --version-id or --label. If neither is supplied, the latest version is returned.
| Option | Description |
|---|---|
--version-id | Specific version ID to retrieve |
--label | Label name to resolve to a version (e.g. production) |
ax prompts create
Create a prompt with an initial version. Pass messages as a path to a JSON file or inline JSON.
| Option | Description |
|---|---|
--name | Prompt name (must be unique within the space) |
--space-id | Space ID to create the prompt in |
--provider | LLM provider: openAI, azureOpenAI, awsBedrock, vertexAI, custom |
--input-variable-format | Variable interpolation format: f_string, mustache, none |
--messages | Path to a JSON file, or inline JSON array of message objects |
--commit-message | Commit message for the initial version (default: "Initial version") |
--description | Optional prompt description |
--model | Default model name for this version |
role and optionally content, tool_call_id, or tool_calls:
ax prompts update
Update a prompt’s description.
ax prompts delete
Delete a prompt and all its versions. This operation is irreversible.
| Option | Description |
|---|---|
--force | Skip the confirmation prompt |
ax prompts list-versions
List versions for a prompt.
| Option | Description |
|---|---|
--limit | Maximum number of versions to return (default: 15) |
--cursor | Pagination cursor for the next page |
ax prompts create-version
Create a new version for an existing prompt. Pass messages as a path to a JSON file or inline JSON.
| Option | Description |
|---|---|
--provider | LLM provider: openAI, azureOpenAI, awsBedrock, vertexAI, custom |
--input-variable-format | Variable interpolation format: f_string, mustache, none |
--messages | Path to a JSON file, or inline JSON array of message objects |
--commit-message | Commit message describing this version (default: "New version") |
--model | Default model name for this version |