From 381f17fa3a30017cd43daa15ef00b3dd41b5c6e2 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 5 Nov 2024 00:17:11 +0000 Subject: [PATCH] Update cheatsheets --- tldr/basename | 2 +- tldr/npm-org | 33 +++++++++++++++++++++++++++++++++ tldr/rails-db | 2 +- tldr/terraform-fmt | 2 +- 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 tldr/npm-org diff --git a/tldr/basename b/tldr/basename index 5681ac2b..c011f55f 100644 --- a/tldr/basename +++ b/tldr/basename @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Show only the rightmost directory name from a path: -`basename {{path/to/directory/}}` +`basename {{path/to/directory}}` - Show only the file name from a path, with a suffix removed: diff --git a/tldr/npm-org b/tldr/npm-org new file mode 100644 index 00000000..7b97cc42 --- /dev/null +++ b/tldr/npm-org @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm-org + +> Manage organizations. +> More information: . + +- Add a new user to an organization: + +`npm org set {{organization_name}} {{username}}` + +- Change a user's role in an organization: + +`npm org set {{organization_name}} {{username}} {{developer|admin|owner}}` + +- Remove a user from an organization: + +`npm org rm {{organization_name}} {{username}}` + +- List all users in an organization: + +`npm org ls {{organization_name}}` + +- List all users in an organization, output in JSON format: + +`npm org ls {{organization_name}} --json` + +- Display a user's role in an organization: + +`npm org ls {{organization_name}} {{username}}` diff --git a/tldr/rails-db b/tldr/rails-db index a787c9b0..662af480 100644 --- a/tldr/rails-db +++ b/tldr/rails-db @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # rails db > Various database-related subcommands for Ruby on Rails. -> More information: . +> More information: . - Create databases, load the schema, and initialize with seed data: diff --git a/tldr/terraform-fmt b/tldr/terraform-fmt index 41e03e34..723b50bf 100644 --- a/tldr/terraform-fmt +++ b/tldr/terraform-fmt @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # terraform fmt > Format configuration according to Terraform language style conventions. -> More information: . +> More information: . - Format the configuration in the current directory: