Skip to content

Conversation

@Sreyasiv
Copy link
Contributor

  • The page(s) are in the correct platform directories: common, linux, osx, windows, sunos, android, etc.
  • The page description(s) have links to documentation or a homepage.
  • The page(s) follow the content guidelines.
  • The page(s) follow the style guide.
  • The PR contains at most 5 new pages.
  • The PR title conforms to the recommended templates.

Version of the command being documented (if known): npm CLI v9+
Reference: #14000

@github-actions github-actions bot added new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers. labels Oct 27, 2025
@tldr-bot
Copy link

Hello! I've noticed something unusual when checking this PR at commit
2b6651a69b74a8a2f81e5c5f11bf5f77b33fbf80:

  • The file pages/npm-profile.md does not look like a directory.

Is this intended? If so, just ignore this comment. Otherwise, please double-check the commits.

@tldr-bot
Copy link

The build for this PR failed with the following error(s) at commit
d78b76dac68200bc09ae843b68ef6998dcd45b14:

pages/common/npm-profile.md:36:37 MD047/single-trailing-newline Files should end with a single newline character
pages/common/npm-profile.md:1: TLDR009 Page should contain a newline at end of file

Please fix the error(s) and push again.

@Sreyasiv Sreyasiv changed the title Npm profile npm-profile:add page Oct 27, 2025
@sebastiaanspeck sebastiaanspeck changed the title npm-profile:add page npm-profile: add page Oct 27, 2025
Copy link
Member

@sebastiaanspeck sebastiaanspeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please read the style guide why and when we put text in {{...}}.

Updated npm profile command syntax for clarity and consistency.
@Sreyasiv
Copy link
Contributor Author

Hi @sebastiaanspeck
Thanks for letting me know.
I have done the needed changes, let me know if there is something else that I need to change.

Comment on lines 15 to 33
- View a specific property of your profile:

`npm profile get {{property}}`

- Enable two-factor authentication (2FA):

`npm profile enable-2fa {{auth-only|auth-and-writes}}`

- Disable two-factor authentication (2FA):

`npm profile disable-2fa`

- Set your public email address:

`npm profile set email {{email}}`

- Set your public name:

`npm profile set name {{name}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe reorder a little to have the set-examples clustered.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried my best.

Copy link
Member

@sebastiaanspeck sebastiaanspeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also add set password?

@sebastiaanspeck sebastiaanspeck mentioned this pull request Oct 27, 2025
67 tasks
Sreyasiv and others added 2 commits October 27, 2025 12:27
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Sreyasiv and others added 3 commits October 27, 2025 12:57
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Added instructions for setting a new password in npm profile.

`npm profile get`

- View a specific property of your profile:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- View a specific property of your profile:
- View a specific property of the profile:


`npm profile set fullname {{name}}`

- Set a new password:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Set a new password:
- Set a new password interactively:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants