1 ---
2 title: npm-star
3 section: 1
4 description: Mark your favorite packages
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-star.md
8 redirect_from:
9 - /cli-commands/npm-star
10 - /cli-commands/star
11 - /cli-documentation/cli-commands/npm-star
12 - /cli-documentation/cli-commands/star
13 - /cli-documentation/commands/npm-star
14 - /cli-documentation/commands/star
15 - /cli-documentation/npm-star
16 - /cli-documentation/star
17 - /cli-documentation/v11/cli-commands/npm-star
18 - /cli-documentation/v11/cli-commands/star
19 - /cli-documentation/v11/commands/npm-star
20 - /cli-documentation/v11/commands/star
21 - /cli-documentation/v11/npm-star
22 - /cli-documentation/v11/star
23 - /cli/cli-commands/npm-star
24 - /cli/cli-commands/star
25 - /cli/commands/npm-star
26 - /cli/commands/star
27 - /cli/npm-star
28 - /cli/star
29 - /cli/v11/cli-commands/npm-star
30 - /cli/v11/cli-commands/star
31 - /cli/v11/commands/star
32 - /cli/v11/npm-star
33 - /cli/v11/star
34 - /commands/npm-star
35 - /commands/star
36 ---
37
38 ### Synopsis
39
40 ```bash
41 npm star [<package-spec>...]
42 ```
43
44 Note: This command is unaware of workspaces.
45
46 ### Description
47
48 "Starring" a package means that you have some interest in it. It's a vaguely positive way to show that you care.
49
50 It's a boolean thing. Starring repeatedly has no additional effect.
51
52 ### More
53
54 There's also these extra commands to help you manage your favorite packages:
55
56 #### Unstar
57
58 You can also "unstar" a package using [`npm unstar`](/cli/v11/commands/npm-unstar)
59
60 "Unstarring" is the same thing, but in reverse.
61
62 #### Listing stars
63
64 You can see all your starred packages using [`npm stars`](/cli/v11/commands/npm-stars)
65
66 ### Configuration
67
68 #### `registry`
69
70 - Default: "https://registry.npmjs.org/"
71 - Type: URL
72
73 The base URL of the npm registry.
74
75 #### `unicode`
76
77 - Default: false on windows, true on mac/unix systems with a unicode locale, as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
78 - Type: Boolean
79
80 When set to true, npm uses unicode characters in the tree output. When false, it uses ascii characters instead of unicode glyphs.
81
82 #### `otp`
83
84 - Default: null
85 - Type: null or String
86
87 This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with `npm access`.
88
89 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.
90
91 ### See Also
92
93 - [package spec](/cli/v11/using-npm/package-spec)
94 - [npm unstar](/cli/v11/commands/npm-unstar)
95 - [npm stars](/cli/v11/commands/npm-stars)
96 - [npm view](/cli/v11/commands/npm-view)
97 - [npm whoami](/cli/v11/commands/npm-whoami)
98 - [npm adduser](/cli/v11/commands/npm-adduser)