Skip to content

qc ssh

Open an interactive SSH session into a container in the active environment. Built on top of AWS ECS Exec. Use it to debug a running container, run management commands, or inspect filesystem state.

For a full walkthrough including AWS CLI prerequisites and SSH-over-key patterns, see the SSH access guide.

Terminal window
qc ssh [options]

By default qc ssh opens an interactive Bash shell in the active environment. If the environment runs a single container, it connects directly; if it runs several, you’re prompted to choose one (or pass --container to skip the prompt). Pass --command to run a one-shot command instead of opening an interactive shell.

Flag Description Default
--container <name> Specific container to connect to. Auto-connects if only one; prompts if several.
--org <org> Organization machine name. Active organization.
--app <app> Application machine name. Active application.
--env <env> Environment name. Active environment.
--command <cmd> Command to run inside the container. /bin/bash
--interactive Force interactive mode when used with --command.
--platform <platform> Override the active platform.
Terminal window
qc ssh
Terminal window
qc ssh --container worker
Terminal window
qc ssh --command "drush cache:rebuild"

Force interactive mode with a custom shell

Section titled “Force interactive mode with a custom shell”
Terminal window
qc ssh --command /bin/zsh --interactive
Terminal window
qc ssh --env staging --container web