Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-21 00:23:35 +00:00
parent 11f02a6e11
commit 9017f8acda
64 changed files with 200 additions and 77 deletions

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> A collection of small system utilities in a single executable.
> Executing `busybox` via a symlink is equivalent to running `busybox symlink_name`.
> Linux distributions that use BusyBox will usually provide symlinks for all programs.
> More information: <https://www.busybox.net/downloads/BusyBox.html>.
> More information: <https://www.busybox.net/downloads/BusyBox>.
- Execute a BusyBox function:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Image printing in the terminal.
> See also: `catimg`, `pixterm`.
> More information: <https://hpjansson.org/chafa/man>.
> More information: <https://hpjansson.org/chafa/man/>.
- Render an image directly in the terminal:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Language server that provides IDE-like features to editors.
> It should be used via an editor plugin rather than invoked directly.
> More information: <https://manpages.ubuntu.com/manpages/man1/clangd.1.html>.
> More information: <https://manpages.ubuntu.com/manpages/man1/clangd.1>.
- Display available options:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage cert-manager resources inside your cluster.
> Check cert signing status, approve/deny requests, and issue new certificate requests.
> More information: <https://cert-manager.io/docs/usage/cmctl/>.
> More information: <https://cert-manager.io/docs/reference/cmctl/>.
- Check if the cert-manager API is ready:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# consul kv
> Distributed key-value store with health checking and service discovery.
> More information: <https://learn.hashicorp.com/consul/getting-started/kv>.
> More information: <https://developer.hashicorp.com/consul/docs/automate/kv/store>.
- Read a value from the key-value store:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Open an interactive session and run Cypher queries against a Neo4j instance.
> See also: `neo4j-admin`, `mysql`.
> More information: <https://neo4j.com/docs/operations-manual/current/tools/cypher-shell/>.
> More information: <https://neo4j.com/docs/operations-manual/current/cypher-shell/>.
- Connect to a local instance on the default port (`neo4j://localhost:7687`):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# exiv2
> Image metadata manipulation tool.
> More information: <https://www.exiv2.org/manpage.html>.
> More information: <https://exiv2.org/manpage.html>.
- Print a summary of the image Exif metadata:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# expose
> An open source tunnel application for sharing websites.
> More information: <https://beyondco.de/docs/expose>.
> More information: <http://expose.dev/docs/introduction>.
- Register your authentication token:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# fluxctl
> Tool for Flux v1.
> More information: <https://fluxcd.io/legacy/flux/references/fluxctl>.
> More information: <https://fluxcd.io/flux/migration/>.
- List workloads currently running in the cluster on specific namespace:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gdal2tiles.py
> Generate TMS or XYZ tiles for a raster dataset.
> More information: <https://gdal.org/programs/gdal2tiles.html>.
> More information: <https://gdal.org/en/stable/programs/gdal2tiles.html>.
- Generate TMS tiles for the zoom levels 2 to 5 of a raster dataset:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gdal_contour
> Create contour lines and polygons from a digital elevation model.
> More information: <https://gdal.org/programs/gdal_contour.html>.
> More information: <https://gdal.org/en/stable/programs/gdal_contour.html>.
- Create a vector dataset with contour lines spread over an 100-meter [i]nterval while [a]ttributing the elevation property as "ele":

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gdal_translate
> Convert raster data between different formats.
> More information: <https://gdal.org/programs/gdal_translate.html>.
> More information: <https://gdal.org/en/stable/programs/gdal_translate.html>.
- Convert a raster dataset to JPEG format:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gdaladdo
> Build overview images of raster datasets.
> More information: <https://gdal.org/programs/gdaladdo.html>.
> More information: <https://gdal.org/en/stable/programs/gdaladdo.html>.
- Build overview images of a raster dataset using the "average" [r]esampling method:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gdalbuildvrt
> Build Virtual Datasets from a list of existing datasets.
> More information: <https://gdal.org/programs/gdalbuildvrt.html>.
> More information: <https://gdal.org/en/stable/programs/gdalbuildvrt.html>.
- Make a virtual mosaic from all TIFF files contained in a directory:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gdaldem
> Analyze and visualize digital elevation models (DEM).
> More information: <https://gdal.org/programs/gdaldem.html>.
> More information: <https://gdal.org/en/stable/programs/gdaldem.html>.
- Compute the hillshade of a DEM:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gdalinfo
> List various information about a GDAL supported raster dataset.
> More information: <https://gdal.org/programs/gdalinfo.html>.
> More information: <https://gdal.org/en/stable/programs/gdalinfo.html>.
- List all supported raster formats:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gdalwarp
> Image reprojection and warping utility.
> More information: <https://gdal.org/programs/gdalwarp.html>.
> More information: <https://gdal.org/en/stable/programs/gdalwarp.html>.
- Reproject a raster dataset:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ghci
> The Glasgow Haskell Compiler's interactive environment.
> More information: <https://downloads.haskell.org/ghc/latest/docs/html/users_guide/ghci.html>.
> More information: <https://downloads.haskell.org/ghc/latest/docs/users_guide/ghci.html>.
- Start a REPL (interactive shell):

