metalctlv2_context.md
July 28, 2026 ยท View on GitHub
metalctlv2 context
manage cli contexts
Synopsis
you can switch back and forth contexts with "-"
metalctlv2 context [flags]
Options
-h, --help help for context
Options inherited from parent commands
--api-token string the token used for api requests
--api-url string the url to the metal-stack.io api
-c, --config string alternative config file path, (default is ~/.metal-stack/config.yaml)
--debug debug output
--force-color force colored output even without tty
-o, --output-format string output format (table|wide|markdown|json|yaml|template), wide is a table with more columns. (default "table")
--template string output template for template output-format, go template format. For property names inspect the output of -o json or -o yaml for reference.
--timeout duration request timeout used for api requests
SEE ALSO
- metalctlv2 - cli for managing entities in metal-stack
- metalctlv2 context add - add a cli context
- metalctlv2 context list - list the configured cli contexts
- metalctlv2 context remove - remove a cli context
- metalctlv2 context set-project - sets the default project to act on for cli commands
- metalctlv2 context show-current - prints the current context name
- metalctlv2 context switch - switch the cli context
- metalctlv2 context update - update a cli context