--run CMD wraps the command in the shell: /bin/sh -c CMD, keeping TTY
mode so interactive commands like 'rails c' or 'bash' work correctly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When omitted, tries: 1) same name as stack, 2) 'app'.
So 'portainer-cli console librarian' resolves to librarian-librarian-1,
and 'portainer-cli console myapp' falls back to myapp-app-1.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Shows WS URL, auth headers (truncated), full handshake request/response.
Also improves the handshake failure error to include the raw server response.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
portainer-cli console <stack> <container> looks up the stack by name to
find its endpoint ID automatically, so the user never needs to specify it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Ruby CLI tool for interacting with the Portainer API. Supports listing
endpoints/stacks/containers/volumes/networks, creating stacks and containers,
and opening an interactive exec session in a container via WebSocket.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>