Command: list
Options: None
Usage: list all Projects to which the user has access
Prerequisite: User login is required, otherwise error is returned: ‘The current login session is invalid. Please login to continue.'
$ pilotcli project list --help
Usage: pilotcli project list [OPTIONS]
List accessible projects.
Options:
--page INTEGER The page to be listed [default: 0]
--page-size INTEGER number of objects per page [default: 10]
--order [asc|desc] sorting order [default: desc]
--order-by [created_at|name|code]
sorting column [default: created_at]
-d, --detached whether run in detached mode
--help Show this message and exit.
Examples
(1) Project list:
Get a list of all Projects the user has access to:
$ pilotcli project list
Project Name Project Code
---------------------------------------------------------------------------
Test Project 02-13 | test230213byshan
Test1_Audit | test1audit
Test20221109 | test20220109
Indoc Test Project | indoctestproject
Page: 0, Number of projects in page: 4, Total number of projects: 4
By default, the table will only display the first ten elements. If you have access to more than ten Projects, you will be prompted to use your arrow keys to select one of two options to either view the next ten items (next page), or to exit (exit) to return to the command line. The selected option is indicated by two arrows and can be confirmed by hitting enter:
Page: 0, Number of projects: 10, Total number of projects: 12
What do you want? (Use arrow keys)
» next page
exit