CLI Chats

Last updated

Start and continue chats with Ploy's Agent from the terminal.

Use ploy chat to give Ploy's Agent work from a script, a coding agent, or CI, and read its answers.

Start and continue a chat

Start and continue a chat
ploy chat start "Add a pricing page with three tiers" --site <site-id> --wait
ploy chat send <chat-id> "Make the middle tier stand out" --wait
OptionWhat it does
--site <site-id>Attach the chat to a site (start only).
--title <title>Name the chat (start only). Defaults to the opening message.
--agent ploy|liteChoose Ploy Agent or Ploy Lite (start only).
--file-id <ids...>Attach files uploaded with ploy chat upload.
--waitWait for the agent's response and print it.
--timeout <seconds>Maximum wait, 1 to 3600 seconds, default 300. A timeout exits 5 and the chat keeps running.
--jsonPrint structured JSON.

Pass - as the message to read it from standard input. ploy chat send --steer <turn-id> tries to redirect the turn that is running.

Read and wait

  • ploy chat list lists your chats.
  • ploy chat read <chat-id> prints the conversation.
  • ploy chat wait <chat-id> reconnects and prints output until the pending work settles. A timeout exits 5; the chat keeps running.
  • ploy chat get <chat-id> shows the chat and its dashboard link.

Answer questions and approvals

  • ploy chat questions <chat-id> lists questions waiting for you.
  • ploy chat answer <chat-id> [answer] answers one. Use --choice <numbers> for numbered options, --decision for approvals, or --boolean yes|no for yes/no questions.

Manage chats and files

  • ploy chat stop <chat-id> stops the agent's current work. Background jobs keep running, and the agent can continue when one finishes.
  • ploy chat rename <chat-id>, ploy chat delete <chat-id> (stop active work first), and ploy chat mark-read <chat-id>.
  • ploy chat upload <path> uploads a private file of up to 10 MB and prints a File ID to pass with --file-id.