mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 20:57:20 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/grype
Normal file
41
tldr/grype
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# grype
|
||||
|
||||
> Vulnerability scanner for container images and filesystems.
|
||||
> More information: <https://oss.anchore.com/docs/reference/grype/cli>.
|
||||
|
||||
- Scan a container image:
|
||||
|
||||
`grype {{image:tag}}`
|
||||
|
||||
- Scan an image and display results in a specific format:
|
||||
|
||||
`grype {{image:tag}} {{[-o|--output]}} {{json|table|cyclonedx|cyclonedx-json|sarif|template}}`
|
||||
|
||||
- Scan an image, ignoring unfixed vulnerabilities:
|
||||
|
||||
`grype {{image:tag}} --only-fixed`
|
||||
|
||||
- Scan an image and fail on vulnerabilities with a severity at or above the given level:
|
||||
|
||||
`grype {{image:tag}} {{[-f|--fail-on]}} {{negligible|low|medium|high|critical}}`
|
||||
|
||||
- Scan a local directory and save the report to a file:
|
||||
|
||||
`grype {{path/to/directory}} --file {{path/to/report}}`
|
||||
|
||||
- Update the vulnerability database:
|
||||
|
||||
`grype db update`
|
||||
|
||||
- Display the current database status:
|
||||
|
||||
`grype db status`
|
||||
|
||||
- Display help:
|
||||
|
||||
`grype {{[-h|--help]}}`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# apt-file
|
||||
|
||||
> Search for files in `apt` packages, including ones not yet installed.
|
||||
> More information: <https://manned.org/apt-file.1>.
|
||||
> More information: <https://manned.org/apt-file>.
|
||||
|
||||
- Update the metadata database:
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Search for packages that contain the specified file or path:
|
||||
|
||||
`apt-file {{search|find}} {{path/to/file}}`
|
||||
`apt-file {{[find|search]}} {{path/to/file}}`
|
||||
|
||||
- List the contents of a specific package:
|
||||
|
||||
`apt-file {{show|list}} {{package}}`
|
||||
`apt-file list {{package}}`
|
||||
|
||||
- Search for packages that match the `regex`:
|
||||
|
||||
`apt-file {{search|find}} {{[-x|--regexp]}} {{regex}}`
|
||||
`apt-file {{[find|search]}} {{[-x|--regexp]}} {{regex}}`
|
||||
|
||||
25
tldr/ohdear
Normal file
25
tldr/ohdear
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ohdear
|
||||
|
||||
> The official Oh Dear CLI.
|
||||
> More information: <https://ohdear.app/docs/tools-and-sdks/our-cli-tool#available-commands>.
|
||||
|
||||
- Display details about the currently authenticated user:
|
||||
|
||||
`ohdear get-me`
|
||||
|
||||
- Add a new monitor to Oh Dear:
|
||||
|
||||
`ohdear create-monitor --field "team_id={{team_id}}" --field "type={{http|ping|tcp}}" --field "url={{url}}"`
|
||||
|
||||
- Display a list of monitors and their current status:
|
||||
|
||||
`ohdear list-monitors`
|
||||
|
||||
- Display details about a specific monitor:
|
||||
|
||||
`ohdear get-monitor --monitor-id {{monitor_id}}`
|
||||
@@ -5,21 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ohdear-cli
|
||||
|
||||
> An unofficial Oh Dear CLI written with Laravel Zero.
|
||||
> More information: <https://github.com/ohdearapp/ohdear-cli>.
|
||||
> This command has been renamed to `ohdear`.
|
||||
> More information: <https://ohdear.app/docs/tools-and-sdks/our-cli-tool#available-commands>.
|
||||
|
||||
- Display details about the currently authenticated user:
|
||||
- View documentation for the command under its current name:
|
||||
|
||||
`ohdear-cli me`
|
||||
|
||||
- Add a new site to Oh Dear:
|
||||
|
||||
`ohdear-cli sites:add {{url}}`
|
||||
|
||||
- Display a list of sites and their current status:
|
||||
|
||||
`ohdear-cli sites:list`
|
||||
|
||||
- Display details about a specific site:
|
||||
|
||||
`ohdear-cli sites:show {{site_id}}`
|
||||
`tldr ohdear`
|
||||
|
||||
Reference in New Issue
Block a user