CLICommand referencecontext
context
Commands, arguments, and options for openship context.
See the workflow guide for examples. Global flags such as --json go before the command; see global options.
openship context
Manage connection contexts (list/use/add/rm)
openship context|ctx [options] [command]| Subcommand | Purpose |
|---|---|
list|ls | List configured contexts |
use <name> | Switch the active context |
add [options] <name> | Create or update a context's endpoints/token |
rm|remove <name> | Remove a context (cannot remove the active one) |
openship context add
Create or update a context's endpoints/token
openship context add [options] <name>| Argument | Meaning |
|---|---|
name | Context name |
| Option | Meaning |
|---|---|
--api-url <url> | API base URL |
--dashboard-url <url> | Dashboard base URL |
--token <token> | Personal Access Token to store |
--use | Switch to this context after adding |
openship context list
List configured contexts
openship context list|ls [options]openship context rm
Remove a context (cannot remove the active one)
openship context rm|remove [options] <name>| Argument | Meaning |
|---|---|
name | Context name |
openship context use
Switch the active context
openship context use [options] <name>| Argument | Meaning |
|---|---|
name | Context name |