Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pages/cli/permissions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ On **Golem Cloud** components are organized into **projects**.
Existing projects can be listed using the `project list` subcommand:

```shell copy
golem project list
golem cloud project list
```

### Adding projects

A new project can be created using `project add`. The command expects a project name and description:

```shell copy
golem project add --project-name "Golem Demo" --project-description "A new project for demonstrating the project feature"
golem cloud project add "Golem Demo" --description "A new project for demonstrating the project feature"
```

When creating components or agents, the project can be specified with the `--project-name` flag. Every user has a **default project** which is used when no explicit project is specified.
Expand All @@ -74,7 +74,7 @@ Projects can be shared among multiple Golem Cloud accounts.
To share a project, use the `share` subcommand:

```shell copy
golem share --project-name "Golem Demo" --recipient-account-id 08bc0eac-5c51-40a5-8bc6-5c8928efb475 --project-actions ViewWorker --project-actions ViewComponent
golem cloud grant --project-name "Golem Demo" --recipient-account-id 08bc0eac-5c51-40a5-8bc6-5c8928efb475 --project-actions ViewWorker --project-actions ViewComponent
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
golem cloud grant --project-name "Golem Demo" --recipient-account-id 08bc0eac-5c51-40a5-8bc6-5c8928efb475 --project-actions ViewWorker --project-actions ViewComponent
golem cloud project grant <--policy-id <POLICY_ID>|--action <ACTION>> <PROJECT_REFERENCE> <RECIPIENT_EMAIL>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need help here! I'm not familiar with action and policy-id.

```

This example shares the "Golem Demo" project with the account identified by `08bc0eac-5c51-40a5-8bc6-5c8928efb475` and grants component and agent **view** permissions for it.
Expand Down