Overview
Connect to an application container and execute commands in running service instances, or open an interactive shell session.
Usage
qovery shell [flags]
qovery shell <qovery_console_service_url>
Commands
Interactive Shell (interactive mode)
When run without flags, qovery shell prompts you to select your organization, project, environment, and service interactively:
Shell with explicit flags
qovery shell \
--organization "my-org" \
--project "my-project" \
--environment "production" \
--service "my-api"
Shell into specific pod or container
qovery shell \
--organization "my-org" \
--project "my-project" \
--environment "production" \
--service "my-api" \
--pod "pod-name" \
--container "container-name"
Execute Command
Run a specific command instead of opening an interactive shell:
qovery shell \
--organization "my-org" \
--project "my-project" \
--environment "production" \
--service "my-api" \
--command "ls,-la"
The --command flag is a comma-separated string slice and can be repeated to pass multiple arguments.
Shell via Console URL
Pass the Qovery Console URL directly:
qovery shell "https://console.qovery.com/organization/<org-id>/project/<project-id>/environment/<env-id>/application/<app-id>"
Options
| Flag | Shorthand | Description |
|---|
--organization | | Organization Name |
--project | | Project Name |
--environment | | Environment Name |
--service | | Service Name |
--pod | -p | Pod name to exec into |
--container | | Container name inside the pod |
--command | -c | Command to launch inside the pod (string slice, default: sh; can be repeated) |
--help | | Show help |
Examples
Debug Application
# Open interactive shell
qovery shell
# With explicit context flags
qovery shell \
--organization "my-org" \
--project "my-project" \
--environment "production" \
--service "my-api"
Run Database Migrations
qovery shell \
--organization "my-org" \
--project "my-project" \
--environment "production" \
--service "my-api" \
--command "npm,run,migrate"
Check Application Files
# List application files
qovery shell \
--organization "my-org" \
--project "my-project" \
--environment "production" \
--service "my-api" \
--command "ls,-lah,/app"
Debug Specific Container
qovery shell \
--organization "my-org" \
--project "my-project" \
--environment "production" \
--service "my-api" \
--pod "my-api-7d4f9c-xvz" \
--container "nginx-proxy"
Tips
Use interactive shell (run qovery shell without flags) for exploratory debugging when you don’t know the exact service name.
You can pass the Qovery Console URL as an argument to qovery shell to quickly connect to a service.
Be careful when executing commands in production environments. Changes are not persistent across pod restarts.