mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 23:51:51 +00:00
Update cheatsheets
This commit is contained in:
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> The Chocolatey package manager.
|
||||
> Some subcommands such as `install` have their own usage documentation.
|
||||
> More information: <https://chocolatey.org>.
|
||||
> More information: <https://docs.chocolatey.org/en-us/choco/commands/>.
|
||||
|
||||
- Execute a Chocolatey command:
|
||||
|
||||
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`choco -?`
|
||||
`choco {{[-h|--help]}}`
|
||||
|
||||
- Display help for a specific command:
|
||||
|
||||
`choco {{command}} -?`
|
||||
`choco {{command}} {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display a specific source and its API key:
|
||||
|
||||
`choco apikey --source "{{source_url}}"`
|
||||
`choco apikey {{[-s|--source]}} "{{source_url}}"`
|
||||
|
||||
- Set an API key for a source:
|
||||
|
||||
`choco apikey --source "{{source_url}}" --key "{{api_key}}"`
|
||||
`choco apikey {{[-s|--source]}} "{{source_url}}" {{[-k|--api-key]}} "{{api_key}}"`
|
||||
|
||||
- Remove an API key for a source:
|
||||
|
||||
`choco apikey --source "{{source_url}}" --remove`
|
||||
`choco apikey {{[-s|--source]}} "{{source_url}}" --remove`
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display information for a local package only:
|
||||
|
||||
`choco info {{package}} --local-only`
|
||||
`choco info {{package}} {{[-l|--local-only]}}`
|
||||
|
||||
- Specify a custom source to receive packages information from:
|
||||
|
||||
`choco info {{package}} --source {{source_url|alias}}`
|
||||
`choco info {{package}} {{[-s|--source]}} {{source_url|alias}}`
|
||||
|
||||
- Provide a username and password for authentication:
|
||||
|
||||
`choco info {{package}} --user {{username}} --password {{password}}`
|
||||
`choco info {{package}} {{[-u|--user]}} {{username}} {{[-p|--password]}} {{password}}`
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display a list including local programs:
|
||||
|
||||
`choco list --include-programs`
|
||||
`choco list {{[-i|--include-programs]}}`
|
||||
|
||||
- Display only approved packages:
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Specify a custom source to display packages from:
|
||||
|
||||
`choco list --source {{source_url|alias}}`
|
||||
`choco list {{[-s|--source]}} {{source_url|alias}}`
|
||||
|
||||
- Provide a username and password for authentication:
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new package in a custom output directory:
|
||||
|
||||
`choco new {{package}} --output-directory {{path/to/directory}}`
|
||||
`choco new {{package}} {{[--out|--output-directory]}} {{path/to/directory}}`
|
||||
|
||||
- Create a new package with specific 32-bit and 64-bit installer URLs:
|
||||
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Package a NuGet specification to a specific directory:
|
||||
|
||||
`choco pack {{path o\specification_file}} --output-directory {{path o\output_directory}}`
|
||||
`choco pack {{path o\specification_file}} {{[--out|--output-directory]}} {{path o\output_directory}}`
|
||||
|
||||
@@ -15,12 +15,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Pin a package at its current version:
|
||||
|
||||
`choco pin add --name {{package}}`
|
||||
`choco pin add {{[-n|--name]}} {{package}}`
|
||||
|
||||
- Pin a package at a specific version:
|
||||
|
||||
`choco pin add --name {{package}} --version {{version}}`
|
||||
`choco pin add {{[-n|--name]}} {{package}} --version {{version}}`
|
||||
|
||||
- Remove a pin for a specific package:
|
||||
|
||||
`choco pin remove --name {{package}}`
|
||||
`choco pin remove {{[-n|--name]}} {{package}}`
|
||||
|
||||
@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Push a compiled `nupkg` to the specified feed:
|
||||
|
||||
`choco push --source {{https://push.chocolatey.org/}}`
|
||||
`choco push {{[-s|--source]}} {{https://push.chocolatey.org/}}`
|
||||
|
||||
- Push a compiled `nupkg` to the specified feed with a timeout in seconds (default is 2700):
|
||||
|
||||
`choco push --source {{https://push.chocolatey.org/}} --execution-timeout {{500}}`
|
||||
`choco push {{[-s|--source]}} {{https://push.chocolatey.org/}} {{[--timeout|--execution-timeout]}} {{500}}`
|
||||
|
||||
@@ -18,16 +18,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Only include exact matches in the results:
|
||||
|
||||
`choco search {{query}} --exact`
|
||||
`choco search {{query}} {{[-e|--exact]}}`
|
||||
|
||||
- Confirm all prompts automatically:
|
||||
|
||||
`choco search {{query}} --yes`
|
||||
`choco search {{query}} {{[-y|--yes]}}`
|
||||
|
||||
- Specify a custom source to search for packages in:
|
||||
|
||||
`choco search {{query}} --source {{source_url|alias}}`
|
||||
`choco search {{query}} {{[-s|--source]}} {{source_url|alias}}`
|
||||
|
||||
- Provide a username and password for authentication:
|
||||
|
||||
`choco search {{query}} --user {{username}} --password {{password}}`
|
||||
`choco search {{query}} {{[-u|--user]}} {{username}} {{[-p|--password]}} {{password}}`
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add a new package source:
|
||||
|
||||
`choco source add --name {{name}} --source {{url}}`
|
||||
`choco source add {{[-n|--name]}} {{name}} {{[-s|--source]}} {{url}}`
|
||||
|
||||
- Add a new package source with credentials:
|
||||
|
||||
`choco source add --name {{name}} --source {{url}} --user {{username}} --password {{password}}`
|
||||
`choco source add {{[-n|--name]}} {{name}} {{[-s|--source]}} {{url}} {{[-u|--user]}} {{username}} {{[-p|--password]}} {{password}}`
|
||||
|
||||
- Add a new package source with a client certificate:
|
||||
|
||||
`choco source add --name {{name}} --source {{url}} --cert {{path o
|
||||
`choco source add {{[-n|--name]}} {{name}} {{[-s|--source]}} {{url}} --cert {{path o
|
||||
Reference in New Issue
Block a user