37
tldr/kubectl-set Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectl set
> Update fields of existing application resources.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_set/>.
- Update the image of a container in a deployment:
`kubectl set image {{[deploy|deployment]}}/{{deployment_name}} {{container_name}}={{image}}`
- Update the image of all containers in a deployment:
`kubectl set image {{[deploy|deployment]}}/{{deployment_name}} *={{image}}`
- Set resource limits (CPU and memory) on a deployment:
`kubectl set resources {{[deploy|deployment]}}/{{deployment_name}} --limits cpu={{cpu_limit}},memory={{memory_limit}}`
- Set an environment variable on a deployment:
`kubectl set env {{[deploy|deployment]}}/{{deployment_name}} {{variable_name}}={{value}}`
- Remove an environment variable from a deployment:
`kubectl set env {{[deploy|deployment]}}/{{deployment_name}} {{variable_name}}-`
- Import environment variables from a secret or ConfigMap:
`kubectl set env --from {{secret|configmap}}/{{resource_name}} {{[deploy|deployment]}}/{{deployment_name}}`
- Update the service account of a deployment:
`kubectl set {{[sa|serviceaccount]}} {{[deploy|deployment]}}/{{deployment_name}} {{service_account_name}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> An alias to a `run-mailcap`'s action edit.
> Originally `run-mailcap` is used to process/edit mime-type/file.
> More information: <https://www.computerhope.com/unix/uedit.htm>.
> More information: <https://www.computerhope.com/unix/uedit>.
- Edit action can be used to view any file on default mailcap explorer:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# screenkey
> A screencast tool to display keys pressed.
> More information: <https://www.thregr.org/~wavexx/software/screenkey/>.
> More information: <https://www.thregr.org/wavexx/software/screenkey/>.
- Display keys which are currently being pressed on the screen:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl add-requires
> Add `Requires` dependencies to a target for one or more units.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#add-wants%20TARGET%0A%20%20%20%20%20%20%20%20%20%20UNIT%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#add-wants%20TARGET%20UNIT%E2%80%A6>.
- Add a `Requires` dependency from a target to a unit:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl add-wants
> Add `Wants` dependencies to a target for one or more units.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#add-wants%20TARGET%0A%20%20%20%20%20%20%20%20%20%20UNIT%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#add-wants%20TARGET%20UNIT%E2%80%A6>.
- Add a `Wants` dependency from a target to a unit:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl bind
> Ephemerally bind-mount a file or directory from the host into a unit's mount namespace.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20bind%0A%20%20%20%20%20%20%20%20%20%20%20%20UNIT%0A%20%20%20%20%20%20%20%20%20%20%20%20PATH%0A%20%20%20%20%20%20%20%20%20%20%20%20%5BPATH%5D%0A%20%20%20%20%20%20%20%20%20%20>.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#bind%20UNIT%20PATH%20%5BPATH%5D>.
- Bind-mount a host path into the same location inside the unit:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Import environment variables from the shell into systemd's environment.
> See also: `systemctl show-environment`, `systemctl unset-environment`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20import-environment%0A%20%20%20%20%20%20%20%20%20%20%20%20VARIABLE%E2%80%A6%0A%20%20%20%20%20%20%20%20%20%20>.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#import-environment%20VARIABLE%E2%80%A6>.
- Import a variable:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Show a unit's dependency tree in systemd.
> See also: `systemctl list-units` to list loaded units.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20list-dependencies%0A%20%20%20%20%20%20%20%20%20%20%20%20UNIT...%0A%20%20%20%20%20%20%20%20%20%20>.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-dependencies%20UNIT%E2%80%A6>.
- Show the dependency tree of `default.target`:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Mount an image file into a unit's mount namespace.
> Only supported for the units that run within a mountspace ie, with `RootImage=`, `PrivateMounts=`, etc.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20mount-image%0A%20%20%20%20%20%20%20%20%20%20%20%20UNIT%0A%20%20%20%20%20%20%20%20%20%20%20%20IMAGE%0A%20%20%20%20%20%20%20%20%20%20%20%20%5BPATH%0A%20%20%20%20%20%20%20%20%20%20%20%20%5BPARTITION_NAME:MOUNT_OPTIONS%5D%5D%0A%20%20%20%20%20%20%20%20%20%20>.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#mount-image%20UNIT%20IMAGE%20%5BPATH%20%5BPARTITION_NAME:MOUNT_OPTIONS%5D%5D>.
- Mount an image at a specific path inside the unit's mount namespace:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# matlab
> Numerical computation environment by MathWorks.
> More information: <https://www.mathworks.com/help/matlab/matlab_env/startup-options.html>.
> More information: <https://www.mathworks.com/help/matlab/matlab_env/startup-options/>.
- Run without splash screen during startup:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mix
> Build tool that provides tasks for creating, compiling, and testing Elixir projects, managing its dependencies, and more.
> More information: <https://hexdocs.pm/mix>.
> More information: <https://hexdocs.pm/mix/index.html>.
- Execute a particular file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mp4box
> MPEG-4 Systems Toolbox: muxe streams into MP4 container.
> More information: <https://gpac.wp.imt.fr/mp4box>.
> More information: <https://github.com/gpac/gpac/wiki/Fragmentation,-segmentation,-splitting-and-interleaving>.
- Display information about an existing MP4 file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mpicc
> Open MPI C wrapper compiler.
> More information: <https://www.mpich.org/static/docs/latest/www1/mpicc.html>.
> More information: <https://www.mpich.org/static/docs/latest/www1/mpicc>.
- Compile a source code file into an object file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# multipass
> Manage Ubuntu virtual machines using native hypervisors.
> More information: <https://documentation.ubuntu.com/multipass/en/latest/reference/command-line-interface/>.
> More information: <https://documentation.ubuntu.com/multipass/latest/reference/command-line-interface/>.
- List the aliases that can be used to launch an instance:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nasm
> The Netwide Assembler, a portable 80x86 assembler.
> More information: <https://www.nasm.us/xdoc/3.01/html/nasmdoc2.html>.
> More information: <https://www.nasm.us/xdoc/3.01/html/nasm02.html>.
- Assemble `source.asm` into a binary file `source`, in the (default) raw binary format:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A music player client for the Music Player Daemon.
> See also: `mpd`, `mpc`, `qmmp`, `termusic`.
> More information: <https://rybczak.net/ncmpcpp>.
> More information: <https://rybczak.net:443/ncmpcpp/>.
- Connect to a music player daemon on a given host and port:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nix-env
> Manipulate or query Nix user environments.
> More information: <https://nixos.org/manual/nix/stable/#sec-nix-env>.
> More information: <https://nix.dev/manual/nix/stable/command-ref/nix-env.html>.
- List all installed packages:

View File

@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
`nix store optimise`
- Delete a specific store path (most be unused):
- Delete a specific store path (must be unused):
`nix store delete /nix/store/{{checksum-package-version.ext}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nomad
> Distributed, highly available, datacenter-aware scheduler.
> More information: <https://www.nomadproject.io/docs/commands/>.
> More information: <https://developer.hashicorp.com/nomad/commands>.
- Show the status of nodes in the cluster:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ogr2ogr
> Convert geospatial vector data between file formats.
> More information: <https://gdal.org/programs/ogr2ogr.html>.
> More information: <https://gdal.org/en/stable/programs/ogr2ogr.html>.
- Convert a Shapefile into a GeoPackage:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ogrinfo
> List information about an OGR-supported data source.
> More information: <https://gdal.org/programs/ogrinfo.html>.
> More information: <https://gdal.org/en/stable/programs/ogrinfo.html>.
- List supported formats:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ogrmerge.py
> Merge several vector datasets into a single one.
> More information: <https://gdal.org/programs/ogrmerge.html>.
> More information: <https://gdal.org/en/stable/programs/ogrmerge.html>.
- Create a GeoPackage with a layer for each input Shapefile:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# setfile
> Set file attributes on files in an HFS+ directory.
> More information: <https://ss64.com/osx/setfile.html>.
> More information: <https://ss64.com/mac/setfile.html>.
- Set creation date for specific files:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# piactl
> The tool for Private Internet Access, a commercial VPN provider.
> More information: <https://helpdesk.privateinternetaccess.com/kb/articles/pia-desktop-command-line-interface-part-1>.
> More information: <https://helpdesk.privateinternetaccess.com/kb/articles/pia-desktop-command-line-interface-2>.
- Log in to Private Internet Access:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pie
> The PHP Installer for Extensions.
> More information: <https://github.com/php/pie/blob/main/docs/usage.md>.
> More information: <https://github.com/php/pie/blob/1.4.x/docs/usage.md>.
- Install or update an extension:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Control `polybar` using inter-process-messaging (IPC).
> Note: IPC is disabled by default and can be enabled by setting `enable-ipc = true` in the Polybar config.
> More information: <https://polybar.rtfd.io/en/stable/user/ipc.html>.
> More information: <https://polybar.readthedocs.io/en/stable/user/ipc.html>.
- Quit the bar:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# qdbus
> Inter-Process Communication (IPC) and Remote Procedure Calling (RPC) mechanism originally developed for Linux.
> More information: <https://doc.qt.io/qt-5/qtdbus-index.html>.
> More information: <https://doc.qt.io/archives/qt-5.15/qtdbus-index.html>.
- List available service names:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Diagnose, monitor, and run health checks on RabbitMQ nodes.
> Many subcommands are delegated to `rabbitmqctl`.
> More information: <https://www.rabbitmq.com/docs/man/rabbitmq-diagnostics.8.html>.
> More information: <https://www.rabbitmq.com/docs/man/rabbitmq-diagnostics.8>.
- List resource alarms:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rabbitmq-plugins
> Manage RabbitMQ plugins.
> More information: <https://www.rabbitmq.com/docs/man/rabbitmq-plugins.8.html>.
> More information: <https://www.rabbitmq.com/docs/man/rabbitmq-plugins.8>.
- List plugins:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rabbitmq-queues
> Manage RabbitMQ queues.
> More information: <https://www.rabbitmq.com/docs/man/rabbitmq-queues.8.html>.
> More information: <https://www.rabbitmq.com/docs/man/rabbitmq-queues.8>.
- Grow quorum queue clusters by adding a member on the specified node:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rabbitmq-streams
> Manage RabbitMQ streams.
> More information: <https://www.rabbitmq.com/docs/man/rabbitmq-streams.8.html>.
> More information: <https://www.rabbitmq.com/docs/man/rabbitmq-streams.8>.
- Add a stream replica on the specified node:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rabbitmq-upgrade
> Manage the upgrade of a RabbitMQ node.
> More information: <https://www.rabbitmq.com/docs/man/rabbitmq-upgrade.8.html>.
> More information: <https://www.rabbitmq.com/docs/man/rabbitmq-upgrade.8>.
- Wait for all quorum queues to have an above minimum online quorum:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# redis-cli
> Open a connection to a Redis server.
> More information: <https://redis.io/topics/rediscli>.
> More information: <https://redis.io/docs/latest/develop/>.
- Connect to the local server:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# runit
> 3-stage init system.
> More information: <https://smarden.org/runit/runit.8.html>.
> More information: <https://smarden.org/runit/runit.8>.
- Start runit's 3-stage init scheme:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sbcl
> High performance Common Lisp compiler.
> More information: <https://www.sbcl.org/manual/index.html#Command-Line-Options>.
> More information: <https://www.sbcl.org/manual/#Command-Line-Options>.
- Start a REPL (interactive shell):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sonar-scanner
> A generic scanner for SonarQube projects that do not use build tools such as Maven, Gradle, or Ant.
> More information: <https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/>.
> More information: <https://docs.sonarsource.com/sonarqube-server/analyzing-source-code/scanners/sonarscanner>.
- Scan a project with configuration file in your project's root directory named `sonar-project.properties`:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Interact with Talos Linux, a minimal and immutable Kubernetes distribution.
> See also: `kubectl`.
> More information: <https://www.talos.dev/latest/reference/cli/>.
> More information: <https://docs.siderolabs.com/talos/v1.11/reference/cli>.
- Apply a config to a fresh node:

33
tldr/treemd Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# treemd
> View markdown files with tree-based navigation and an interactive TUI.
> More information: <https://github.com/Epistates/treemd#usage>.
- Open a markdown file in interactive TUI mode:
`treemd {{path/to/file.md}}`
- List all headings in a markdown file:
`treemd {{[-l|--list]}} {{path/to/file.md}}`
- Show the heading tree structure of a markdown file:
`treemd --tree {{path/to/file.md}}`
- Extract a specific section by heading name:
`treemd {{[-s|--section]}} {{heading_name}} {{path/to/file.md}}`
- Filter headings by a specific pattern:
`treemd {{[-l|--list]}} --filter {{pattern}} {{path/to/file.md}}`
- Query and extract markdown structure using the treemd query language:
`treemd {{[-q|--query]}} '{{.h2 | text}}' {{path/to/file.md}}`

View File

@@ -5,25 +5,12 @@ source: https://github.com/tldr-pages/tldr.git
---
# trunk
> Bundle and serve Rust web apps with CI/CD pipelines.
> More information: <https://docs.trunk.io/code-quality/overview>.
> `trunk` can refer to multiple commands with the same name.
- Start local/production server with hot reloading:
- View documentation for the Rust WASM bundler:
`trunk serve --port {{port}} --release --proxy-backend {{URL}}`
`tldr trunk.rs`
- Build for production at root or subdirectory:
- View documentation for the trunk.io code quality platform:
`trunk build --release --dist {{path/to/distribution}} --public-url /{{path/to/app_subdirectory}}`
- List all available tools in the repo and if they are enabled:
`trunk tools list`
- Enable/disable a tool at a specific version:
`trunk tools {{enable|disable}} {{tool}}@{{version}}`
- Print an action's execution history:
`trunk actions history {{action}}`
`tldr trunk.io`

37
tldr/trunk.io Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# trunk
> Run linters, formatters, and security analyzers on code.
> More information: <https://docs.trunk.io/code-quality/overview/getting-started/commands-reference>.
- Initialize trunk in a repository:
`trunk init`
- Run all applicable linters and formatters on changed files:
`trunk check`
- Run linters and formatters on specific files:
`trunk check {{path/to/file1 path/to/file2 ...}}`
- Format files in place:
`trunk fmt`
- List all available tools and their status:
`trunk tools list`
- Enable a tool at a specific version:
`trunk tools enable {{tool}}@{{version}}`
- Print an action's execution history:
`trunk actions history {{action}}`

29
tldr/trunk.rs Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# trunk
> Bundle and serve Rust WASM web applications.
> More information: <https://trunkrs.dev/commands/>.
- Build the application in release mode and serve it locally:
`trunk serve --release`
- Build the application and serve it on a specific port:
`trunk serve {{[-p|--port]}} {{port}}`
- Build for production at a specific output directory:
`trunk build --release {{[-d|--dist]}} {{path/to/distribution}}`
- Build with a specific public URL path for hosting in a subdirectory:
`trunk build --release --public-url /{{path/to/app_subdirectory}}`
- Clean the output directory:
`trunk clean`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> High-performance build system for JavaScript and TypeScript codebases.
> See also: `nx`.
> More information: <https://turborepo.org/docs/reference/command-line-reference>.
> More information: <https://turborepo.com/docs/reference>.
- Log in using the default web browser with a Vercel account:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# varnishlog
> Display Varnish logs.
> More information: <https://varnish-cache.org/docs/trunk/reference/varnishlog.html>.
> More information: <https://vinyl-cache.org/docs/trunk/reference/varnishlog.html>.
- Display logs in real time:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# xidel
> Download and extract data from HTML/XML pages as well as JSON APIs.
> More information: <https://www.videlibri.de/xidel.html>.
> More information: <https://www.videlibri.de/xidel/>.
- Print all URLs found by a Google search:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Create, automate, and manage zapier integrations.
> Some subcommands such as `build`, `init`, `scaffold`, `push`, `test`, etc. have their own usage documentation.
> More information: <https://platform.zapier.com/reference/cli>.
> More information: <https://github.com/zapier/zapier-platform/blob/main/packages/cli/docs/cli.md>.
- Connect to a Zapier account:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# zmv
> Move or rename files matching a specified extended glob pattern.
> More information: <https://zsh.sourceforge.net/Doc/Release/User-Contributions.html>.
> More information: <https://zsh.sourceforge.io/Doc/Release/User-Contributions.html>.
- Move files using a `regex`-like pattern: