Skip to content

Context Commands

Context commnands allows you to manage the application that can be used as default.

getdefault

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

The only flag available on this command is help.

use

This command helps you to set a default application on the configuration file, so you can use that specific application without supplying application id.

arguments

You can provide an application id as an argument to the command and the cli will try to verify the application id, by fetching all the list of applications residing on the default project or you can provide project id using flags. id on the argument can be supplied as,

$ zocli app use 1

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 app use [--help | -h]

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

id

If you are not providing app id from the arguments then, you can start the --id flag, and provide the app id to fetch details about that specific one. And this exactly works as same as while provided from argument.

Example:

$ zocli app use [--id | -i] 1

pid

If you are not providing project id from the arguments then, you can start the --pid flag, and provide the project id to fetch applications of that project. And this exactly works as same as while provided from argument.

Example:

$ zocli app use [--pid | -p] 1

projectName

If you are not providing project name from the arguments then, you can start the --name flag, and provide the project name to fetch details about that specific project. And this exactly works as same as while provided from argument. Example:

$ zocli app use [--pname | -n] test

temp

Temporarly this flag has been postponed for development.

removedefault

Remove the default application which is currently in use from the configuration file.
For this, only the active orgranization's default project will be removed and none other profiles.

The only flag avaiale on this commandis help.