Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-14 00:19:04 +00:00
parent 1111290472
commit 220486abce
43 changed files with 289 additions and 47 deletions

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a virtual network:
`az network vnet create --address-prefixes {{10.0.0.0/16}} {{[-n|--name]}} {{vnet}} {{[-g|--resource-group]}} {{group_name}} --submet-name {{subnet}} --subnet-prefixes {{10.0.0.0/24}}`
`az network vnet create --address-prefixes {{10.0.0.0/16}} {{[-n|--name]}} {{vnet}} {{[-g|--resource-group]}} {{group_name}} --subnet-name {{subnet}} --subnet-prefixes {{10.0.0.0/24}}`
- Enable accelerated networking for a network interface card:

12
tldr/gh-a11y Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gh a11y
> This command is an alias of `gh accessibility`.
- View documentation for the original command:
`tldr gh accessibility`

13
tldr/gh-accessibility Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gh accessibility
> Learn about GitHub CLI's accessibility experiences.
> More information: <https://cli.github.com/manual/>.
- Open the GitHub Accessibility site in your browser:
`gh {{[a11y|accessibility]}} {{[-w|--web]}}`

25
tldr/gh-pr-checks Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gh pr checks
> View CI checks for a GitHub pull request.
> More information: <https://cli.github.com/manual/gh_pr_checks>.
- Show checks for the pull request of the current branch:
`gh pr checks`
- Show checks for a specific pull request:
`gh pr checks {{pr_number}}`
- Watch checks and update in real time until completion:
`gh pr checks {{pr_number}} --watch`
- Show only required checks:
`gh pr checks {{pr_number}} --required`

View File

@@ -5,33 +5,29 @@ source: https://github.com/tldr-pages/tldr.git
---
# gh pr merge
> Merge GitHub pull requests.
> Merge a GitHub pull request.
> More information: <https://cli.github.com/manual/gh_pr_merge>.
- Merge the pull request associated with the current branch interactively:
`gh pr merge`
- Merge the specified pull request, interactively:
- Merge the current branch into the specified pull request:
`gh pr merge {{pr_number}}`
`gh pr merge {{pr_number}} {{[-m|--merge]}}`
- Merge the pull request, removing the branch on both the local and the remote:
- Squash and merge a pull request, then delete the branch:
`gh pr merge {{[-d|--delete-branch]}}`
`gh pr merge {{pr_number}} {{[-sd|--squash --delete-branch]}}`
- Merge the current pull request with the specified merge strategy:
- Rebase and merge:
`gh pr merge --{{merge|squash|rebase}}`
`gh pr merge {{pr_number}} {{[-r|--rebase]}}`
- Merge the current pull request with the specified merge strategy and commit message:
- Enable auto-merge (squash):
`gh pr merge --{{merge|squash|rebase}} {{[-t|--subject]}} {{commit_message}}`
`gh pr merge {{pr_number}} --auto {{[-s|--squash]}}`
- Squash the current pull request into one commit with the message body and merge:
- Merge with admin privileges (if allowed):
`gh pr merge {{[-s|--squash]}} {{[-b|--body]}} "{{commit_message_body}}"`
- Display help:
`gh pr merge {{[-h|--help]}}`
`gh pr merge {{pr_number}} --admin`

View File

@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# kdash
> A simple terminal dashboard for Kubernetes.
> Mode information: <https://github.com/kdash-rs/kdash/#usage>.
> A simple dashboard for Kubernetes.
> More information: <https://github.com/kdash-rs/kdash/#usage>.
- Show dashboard:

