Update cheatsheets

This commit is contained in:
ivuorinen
2024-11-05 00:17:11 +00:00
parent f0c47a27eb
commit 381f17fa3a
4 changed files with 36 additions and 3 deletions

View File

@@ -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:

33
tldr/npm-org Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm-org
> Manage organizations.
> More information: <https://docs.npmjs.com/cli/commands/npm-org>.
- 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}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rails db
> Various database-related subcommands for Ruby on Rails.
> More information: <https://guides.rubyonrails.org/command_line.html>.
> More information: <https://guides.rubyonrails.org/active_record_migrations.html>.
- Create databases, load the schema, and initialize with seed data:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# terraform fmt
> Format configuration according to Terraform language style conventions.
> More information: <https://www.terraform.io/docs/commands/fmt.html>.
> More information: <https://developer.hashicorp.com/terraform/cli/commands/fmt>.
- Format the configuration in the current directory: