All apps/npm

npm

npm

The package manager for Node.js, and the client for its registry.

Runs as npm, npx|macOS, Linux, Windows|docs.npmjs.com

Command form

ai-draft · 7 tasks · 35 fields

Global options only; use the Install, Run, Outdated and Publish subcommands.

Opens the form; the finished command lands at your prompt, unrun
otty gui npm

npm install

Install packages

Install dependencies or add packages. Dependency-layout and legacy flags are left out.

Install packagesExample values, fixed in this page — nothing here reaches a terminal
Advanced
Ignore scripts
--ignore-scripts
Skip audit
--no-audit
Hide funding message
--no-fund
TasksEach one presets the form for one job
Install project
ignore_scriptsno_auditno_fund
Add package
packagessave_exact
Add dev package
packagessave_exact
ParametersOnly these flags are editable in the form
Packages
string · positional 0 · repeatable
Save to devDependencies
boolean
--save-dev-D
Save to optionalDependencies
boolean
--save-optional-O
Save exact version
boolean
--save-exact-E
Do not save
boolean
--no-save
Global
boolean
--global-g
Ignore scripts
boolean
--ignore-scripts
Legacy peer deps
boolean
--legacy-peer-deps
Skip audit
boolean
--no-audit
Hide funding message
boolean
--no-fund
Dry run
boolean
--dry-run
Registry
string
--registry
Workspace
string · repeatable
-w--workspace
All workspaces
boolean
-ws--workspaces

npm run

Run script

Run a script from package.json. Extra arguments after -- are not covered.

Run scriptExample values, fixed in this page — nothing here reaches a terminal
Basic
Script*
string
Ignore missing script
--if-present
TasksEach one presets the form for one job
Run script
scriptif_present
ParametersOnly these flags are editable in the form
Script
string · positional 0
Ignore missing script
boolean
--if-present
Ignore pre/post scripts
boolean
--ignore-scripts
Script shell
string
--script-shell
Workspace
string · repeatable
-w--workspace
All workspaces
boolean
-ws--workspaces

npm outdated

Check outdated

List outdated packages.

Check outdatedExample values, fixed in this page — nothing here reaches a terminal
Basic
Packages
string
Extended info
--long
TasksEach one presets the form for one job
Check outdated
packageslong
ParametersOnly these flags are editable in the form
Packages
string · positional 0 · repeatable
Show all
boolean
-a-all
JSON output
boolean
--json
Extended info
boolean
--long-l
Parseable output
boolean
--parseable-p
Global
boolean
-g
Workspace
string · repeatable
-w--workspace
All workspaces
boolean
-ws--workspaces

npm publish

Publish package

Publish a package to the registry. Prefer a dry run first.

Publish packageExample values, fixed in this page — nothing here reaches a terminal
Basic
Tarball or folder
any
Dist-tag
string
Access
2 choicesenum
TasksEach one presets the form for one job
Dry run
targettagaccess
Publish
targettagaccessotp
ParametersOnly these flags are editable in the form
Tarball or folder
path · positional 0
Dist-tag
string
--tag
Access
enum
--accessrestrictedpublic
Dry run
boolean
--dry-run
One-time password
string
--otp
Workspace
string · repeatable
-w--workspace
All workspaces
boolean
-ws--workspaces
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed npm against its version. A form that does not match your version is not offered.