Sharing commands
Copy page
These commands decide who can open a project. Typing grayspar access or grayspar open-path alone runs its list command.
grayspar access list
Section titled “grayspar access list”Show who can open a project.
grayspar access list [flags]grayspar access add
Section titled “grayspar access add”Let people or a whole company open a project.
grayspar access add [flags] <targets...>| Argument | Description |
|---|---|
targets |
Email addresses, or @company.example for everyone at a company. |
grayspar access add alice@example.com bob@example.comgrayspar access add @northfold.exampleAdding a company needs the owner role.
grayspar access remove
Section titled “grayspar access remove”Remove a person or company from a project’s list.
grayspar access remove [flags] <target>| Argument | Description |
|---|---|
target |
An email address, or @company.example. |
grayspar access remove alice@example.comgrayspar access set
Section titled “grayspar access set”Choose whether only the list or anyone with the link can open a project.
grayspar access set [flags]| Flag | Description |
|---|---|
--mode <mode> |
Restricted lets in the people and companies on the list, open lets in anyone with the link (choices: “restricted”, “open”). |
grayspar access set --mode opengrayspar access set --mode restrictedThis command needs the owner role.
grayspar open-path list
Section titled “grayspar open-path list”List a project’s open paths.
grayspar open-path list [flags]grayspar open-path add
Section titled “grayspar open-path add”Let anyone reach a path and everything below it.
grayspar open-path add [flags] <path>| Argument | Description |
|---|---|
path |
A path such as /webhooks. |
grayspar open-path add /webhooksThis command needs the owner role.
grayspar open-path remove
Section titled “grayspar open-path remove”Make a path ask for login again.
grayspar open-path remove [flags] <path>| Argument | Description |
|---|---|
path |
An open path such as /webhooks. |
grayspar open-path remove /webhooks