mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 18:46:12 +00:00
Update cheatsheets
This commit is contained in:
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Reload all `udev` rules:
|
||||
|
||||
`sudo udevadm control --reload-rules`
|
||||
`sudo udevadm control --reload`
|
||||
|
||||
- Trigger all `udev` rules to run:
|
||||
|
||||
|
||||
12
tldr/protoc
12
tldr/protoc
@@ -19,3 +19,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Generate code for multiple languages:
|
||||
|
||||
`protoc --csharp_out={{path/to/c#_output_directory}} --js_out={{path/to/js_output_directory}} {{input_file.proto}}`
|
||||
|
||||
- Encode a text-format message into a protocol message from a `.proto` file:
|
||||
|
||||
`protoc --encode={{TypeName}} {{input_file.proto}} < {{message.txt}}`
|
||||
|
||||
- Decode a protocol message into text-format from a `.proto` file:
|
||||
|
||||
`protoc --decode={{TypeName}} {{input_file.proto}} < {{message.bin}}`
|
||||
|
||||
- Decode a protocol message into raw tag/value pairs:
|
||||
|
||||
`protoc --decode_raw < {{message.bin}}`
|
||||
|
||||
29
tldr/pulumi-state
Normal file
29
tldr/pulumi-state
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pulumi state
|
||||
|
||||
> Edit the current stack's state.
|
||||
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_state/>.
|
||||
|
||||
- Delete a resource from the current stack's state:
|
||||
|
||||
`pulumi state delete`
|
||||
|
||||
- Move a resource from the current stack to another:
|
||||
|
||||
`pulumi state move {{resource_urn}} --dest {{stack_name}}`
|
||||
|
||||
- Rename a resource in the current stack's state:
|
||||
|
||||
`pulumi state rename`
|
||||
|
||||
- Repair an invalid state:
|
||||
|
||||
`pulumi state repair`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pulumi state --help`
|
||||
Reference in New Issue
Block a user