ezgh projects create <name> [--folder f] [--grant <type>:<who>=full|readOnly]… [flags]Create a project in the organization: at the top, or in a folder (--folder). Projects group the resources you run, and policies can name them. An organization has a limited number of projects: see ezgh quotas.
--grant gives a user, bot, group, or EZGH SSO user or group the project’s own access as the project is created: full (everything in the project) or readOnly (view everything in it, change nothing). Write <type>:<who>=<level>, where who is an ID, an email (users), a slug or name, or me; at most 10. Granting needs policies.attach besides projects.create, and if anything is refused, nothing is created. Without --grant, only policies that already reach every project let anyone use it, so if your own access names specific projects, grant yourself access (user:me=full) or you won’t see it.
Part of ezgh projects.
Examples
ezgh projects create web
ezgh projects create payments-prod --folder Engineering/Payments --grant user:me=full --grant group:Readers=readOnlyFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--folder |
string | the folder to create it in, by ID, slug, name or path (default: the top of the organization) | |
--grant |
string, repeatable | give a principal the project’s own access: <type>:<who>=full|readOnly, where type is user, bot, group, ssoUser or ssoGroup and who is an ID, email (users), slug or name, or me (repeatable) |
This command also takes the global flags.