41
tldr/kubectl-debug Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectl debug
> Debug cluster resources using interactive debugging containers.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_debug>.
- Create an interactive debugging session in a pod and immediately attach to it:
`kubectl debug {{pod_name}} {{[-it|--stdin --tty]}} --image busybox`
- Create a debug container with a custom image and name:
`kubectl debug --image {{image}} {{[-c|--container]}} {{container_name}} {{pod_name}}`
- Create an interactive debugging session on a node and immediately attach to it (the container will run in the host namespaces and the host's filesystem will be mounted at `/host`):
`kubectl debug node/{{node_name}} {{[-it|--stdin --tty]}} --image busybox`
- Create a copy of a pod and add a debug container to it:
`kubectl debug {{pod_name}} {{[-it|--stdin --tty]}} --image {{image}} --copy-to {{pod_copy_name}}`
- Create a copy of a pod and change the command of a specific container:
`kubectl debug {{pod_name}} {{[-it|--stdin --tty]}} --copy-to {{pod_copy_name}} --container {{container_name}} -- {{command}}`
- Create a copy of a pod and change the image of a specific container:
`kubectl debug {{pod_name}} --copy-to {{pod_copy_name}} --set-image {{container_name}}={{image}}`
- Create a copy of a pod and change all container images:
`kubectl debug {{pod_name}} --copy-to {{pod_copy_name}} --set-image '*={{image}}'`
- Create an ephemeral debug container and target a specific container (useful for debugging distroless containers):
`kubectl debug {{pod_name}} {{[-it|--stdin --tty]}} --image {{image}} --target {{target_container_name}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bootctl
> Control EFI firmware boot settings and manage boot loader.
> More information: <https://manned.org/bootctl>.
> More information: <https://www.freedesktop.org/software/systemd/man/bootctl.html>.
- Show information about the system firmware and the bootloaders:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# homectl
> Create, remove, change or inspect home directories using the systemd-homed service.
> More information: <https://manned.org/homectl>.
> More information: <https://www.freedesktop.org/software/systemd/man/homectl.html>.
- List user accounts and their associated home directories:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hostnamectl
> Get or set the hostname of the computer.
> More information: <https://manned.org/hostnamectl>.
> More information: <https://www.freedesktop.org/software/systemd/man/hostnamectl.html>.
- Get the hostname of the computer:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# importctl
> Download, Import, or Export disk images.
> More information: <https://manned.org/importctl>.
> More information: <https://www.freedesktop.org/software/systemd/man/importctl.html>.
- Download image in tarball format from a url via pull:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# journalctl
> Query the systemd journal.
> More information: <https://manned.org/journalctl>.
> More information: <https://www.freedesktop.org/software/systemd/man/journalctl.html>.
- Show all messages with priority level 3 (errors) from this boot:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kernel-install
> Add and remove kernel and initrd images to and from `/boot`.
> More information: <https://manned.org/kernel-install.8>.
> More information: <https://www.freedesktop.org/software/systemd/man/kernel-install.html>.
- Add kernel and initramfs images to bootloader partition:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl default
> Enter system default mode.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#default>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#default>.
- Enter default mode as a blocking operation:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl get-default
> Display the default target (runlevel) that the system will boot into.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#get-default>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#get-default>.
- Check the default target on your system:

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl hibernate
> Hibernate the system by saving the current state to disk and powering off.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#hibernate>.
- Hibernate the system immediately:
`systemctl hibernate`
- Force hibernation even if inhibitors are present:
`systemctl hibernate --force`
- Hibernate the system without sending a message to logged-in users:
`systemctl hibernate --no-wall`

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl hybrid-sleep
> Put the system into hybrid sleep, which combines suspend-to-RAM and hibernate.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#hybrid-sleep>.
- Put the system into hybrid sleep immediately:
`systemctl hybrid-sleep`
- Force hybrid sleep even if inhibitors are present:
`systemctl hybrid-sleep --force`
- Put the system into hybrid sleep without sending a wall message to logged-in users:
`systemctl hybrid-sleep --no-wall`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl is-active
> Check if one or more systemd units are active.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#is-active%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#is-active%20PATTERN%E2%80%A6>.
- Check whether a unit is active:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Check whether unit files are enabled.
> See also: `systemctl enable`, `systemctl disable`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#is-enabled%20UNIT%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#is-enabled%20UNIT%E2%80%A6>.
- Show the enablement state:

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl is-system-running
> Check the current state of the system.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#is-system-running>.
- Check whether the system is operational and print the current state:
`systemctl is-system-running`
- Check and print the current state quietly (no output, only exit status):
`systemctl is-system-running --quiet`
- Wait until the boot process is completed before printing the current state:
`systemctl is-system-running --wait`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> List automount units currently in memory, showing mount paths and unit names.
> See also: `systemctl list-units`, `systemctl list-unit-files`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-automounts%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-automounts%20PATTERN%E2%80%A6>.
- List automount units currently in memory:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl list-jobs
> List of active systemd jobs that are currently queued or running on the system.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-jobs%20PATTERN…>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-jobs%20PATTERN…>.
- List all active jobs:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> List installed unit files and their enablement states.
> See also: `systemctl list-units` for listing units currently loaded in memory.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-unit-files%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-unit-files%20PATTERN%E2%80%A6>.
- List installed unit files and their states:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> List units that systemd currently has in memory.
> See also: `systemctl list-unit-files` for listing installed unit files.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-units%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-units%20PATTERN%E2%80%A6>.
- List units which are active, have pending jobs, or have failed:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Reset the enablement state of unit files to the defaults specified in preset policy files.
> See also: `systemctl preset-all`, `systemctl list-unit-files`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#preset%20UNIT%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#preset%20UNIT%E2%80%A6>.
- Reset the enablement state to preset defaults:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Reset the enablement state of all installed units to the defaults specified in preset policy files.
> See also: `systemctl preset`, `systemctl list-unit-files`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#preset-all>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#preset-all>.
- Reset the enablement state of all installed units:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl set-environment
> Set one or more service manager environment variables.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#set-environment%20VARIABLE=VALUE%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#set-environment%20VARIABLE=VALUE%E2%80%A6>.
- Set a single environment variable:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl show-environment
> Display systemd environment blocks.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#show-environment>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#show-environment>.
- Display the environment block for the system:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl soft-reboot
> Shut down and reboot userspace, leaving the kernel running.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#soft-reboot>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#soft-reboot>.
- Perform a soft reboot immediately:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl suspend-then-hibernate
> Suspend the system, then automatically hibernate after a period of inactivity.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#suspend-then-hibernate>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#suspend-then-hibernate>.
- Suspend the system and hibernate after the configured delay:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl switch-root
> Switch to a new root filesystem and execute a new system manager.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#switch-root%20ROOT%20INIT>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#switch-root%20ROOT%20INIT>.
- Switch to a new root filesystem and execute its default init system:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl try-reload-or-restart
> Reload one or more units if they support it; otherwise restart them.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#try-reload-or-restart%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#try-reload-or-restart%20PATTERN%E2%80%A6>.
- Reload or restart a specific unit:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl try-restart
> Restart one or more units only if they are currently running.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#try-restart%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#try-restart%20PATTERN%E2%80%A6>.
- Restart a specific unit if it is running:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Unset one or more service manager environment variables.
> This undoes the effect of `systemctl set-environment`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#unset-environment%20VARIABLE%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#unset-environment%20VARIABLE%E2%80%A6>.
- Unset a single environment variable:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# timedatectl
> Control the system time and date.
> More information: <https://manned.org/timedatectl>.
> More information: <https://www.freedesktop.org/software/systemd/man/timedatectl.html>.
- Check the current system clock time:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# npm completion
> Enable or set up tab-completion for npm commands.
> More information: <https://docs.npmjs.com/cli/commands/npm-completion>.
> More information: <https://docs.npmjs.com/cli/npm-completion>.
- Enable tab-completion for the current shell session:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Compare package versions from the `npm` registry and show differences.
> Similar to `git diff`.
> More information: <https://docs.npmjs.com/cli/commands/npm-diff>.
> More information: <https://docs.npmjs.com/cli/npm-diff>.
- Compare two specific package versions:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# npm dist-tag
> Manage distribution tags on packages.
> More information: <https://docs.npmjs.com/cli/commands/npm-dist-tag>.
> More information: <https://docs.npmjs.com/cli/npm-dist-tag>.
- List all distribution tags for a package:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Select a dependency in the current project and open the package folder in the default editor (`$EDITOR`).
> After editing, the package is rebuilt to pick up any changes in compiled packages.
> More information: <https://docs.npmjs.com/cli/commands/npm-edit>.
> More information: <https://docs.npmjs.com/cli/npm-edit>.
- Edit a locally installed package in the default editor:

17
tldr/npm-prefix Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm prefix
> Print the local or global prefix to `stdout`.
> More information: <https://docs.npmjs.com/cli/npm-prefix>.
- Print the local prefix:
`npm prefix`
- Print the global prefix:
`npm prefix {{[-g|--global]}}`

21
tldr/zapier-test Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# zapier test
> Test a Zapier integration via the `test` script in your `package.json`.
> More information: <https://github.com/zapier/zapier-platform/blob/main/packages/cli/docs/cli.md#test>.
- Test an integration:
`zapier test`
- Test an integration while skipping validation:
`zapier test --skip-validate`
- Test an integration with additional debug output:
`zapier test {{[-d|--debug]}}`

29
tldr/zapier-validate Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# zapier validate
> Validate a Zapier integration.
> More information: <https://github.com/zapier/zapier-platform/blob/main/packages/cli/docs/cli.md#validate>.
- Validate an integration:
`zapier validate`
- Validate an integration without style checks:
`zapier validate --without-style`
- Validate an integration without running the build script:
`zapier validate --skip-build`
- Validate an integration with additional debug output:
`zapier validate {{[-d|--debug]}}`
- Validate an integration with a different output structure:
`zapier validate {{[-f|--format]}} {{plain|json|raw|row|table}}`

25
tldr/zapier-versions Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# zapier versions
> List the versions for a Zapier integration.
> More information: <https://github.com/zapier/zapier-platform/blob/main/packages/cli/docs/cli.md#validate>.
- List the versions for an integration:
`zapier versions`
- Include deprecated versions:
`zapier versions {{[-a|--all]}}`
- Display additional debug output:
`zapier versions {{[-d|--debug]}}`
- List the versions with a different output structure:
`zapier versions {{[-f|--format]}} {{plain|json|raw|row|table}}`