From d973616cf76267caaeefd899c20759b3eed2c4db Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 15 Nov 2024 00:18:23 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/vgremove | 29 +++++++++++++++++++++++++++++ tldr/npm-ci | 22 ++++++++++++++++++++++ tldr/npm-list | 12 ++++++++++++ tldr/npm-ls | 29 +++++++++++++++++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 tldr/linux/vgremove create mode 100644 tldr/npm-ci create mode 100644 tldr/npm-list create mode 100644 tldr/npm-ls diff --git a/tldr/linux/vgremove b/tldr/linux/vgremove new file mode 100644 index 00000000..9585704a --- /dev/null +++ b/tldr/linux/vgremove @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# vgremove + +> Remove volume group(s) in LVM. +> More information: . + +- Remove a volume group with confirmation: + +`vgremove {{volume_group}}` + +- Forcefully remove a volume group without confirmation: + +`vgremove --force {{volume_group}}` + +- Set the debug level for detailed logging to level 2, (repeat `--debug` up to 6 times to increase the level): + +`vgremove --debug --debug {{volume_group}}` + +- Use a specific config setting to override defaults: + +`vgremove --config '{{global/locking_type=1}}' {{volume_group}}` + +- Display help text for usage information: + +`vgremove --help` diff --git a/tldr/npm-ci b/tldr/npm-ci new file mode 100644 index 00000000..ea24f65d --- /dev/null +++ b/tldr/npm-ci @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm ci + +> Clean install of `npm` project dependencies for automated environments. +> Installs packages based on `package-lock.json` or `npm-shrinkwrap.json`. +> More information: . + +- Install project dependencies from `package-lock.json` or `npm-shrinkwrap.json`: + +`npm ci` + +- Install project dependencies but skip the specified dependency type: + +`npm ci --omit={{dev|optional|peer}}` + +- Install project dependencies without running any pre-/post-scripts defined in `package.json`: + +`npm ci --ignore-scripts` diff --git a/tldr/npm-list b/tldr/npm-list new file mode 100644 index 00000000..2e00a4d0 --- /dev/null +++ b/tldr/npm-list @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm list + +> This command is an alias of `npm ls`. + +- View documentation for the original command: + +`tldr npm ls` diff --git a/tldr/npm-ls b/tldr/npm-ls new file mode 100644 index 00000000..e657df79 --- /dev/null +++ b/tldr/npm-ls @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm ls + +> Print installed packages to `stdout`. +> More information: . + +- Print all versions of direct dependencies to `stdout`: + +`npm ls` + +- Print all installed packages including peer dependencies: + +`npm ls --all` + +- Print dependencies with extended information: + +`npm ls --long` + +- Print dependencies in parseable format: + +`npm ls --parseable` + +- Print dependencies in JSON format: + +`npm ls --json`