Skip to main content
Switch to a saved context. The use command provides two ways to switch your active context:
  1. Interactive mode (no arguments): idyl use Shows a list of all saved contexts with an interactive selector. Use arrow keys to navigate and Enter to select.
  2. Direct mode (with argument): idyl use prod-dev Switches directly to the named context.
When switching contexts, the access token is automatically refreshed if needed.

Usage

idyl use [context]

Inherited flags

FlagDescription
-a <string>, --account-id <string>Account ID to use (overrides context)
-c <string>, --context <string>Use specific context
--homedir <string>Override config directory (default: ~/.idyl)
-n <string>, --namespace <string>Namespace to use
-o <string>, --output <string>Output format (json|yaml)
-p <string>, --profile <string>Override profile
--realm <string>Override realm
--subnet <string>Override context subnet for this command

Examples

# Interactive context selection
idyl use

# Switch to a specific context
idyl use prod-dev
idyl use staging