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