mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 10:43:53 +00:00
Update cheatsheets
This commit is contained in:
@@ -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
33
tldr/npm-org
Normal 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}}`
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user