|
12345678910111213141516171819202122232425262728293031323334353637383940 |
- ---
- id: docs_cli_owner
- guide: docs_cli
- layout: guide
- ---
-
- <p class="lead">Manage package owners.</p>
-
- ### What is a package owner? <a class="toc" id="toc-what-is-a-package-owner" href="#toc-what-is-a-package-owner"></a>
-
- A package "owner" in the registry is a user that has access to make changes to
- a package. A single package can have as many owners as you want.
-
- Owners have permission to do the following tasks:
-
- 1. Publish new versions of the package
- 2. Add or remove other owners of the package
- 3. Change metadata for a package
-
- ### Caveats <a class="toc" id="toc-caveats" href="#toc-caveats"></a>
-
- There aren't any other levels of access at this time. All users can either
- modify a package or they cannot. In the future, there may be more types of
- roles, but not at this time.
-
- ### Commands <a class="toc" id="toc-commands" href="#toc-commands"></a>
-
- ##### `yarn owner list <package>` <a class="toc" id="toc-yarn-owner-ls" href="#toc-yarn-owner-ls"></a>
-
- Lists all of the owners of a `<package>`.
-
- ##### `yarn owner add <user> <package>` <a class="toc" id="toc-yarn-owner-add" href="#toc-yarn-owner-add"></a>
-
- Adds the `<user>` as an owner of the `<package>`. You must already be an owner
- of the `<package>` in order to run this command.
-
- ##### `yarn owner remove <user> <package>` <a class="toc" id="toc-yarn-owner-rm" href="#toc-yarn-owner-rm"></a>
-
- Removes the `<user>` as an owner of the `<package>`. You must already be an
- owner of the `<package>` in order to run this command.
|