• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2section: cli-commands
3title: npm-owner
4description: Manage package owners
5---
6
7# npm-owner(1)
8## Manage package owners
9
10### Synopsis
11
12```bash
13npm owner add <user> [<@scope>/]<pkg>
14npm owner rm <user> [<@scope>/]<pkg>
15npm owner ls [<@scope>/]<pkg>
16
17aliases: author
18```
19
20### Description
21
22Manage ownership of published packages.
23
24* ls:
25  List all the users who have access to modify a package and push new versions.
26  Handy when you need to know who to bug for help.
27* add:
28  Add a new user as a maintainer of a package.  This user is enabled to modify
29  metadata, publish new versions, and add other owners.
30* rm:
31  Remove a user from the package owner list.  This immediately revokes their
32  privileges.
33
34Note that there is only one level of access.  Either you can modify a package,
35or you can't.  Future versions may contain more fine-grained access levels, but
36that is not implemented at this time.
37
38If you have two-factor authentication enabled with `auth-and-writes` then
39you'll need to include an otp on the command line when changing ownership
40with `--otp`.
41
42### See Also
43
44* [npm publish](/cli-commands/npm-publish)
45* [npm registry](/using-npm/registry)
46* [npm adduser](/cli-commands/npm-adduser)
47* [npm disputes](/using-npm/disputes)
48