Project Management Command: project
List all projects: ls
Entrance:
lbg project ls
Summary:
usage: lbg project ls [-h] [-q] [-s] [-o] [--csv] [--json] [--yaml] [--table]
[--noheader]
options:
-h, --help show this help message and exit
-q, --quiet only show project id
-s, --self only show project belong to current user
-o, --other only show project not belong to current user
--csv output with csv format
--json output with json format
--yaml output with yaml format
--table output with table format
--noheader does not print header information
Parameter description:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--quiet | -q | Only show project id | No |
--self | -s | Only show projects created by yourself | No |
--other | -o | Only show projects not created by yourself | No |
Example:
$ lbg project ls --yaml # View all projects and output in yaml format
$ lbg project ls -s -q # View the id of your own created projects
Switch default project: switch
Entrance:
lbg project switch <project_id>
Summary:
usage: lbg project switch [-h] <pgid>
positional arguments:
<pgid> project id
options:
-h, --help show this help message and exit
Parameter description:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
project_id | - | The project id to switch to | Yes |
Example:
$ lbg project switch 123 # Switch the default project to 123
View current project: current
Entrance:
lbg project current
Summary:
usage: lbg project current [-h]
options:
-h, --help show this help message and exit