qovery-cli icon indicating copy to clipboard operation
qovery-cli copied to clipboard

feat: able to specify context inline on commands

Open Prashidha0O1 opened this issue 10 months ago • 0 comments

Description

This PR addresses issue #158 by implementing the ability to specify context inline on shell commands, which makes it faster and more convenient for users who manage multiple instances/environments.

Changes

  • Added a new --context flag to the shell command that accepts a string in the format organization:project:environment:service
  • Implemented parsing logic to extract the individual components from the context string
  • Added the necessary conditional logic in the command execution flow to prioritize the inline context flag
  • Updated the command examples to include the new usage pattern

Usage:

Users can now run commands like:

qovery shell --context webapp:staging:web
qovery shell -c bash --context webapp:production:worker

Prashidha0O1 avatar Mar 15 '25 05:03 Prashidha0O1