Skip to content

Context commands

These command helps you manage the context

getdefault

Get the default project wihch is currently in use from the configuration file.
For this, only the active orgranization's default project will be retrieved and printed.

arguments

No Arguments are needed for this command.

flags

help

This flag is available for every commands and sub-commands and this prints the help menu for that specific command, and this flag can be used as,

$ zocli project getdefault [--help | -h]

Note: If help flag is supplied then, any other flags or arguments will be ignored

use

Set any of the project to be used as a default one, which will help you to work with other commands without supplying project ID.

Every organization context are saved as seperate, which will help to work with many organization by maintaining different contexts.

arguments

zocli project use [<:projectId>]

flags

id

If you are not providing project id from the arguments then, you can start the --id flag, and provide the project id to use as default one. And this exactly works as same as while provided from argument.

Example:

$ zocli project use [--id | -i] 2454

temp

Note: temp flag's development has been postponed for right now, as the go code cannot jump to it's master thread because of which the exported variable on bash cannot be persistent and can only last till the codebase is running.

removedefault

Remove the default project which is currently in use from the configuration file.

For this, only the active orgranization's default project will be retrieved and printed.

arguments

No Arguments are required for this command.

flags

help

This flag is available for every commands and sub-commands and this prints the help menu for that specific command, and this flag can be used as,

$ zocli project removedefault [--help | -h]

Note: If help flag is supplied then, any other flags or arguments will be ignored