context-switch¶
Shortcut: cs
Help option
~ $ dk context-switch --help
Current context is: default
Usage: dk context-switch [OPTIONS] CONTEXT_NAME
Create or switch to a new context.
Options:
-y, --yes Force yes
--help Show this message and exit.
Configure a new context
~ $ dk context-switch new_context
Current context is: default
Context does not exist. Are you sure you want to create context new_context? [yes/No]yes
Switching to context new_context ...
Enter username: <USERNAME>
Enter password: <PASSWORD>
DK Cloud Address (default https://cloud.datakitchen.io): <ENTER>
DK Cloud Port (default 443): <ENTER>
Context switch done.
Use dk user-info and dk config-list to get context details.
Configure new context using shortcuts and force
~ $ dk cs new_context2 -y
Current context is: default
Switching to context new_context2 ...
Enter username: <USERNAME>
Enter password: <PASSWORD>
DK Cloud Address (default https://cloud.datakitchen.io): <ENTER>
DK Cloud Port (default 443): <ENTER>
Context switch done.
Use dk user-info and dk config-list to get context details.
Switch to an existing context using shortcuts