Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Nisi <michael.nisi@gmail.com>2014-08-12 18:39:49 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-09-19 10:36:07 +0400
commitfb5724fd98e1509c939693568df83d11417ea337 (patch)
treef4a27da749b52df51ef12836c14936c0ce9198c2 /doc
parent1259d85d78405b4c48becba8dcec6d8adf1bc3f6 (diff)
Allow init without prompt
Diffstat (limited to 'doc')
-rw-r--r--doc/cli/npm-init.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/cli/npm-init.md b/doc/cli/npm-init.md
index bd63a8879..08e517d79 100644
--- a/doc/cli/npm-init.md
+++ b/doc/cli/npm-init.md
@@ -3,7 +3,7 @@ npm-init(1) -- Interactively create a package.json file
## SYNOPSIS
- npm init
+ npm init [-f|--force|-y|--yes]
## DESCRIPTION
@@ -18,6 +18,9 @@ the options in there.
It is strictly additive, so it does not delete options from your package.json
without a really good reason to do so.
+If you invoke it with `-f`, `--force`, `-y`, or `--yes`, it will use only
+defaults and not prompt you for any options.
+
## SEE ALSO
* <https://github.com/isaacs/init-package-json>