Overview
Connect to an application container and execute commands in running service instances, or open an interactive shell session. With--ephemeral, open the shell in a temporary pod or container instead.
Usage
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
Shell into specific pod or container
Execute Command
Run a specific command instead of opening an interactive shell:--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:Ephemeral Shell
--ephemeral opens the shell in a temporary pod or in a temporary container, instead of the application container. It requires Qovery CLI v1.162.1 or later. Choose where the shell runs with --mode:
Clone mode
sleep infinity instead of the service entrypoint, so your application does not start in it and the pod receives no traffic.
The pod gets the same CPU and memory as the service. Use --cpu and --memory to give it more, for example for a heavy script or a data migration. Each flag sets both the request and the limit:
Clone mode works for applications and containers without persistent storage. It fails with
No deployment found for service on services that use persistent storage.Debug mode
debian:stable-slim container to the newest running pod of the service. The container shares the process namespace of the application container, so tools like ps and top show the application processes. The CLI waits up to 2 minutes for the container to start. --cpu and --memory do not apply in this mode and are ignored.
Permissions
Clone mode requires the same permissions asqovery shell. Debug mode requires admin access to the cluster. Both are recorded in the audit logs.
Options
Examples
Debug Application
Run Database Migrations
Check Application Files
Run a Script Without Touching Production Pods
Debug Specific Container
Tips
Related Commands
qovery log- View application logsqovery application- Manage applications