Skip to content

Instantly share code, notes, and snippets.

@kian
Created October 11, 2016 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kian/66ccea9c2e851ecd2fcf9580c8260e33 to your computer and use it in GitHub Desktop.
Save kian/66ccea9c2e851ecd2fcf9580c8260e33 to your computer and use it in GitHub Desktop.
kian@zergtrap ~/src/puppet-placelocal $ yarn --help
Usage: yarn install [flags]
Options:
-h, --help output usage information
-V, --version output the version number
--offline
--prefer-offline
--strict-semver
--json
--global-folder [path]
--modules-folder [path] rather than installing modules into the node_modules folder relative to the cwd, output them here
--packages-root [path] rather than storing modules into a global packages root, store them here
--mutex [type][:specifier] use a mutex to ensure only one yarn instance is executing
--har save HAR output of network traffic
--ignore-engines ignore engines check
--ignore-scripts
--ignore-optional
--force
--flat only allow one version of a package
--prod, --production
--no-lockfile don't read or generate a lockfile
--pure-lockfile don't generate a lockfile
-g, --global DEPRECATED
-S, --save DEPRECATED - save package to your `dependencies`
-D, --save-dev DEPRECATED - save package to your `devDependencies`
-P, --save-peer DEPRECATED - save package to your `peerDependencies`
-O, --save-optional DEPRECATED - save package to your `optionalDependencies`
-E, --save-exact DEPRECATED
-T, --save-tilde DEPRECATED
kian@zergtrap ~/src/puppet-placelocal $ npm --help
Usage: npm <command>
where <command> is one of:
access, adduser, bin, bugs, c, cache, completion, config,
ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
help, help-search, i, init, install, install-test, it, link,
list, ln, logout, ls, outdated, owner, pack, ping, prefix,
prune, publish, rb, rebuild, repo, restart, root, run,
run-script, s, se, search, set, shrinkwrap, star, stars,
start, stop, t, tag, team, test, tst, un, uninstall,
unpublish, unstar, up, update, v, version, view, whoami
npm <cmd> -h quick help on <cmd>
npm -l display full usage info
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file:
/home/kian/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@3.10.3 /usr/lib/node_modules/npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment