diff options
author | Wassim Chegham <1699357+manekinekko@users.noreply.github.com> | 2022-02-24 20:46:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 20:46:37 +0300 |
commit | 6b68c1aaa282205eb4d47dbc81909c11851f7e06 (patch) | |
tree | a5a2ddafe61e5e475913a316a3ca59893629f986 /docs/content/commands/npm-init.md | |
parent | d438d61d4f689966de8f964afe212d1319b8d460 (diff) |
docs: auto-generate npm usage for each command (#4450)
Closes #4189
* docs: auto-generate synopsis sections
* feat: improve usage auto-generation'
* chore: auto-generate npm usage for each command
* docs: print default usage when usage is missing
* docs: add special case for npx
* fix: remove optional chaining
Diffstat (limited to 'docs/content/commands/npm-init.md')
-rw-r--r-- | docs/content/commands/npm-init.md | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/docs/content/commands/npm-init.md b/docs/content/commands/npm-init.md index e9212a37e..d9c03aef4 100644 --- a/docs/content/commands/npm-init.md +++ b/docs/content/commands/npm-init.md @@ -6,13 +6,23 @@ description: Create a package.json file ### Synopsis +<!-- AUTOGENERATED USAGE DESCRIPTIONS START --> +<!-- automatically generated, do not edit manually --> +<!-- see lib/commands/init.js --> + ```bash -npm init [--yes|-y|--scope] -npm init <@scope> (same as `npm exec <@scope>/create`) -npm init [<@scope>/]<name> (same as `npm exec [<@scope>/]create-<name>`) -npm init [-w <dir>] [args...] +npm init [--force|-f|--yes|-y|--scope] +npm init <@scope> (same as `npx <@scope>/create`) +npm init [<@scope>/]<name> (same as `npx [<@scope>/]create-<name>`) + +aliases: create, innit ``` +<!-- automatically generated, do not edit manually --> +<!-- see lib/commands/init.js --> + +<!-- AUTOGENERATED USAGE DESCRIPTIONS END --> + ### Description `npm init <initializer>` can be used to set up a new or existing npm |