hart ctx
List, switch and remove contexts (installations and their default team and workspace)
Generated from
cmd/hart at v1.5.0List, switch and remove contexts (installations and their default team and workspace)
hart ctx [flags]
hart ctx [command]Subcommands:
hart ctx list: List the contexts; * marks the current onehart ctx remove: Remove a context from the contexts filehart ctx use: Switch the current context, and set its default team and workspace
hart ctx list
List the contexts; * marks the current one
hart ctx list [flags]Aliases: list, ls.
hart ctx remove
Removes the context from the contexts file. Its API key stays valid on the server: run hart logout first to delete it.
hart ctx remove <name> [flags]Aliases: remove, rm.
hart ctx use
Makes the named context the current one. With -t/--team and -w/--workspace it also stores them as the context's defaults (without a name: on the current context); 0 clears one.
hart ctx use [name] [flags]Examples:
hart ctx use home
hart ctx use --team 42 --workspace 123
hart ctx use home -w 0