/home/techb158/.nvm/versions/node/v16.20.2/lib/node_modules/npm/man/man1
NameSizeModeActions
npm-access.136470644editdlrm
npm-adduser.124860644editdlrm
npm-audit.1159870644editdlrm
npm-bin.19570644editdlrm
npm-bugs.133000644editdlrm
npm-cache.131390644editdlrm
npm-ci.1107600644editdlrm
npm-completion.110010644editdlrm
npm-config.141760644editdlrm
npm-dedupe.191810644editdlrm
npm-deprecate.118950644editdlrm
npm-diff.198670644editdlrm
npm-dist-tag.155320644editdlrm
npm-docs.132830644editdlrm
npm-doctor.150520644editdlrm
npm-edit.111400644editdlrm
npm-exec.1123960644editdlrm
npm-explain.129630644editdlrm
npm-explore.110750644editdlrm
npm-find-dupes.168280644editdlrm
npm-fund.139920644editdlrm
npm-help-search.18650644editdlrm
npm-help.110750644editdlrm
npm-hook.126910644editdlrm
npm-init.1101650644editdlrm
npm-install-ci-test.188450644editdlrm
npm-install-test.189210644editdlrm
npm-install.1248140644editdlrm
npm-link.1122530644editdlrm
npm-logout.118950644editdlrm
npm-ls.190990644editdlrm
npm-org.122860644editdlrm
npm-outdated.164450644editdlrm
npm-owner.133920644editdlrm
npm-pack.138610644editdlrm
npm-ping.18440644editdlrm
npm-pkg.183540644editdlrm
npm-prefix.113250644editdlrm
npm-profile.147070644editdlrm
npm-prune.161140644editdlrm
npm-publish.179370644editdlrm
npm-query.154800644editdlrm
npm-rebuild.148010644editdlrm
npm-repo.130750644editdlrm
npm-restart.116980644editdlrm
npm-root.111590644editdlrm
npm-run-script.181590644editdlrm
npm-search.139260644editdlrm
npm-set-script.126790644editdlrm
npm-shrinkwrap.19770644editdlrm
npm-star.117930644editdlrm
npm-stars.17760644editdlrm
npm-start.118270644editdlrm
npm-stop.114570644editdlrm
npm-team.144220644editdlrm
npm-test.113690644editdlrm
npm-token.152640644editdlrm
npm-uninstall.145340644editdlrm
npm-unpublish.147690644editdlrm
npm-unstar.116390644editdlrm
npm-update.1124950644editdlrm
npm-version.177080644editdlrm
npm-view.157490644editdlrm
npm-whoami.18660644editdlrm
npm.158040644editdlrm
npx.163130644editdlrm
Edit: /home/techb158/.nvm/versions/node/v16.20.2/lib/node_modules/npm/man/man1/npm-publish.1 (7937B)
.TH "NPM\-PUBLISH" "1" "February 2023" "" "" .SH "NAME" \fBnpm-publish\fR \- Publish a package .SS Synopsis .P .RS 2 .nf npm publish .fi .RE .SS Description .P Publishes a package to the registry so that it can be installed by name\. .P By default npm will publish to the public registry\. This can be overridden by specifying a different default registry or using a npm help scope in the name, combined with a scope\-configured registry (see \fBpackage\.json\fP \fI/configuring\-npm/package\-json)\fR\|\. .P A \fBpackage\fP is interpreted the same way as other commands (like \fBnpm install\fP and can be: .RS 0 .IP \(bu 2 a) a folder containing a program described by a \fBpackage\.json\fP \fI/configuring\-npm/package\-json\fR file .IP \(bu 2 b) a gzipped tarball containing (a) .IP \(bu 2 c) a url that resolves to (b) .IP \(bu 2 d) a \fB@\fP that is published on the registry (see npm help registry) with (c) .IP \(bu 2 e) a \fB@\fP (see npm help dist\-tag) that points to (d) .IP \(bu 2 f) a \fB\fP that has a "latest" tag satisfying (e) .IP \(bu 2 g) a \fB\fP that resolves to (a) .RE .P The publish will fail if the package name and version combination already exists in the specified registry\. .P Once a package is published with a given name and version, that specific name and version combination can never be used again, even if it is removed with npm help unpublish\. .P As of \fBnpm@5\fP, both a sha1sum and an integrity field with a sha512sum of the tarball will be submitted to the registry during publication\. Subsequent installs will use the strongest supported algorithm to verify downloads\. .P Similar to \fB\-\-dry\-run\fP see npm help pack, which figures out the files to be included and packs them into a tarball to be uploaded to the registry\. .SS Files included in package .P To see what will be included in your package, run \fBnpx npm\-packlist\fP\|\. All files are included by default, with the following exceptions: .RS 0 .IP \(bu 2 Certain files that are relevant to package installation and distribution are always included\. For example, \fBpackage\.json\fP, \fBREADME\.md\fP, \fBLICENSE\fP, and so on\. .IP \(bu 2 If there is a "files" list in \fBpackage\.json\fP \fI/configuring\-npm/package\-json\fR, then only the files specified will be included\. (If directories are specified, then they will be walked recursively and their contents included, subject to the same ignore rules\.) .IP \(bu 2 If there is a \fB\|\.gitignore\fP or \fB\|\.npmignore\fP file, then ignored files in that and all child directories will be excluded from the package\. If \fIboth\fR files exist, then the \fB\|\.gitignore\fP is ignored, and only the \fB\|\.npmignore\fP is used\. \fB\|\.npmignore\fP files follow the same pattern rules \fIhttps://git\-scm\.com/book/en/v2/Git\-Basics\-Recording\-Changes\-to\-the\-Repository#_ignoring\fR as \fB\|\.gitignore\fP files .IP \(bu 2 If the file matches certain patterns, then it will \fInever\fR be included, unless explicitly added to the \fB"files"\fP list in \fBpackage\.json\fP, or un\-ignored with a \fB!\fP rule in a \fB\|\.npmignore\fP or \fB\|\.gitignore\fP file\. .IP \(bu 2 Symbolic links are never included in npm packages\. .RE .P See npm help developers for full details on what's included in the published package, as well as details on how the package is built\. .SS Configuration .SS \fBtag\fP .RS 0 .IP \(bu 2 Default: "latest" .IP \(bu 2 Type: String .RE .P If you ask npm to install a package and don't tell it a specific version, then it will install the specified tag\. .P Also the tag that is added to the package@version specified by the \fBnpm tag\fP command, if no explicit tag is given\. .P When used by the \fBnpm diff\fP command, this is the tag used to fetch the tarball that will be compared with the local files by default\. .SS \fBaccess\fP .RS 0 .IP \(bu 2 Default: 'restricted' for scoped packages, 'public' for unscoped packages .IP \(bu 2 Type: null, "restricted", or "public" .RE .P When publishing scoped packages, the access level defaults to \fBrestricted\fP\|\. If you want your scoped package to be publicly viewable (and installable) set \fB\-\-access=public\fP\|\. The only valid values for \fBaccess\fP are \fBpublic\fP and \fBrestricted\fP\|\. Unscoped packages \fIalways\fR have an access level of \fBpublic\fP\|\. .P Note: Using the \fB\-\-access\fP flag on the \fBnpm publish\fP command will only set the package access level on the initial publish of the package\. Any subsequent \fBnpm publish\fP commands using the \fB\-\-access\fP flag will not have an effect to the access level\. To make changes to the access level after the initial publish use \fBnpm access\fP\|\. .SS \fBdry\-run\fP .RS 0 .IP \(bu 2 Default: false .IP \(bu 2 Type: Boolean .RE .P Indicates that you don't want npm to make any changes and that it should only report what it would have done\. This can be passed into any of the commands that modify your local installation, eg, \fBinstall\fP, \fBupdate\fP, \fBdedupe\fP, \fBuninstall\fP, as well as \fBpack\fP and \fBpublish\fP\|\. .P Note: This is NOT honored by other network related commands, eg \fBdist\-tags\fP, \fBowner\fP, etc\. .SS \fBotp\fP .RS 0 .IP \(bu 2 Default: null .IP \(bu 2 Type: null or String .RE .P This is a one\-time password from a two\-factor authenticator\. It's needed when publishing or changing package permissions with \fBnpm access\fP\|\. .P 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\. .SS \fBworkspace\fP .RS 0 .IP \(bu 2 Default: .IP \(bu 2 Type: String (can be set multiple times) .RE .P 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\. .P Valid values for the \fBworkspace\fP config are either: .RS 0 .IP \(bu 2 Workspace names .IP \(bu 2 Path to a workspace directory .IP \(bu 2 Path to a parent workspace directory (will result in selecting all workspaces within that folder) .RE .P When set for the \fBnpm init\fP 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\. .P This value is not exported to the environment for child processes\. .SS \fBworkspaces\fP .RS 0 .IP \(bu 2 Default: null .IP \(bu 2 Type: null or Boolean .RE .P Set to true to run the command in the context of \fBall\fR configured workspaces\. .P Explicitly setting this to false will cause commands like \fBinstall\fP to ignore workspaces altogether\. When not set explicitly: .RS 0 .IP \(bu 2 Commands that operate on the \fBnode_modules\fP tree (install, update, etc\.) will link workspaces into the \fBnode_modules\fP folder\. \- Commands that do other things (test, exec, publish, etc\.) will operate on the root project, \fIunless\fR one or more workspaces are specified in the \fBworkspace\fP config\. .RE .P This value is not exported to the environment for child processes\. .SS \fBinclude\-workspace\-root\fP .RS 0 .IP \(bu 2 Default: false .IP \(bu 2 Type: Boolean .RE .P Include the workspace root when workspaces are enabled for a command\. .P When false, specifying individual workspaces via the \fBworkspace\fP config, or all workspaces via the \fBworkspaces\fP flag, will cause npm to operate only on the specified workspaces, and not on the root project\. .P This value is not exported to the environment for child processes\. .SS See Also .RS 0 .IP \(bu 2 npm help "package spec" .IP \(bu 2 npm\-packlist package \fIhttp://npm\.im/npm\-packlist\fR .IP \(bu 2 npm help registry .IP \(bu 2 npm help scope .IP \(bu 2 npm help adduser .IP \(bu 2 npm help owner .IP \(bu 2 npm help deprecate .IP \(bu 2 npm help dist\-tag .IP \(bu 2 npm help pack .IP \(bu 2 npm help profile .RE