1 ---
2 title: npm-owner
3 section: 1
4 description: Manage package owners
5 github_repo: npm/cli
6 github_branch: release/v8
7 github_path: docs/lib/content/commands/npm-owner.md
8 redirect_from:
9 - /cli-documentation/v8/cli-commands/npm-owner
10 - /cli-documentation/v8/cli-commands/owner
11 - /cli-documentation/v8/commands/npm-owner
12 - /cli-documentation/v8/commands/owner
13 - /cli-documentation/v8/npm-owner
14 - /cli-documentation/v8/owner
15 - /cli/v8/cli-commands/npm-owner
16 - /cli/v8/cli-commands/owner
17 - /cli/v8/commands/owner
18 - /cli/v8/npm-owner
19 - /cli/v8/owner
20 ---
21
22 ### Synopsis
23
24 ```bash
25 npm owner add <user> <package-spec>
26 npm owner rm <user> <package-spec>
27 npm owner ls <package-spec>
28
29 alias: 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/v8/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 #### `workspace`
65
66 - Default:
67 - Type: String (can be set multiple times)
68
69 Enable running a command in the context of the configured workspaces of the current project while filtering by running only the workspaces defined by this configuration option.
70
71 Valid values for the `workspace` config are either:
72
73 - Workspace names
74 - Path to a workspace directory
75 - Path to a parent workspace directory (will result in selecting all workspaces within that folder)
76
77 When set for the `npm init` command, this may be set to the folder of a workspace which does not yet exist, to create the folder and set it up as a brand new workspace within the project.
78
79 This value is not exported to the environment for child processes.
80
81 #### `workspaces`
82
83 - Default: null
84 - Type: null or Boolean
85
86 Set to true to run the command in the context of **all** configured workspaces.
87
88 Explicitly setting this to false will cause commands like `install` to ignore workspaces altogether. When not set explicitly:
89
90 - Commands that operate on the `node_modules` tree (install, update, etc.) will link workspaces into the `node_modules` folder. - Commands that do other things (test, exec, publish, etc.) will operate on the root project, _unless_ one or more workspaces are specified in the `workspace` config.
91
92 This value is not exported to the environment for child processes.
93
94 ### See Also
95
96 - [package spec](/cli/v8/using-npm/package-spec)
97 - [npm profile](/cli/v8/commands/npm-profile)
98 - [npm publish](/cli/v8/commands/npm-publish)
99 - [npm registry](/cli/v8/using-npm/registry)
100 - [npm adduser](/cli/v8/commands/npm-adduser)