1 ---
2 title: npm-owner
3 section: 1
4 description: Manage package owners
5 github_repo: npm/cli
6 github_branch: release/v7
7 github_path: docs/content/commands/npm-owner.md
8 redirect_from:
9 - /cli-documentation/v7/cli-commands/npm-owner
10 - /cli-documentation/v7/cli-commands/owner
11 - /cli-documentation/v7/commands/npm-owner
12 - /cli-documentation/v7/commands/owner
13 - /cli-documentation/v7/npm-owner
14 - /cli-documentation/v7/owner
15 - /cli/v7/cli-commands/npm-owner
16 - /cli/v7/cli-commands/owner
17 - /cli/v7/commands/owner
18 - /cli/v7/npm-owner
19 - /cli/v7/owner
20 ---
21
22 ### Synopsis
23
24 ```bash
25 npm owner add <user> [<@scope>/]<pkg>
26 npm owner rm <user> [<@scope>/]<pkg>
27 npm owner ls [<@scope>/]<pkg>
28
29 aliases: author
30 ```
31
32 Note: This command is unaware of workspaces.
33
34 ### Description
35
36 Manage ownership of published packages.
37
38 - ls: List all the users who have access to modify a package and push new versions. Handy when you need to know who to bug for help.
39 - add: Add a new user as a maintainer of a package. This user is enabled to modify metadata, publish new versions, and add other owners.
40 - rm: Remove a user from the package owner list. This immediately revokes their privileges.
41
42 Note that there is only one level of access. Either you can modify a package, or you can't. Future versions may contain more fine-grained access levels, but that is not implemented at this time.
43
44 If you have two-factor authentication enabled with `auth-and-writes` (see [`npm-profile`](/cli/v7/commands/npm-profile)) then you'll need to include an otp on the command line when changing ownership with `--otp`.
45
46 ### Configuration
47
48 #### `registry`
49
50 - Default: "https://registry.npmjs.org/"
51 - Type: URL
52
53 The base URL of the npm registry.
54
55 #### `otp`
56
57 - Default: null
58 - Type: null or String
59
60 This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with `npm access`.
61
62 If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one.
63
64 ### See Also
65
66 - [npm profile](/cli/v7/commands/npm-profile)
67 - [npm publish](/cli/v7/commands/npm-publish)
68 - [npm registry](/cli/v7/using-npm/registry)
69 - [npm adduser](/cli/v7/commands/npm-adduser)