projects

The projects command allows you to create, modify and view projects.

Usage: croud projects [-h] {create,delete,edit,get,list,users} ...

projects create

Usage: croud projects create [-h] --name NAME [--org-id ORG_ID]
                             [--region REGION]
                             [--output-fmt {table,wide,json,yaml}] [--sudo]

Required Arguments

--name The project name to use.

Optional Arguments

--org-id The organization ID to use.
--region, -r Temporarily use the specified region that command will be run in.
--output-fmt, --format, -o
 

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Example

sh$ croud projects create --name my-project --org-id a0df2925-cc73-4365-8a10-7ef847632b81
+--------------------------------------+
| id                                   |
|--------------------------------------|
| 035f1161-402e-44b4-9073-0749586091e0 |
+--------------------------------------+
==> Success: Project created.

projects delete

Usage: croud projects delete [-h] -p PROJECT_ID [-y] [--region REGION]
                             [--output-fmt {table,wide,json,yaml}] [--sudo]

Required Arguments

-p, --project-id
 The project ID to use.

Optional Arguments

-y, --yes Default: False
--region, -r Temporarily use the specified region that command will be run in.
--output-fmt, --format, -o
 

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Example

sh$ croud projects delete --project-id 035f1161-402e-44b4-9073-0749586091e0
Are you sure you want to delete the project? [yN] y
==> Success: Project deleted.

projects edit

Usage: croud projects edit [-h] -p PROJECT_ID [--name NAME] [--region REGION]
                           [--output-fmt {table,wide,json,yaml}] [--sudo]

Required Arguments

-p, --project-id
 The project ID to use.

Optional Arguments

--name The new project name to use.
--region, -r Temporarily use the specified region that command will be run in.
--output-fmt, --format, -o
 

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Example

sh$ croud projects edit --p f6c39580-5719-431d-a508-0cee4f9e8209  --name new-name
+--------------------------------------+-------------+
| project_id                           | name        |
|--------------------------------------+-------------+
| f6c39580-5719-431d-a508-0cee4f9e8209 | new-name    |
+--------------------------------------+-------------+
==> Success: Project edited.

projects list

Usage: croud projects list [-h] [--region REGION]
                           [--output-fmt {table,wide,json,yaml}] [--sudo]

Optional Arguments

--region, -r Temporarily use the specified region that command will be run in.
--output-fmt, --format, -o
 

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Example

sh$ croud projects list
+--------------------------------------+------------+--------------+--------------------------------------+
| id                                   | name       | region       | organizationId                       |
|--------------------------------------+------------+--------------+--------------------------------------|
| 035f1161-402e-44b4-9073-0749586091e0 | my-project | eastus.azure | a0df2925-cc73-4365-8a10-7ef847632b81 |
+--------------------------------------+------------+--------------+--------------------------------------+

projects users

Usage: croud projects users [-h] {add,list,remove} ...

projects users add

Usage: croud projects users add [-h] -p PROJECT_ID --user USER --role ROLE
                                [--region REGION]
                                [--output-fmt {table,wide,json,yaml}] [--sudo]

Required Arguments

-p, --project-id
 The project ID to use.
--user The user email address or ID to use.
--role The role FQN to use. Run croud users roles list for a list of available roles.

Optional Arguments

--region, -r Temporarily use the specified region that command will be run in.
--output-fmt, --format, -o
 

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Example

sh$ croud projects users add \
    --project-id 035f1161-402e-44b4-9073-0749586091e0 \
    --role project_member \
    --user john.doe@example.com
+--------------------------------------+----------------+--------------------------------------+
| project_id                           | role_fqn       | user_id                              |
|--------------------------------------+----------------+--------------------------------------|
| 035f1161-402e-44b4-9073-0749586091e0 | project_member | 6ac0f500-f9f8-4c12-82e2-3ad6192525d4 |
+--------------------------------------+----------------+--------------------------------------+
==> Success: User added to project.

projects users list

Usage: croud projects users list [-h] -p PROJECT_ID [--region REGION]
                                 [--output-fmt {table,wide,json,yaml}]
                                 [--sudo]

Required Arguments

-p, --project-id
 The project ID to use.

Optional Arguments

--region, -r Temporarily use the specified region that command will be run in.
--output-fmt, --format, -o
 

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Example

sh$ croud projects users list \
    --project-id 035f1161-402e-44b4-9073-0749586091e0
+----------------------+----------------+----------+--------------------------------------+
| email                | project_roles  | username | uid                                  |
|----------------------+----------------+----------+--------------------------------------|
| john.doe@example.com | project_member | john.doe | 6ac0f500-f9f8-4c12-82e2-3ad6192525d4 |
+----------------------+----------------+----------+--------------------------------------+

projects users remove

Usage: croud projects users remove [-h] -p PROJECT_ID --user USER
                                   [--region REGION]
                                   [--output-fmt {table,wide,json,yaml}]
                                   [--sudo]

Required Arguments

-p, --project-id
 The project ID to use.
--user The user email address or ID to use.

Optional Arguments

--region, -r Temporarily use the specified region that command will be run in.
--output-fmt, --format, -o
 

Possible choices: table, wide, json, yaml

Change the formatting of the output.

--sudo

Run the given command as superuser.

Default: False

Example

sh$ croud projects users remove \
    --project-id 035f1161-402e-44b4-9073-0749586091e0 \
    --user john.doe@example.com
==> Success: User removed from project.

Feedback

How helpful was this page?