Skip to content

refresh use

Switch the active refresh context (kubectx-style)

refresh use [options] [context-name|-]

Switch the active context so subsequent commands inherit its cluster, region, and profile instead of you repeating --cluster/--region/--profile on every invocation (the kubectx workflow, applied to EKS).

Save contexts first with 'refresh context add', then switch between them:

refresh context add prod --cluster prod-eks --region us-east-1 --profile prod refresh context add stage --cluster stage-eks --region us-west-2 --profile stage refresh use prod # all later commands target prod-eks/us-east-1/prod refresh use - # toggle back to the previously active context refresh use # no name: pick interactively from the saved list

Per-invocation --region/--profile/--cluster flags still override the active context. The REFRESH_CONTEXT env var overrides the saved current pointer for a single shell.

Flags

Flag Env Default Description
--help, -h show help