New in version 5.0.
pio access grant [OPTIONS] LEVEL <ORGNAME:TEAMNAME>|<USERNAME> URN
Add the ability of users and teams to have “LEVEL” access to a resource.
The next levels are supported:
Administrative privileges. Can perform all available operations on the particular resource.
Read-write access. Can update a resource, publish a new version, unpublish existing version.
Cannot manage resource permissions and grant access to other members.
Read-only access. It’s automatically granted for the public resources.
You can grant access to the team members using the next format
See the examples below.
Resource type in URN form.
Default is set to
prn:reg:pkg which means to grant an access to the package in
the PlatormIO Registry.
Grant “maintainer” access to a resource for the “bob” user:
> pio access grant maintainer bob prn:reg:pkg:8036:platform Access for resource "prn:reg:pkg:8036:platform" has been granted for "bob"
Add the ability of PlatformIO’s “developer” team to have “admin” access to a resource.
> pio access grant admin platformio:developers prn:reg:pkg:8036:platform Access for resource "prn:reg:pkg:8036:platform" has been granted for "platformio:developers"