CLI reference
kusaw conversation
List, show, and answer step conversations
kusaw conversation
List, show, and answer step conversations
Usage
kusaw conversation [flags]Flags
| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for conversation |
Subcommands
kusaw conversation attach
Follow a conversation and answer its questions in this terminal
kusaw conversation attach <id> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for attach |
Example:
kusaw conversation attach 01JD5Q --factory demokusaw conversation cancel
Cancel a conversation
kusaw conversation cancel <id> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for cancel |
--yes | bool | false | Cancel without a prompt |
Example:
kusaw conversation cancel 01JD5Q --yeskusaw conversation list
List open conversations; --all includes finished ones
kusaw conversation list [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--all | bool | false | Include finished conversations | |
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for list |
--json | bool | false | Print JSON |
Example:
kusaw conversation list --factory demo --allkusaw conversation reply
Answer the latest question of a conversation
kusaw conversation reply <id> [text] [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--choice | string | Pick one of the question's choices by id | ||
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--file | string | Read the answer from a file; - reads stdin | ||
--help | -h | bool | false | help for reply |
Example:
kusaw conversation reply 01JD5Q "Use Postgres" --factory demokusaw conversation retry
Send an interrupted conversation's last answer again
kusaw conversation retry <id> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for retry |
Example:
kusaw conversation retry 01JD5Q --factory demokusaw conversation show
Show one conversation's questions and answers
kusaw conversation show <id> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for show |
--json | bool | false | Print JSON |
Example:
kusaw conversation show 01JD5Q --factory demoExit codes
| Code | Name | Description |
|---|---|---|
| 0 | ok | Success. |
| 1 | error | Runtime error. |
| 2 | usage | Usage or validation error. |
| 3 | rejected | Control request rejected; the error string is printed verbatim. |
| 4 | not picked up | Control request not picked up within the wait time while serve runs. |
Example
kusaw conversation list --factory demo