diff --git a/tldr/grype b/tldr/grype new file mode 100644 index 00000000..bf8fd6d9 --- /dev/null +++ b/tldr/grype @@ -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: . + +- 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]}}` diff --git a/tldr/linux/apt-file b/tldr/linux/apt-file index b3c4984c..322bd6e0 100644 --- a/tldr/linux/apt-file +++ b/tldr/linux/apt-file @@ -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: . +> More information: . - 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}}` diff --git a/tldr/ohdear b/tldr/ohdear new file mode 100644 index 00000000..8819da55 --- /dev/null +++ b/tldr/ohdear @@ -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: . + +- 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}}` diff --git a/tldr/ohdear-cli b/tldr/ohdear-cli index 0164dfc9..01e462a5 100644 --- a/tldr/ohdear-cli +++ b/tldr/ohdear-cli @@ -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: . +> This command has been renamed to `ohdear`. +> More information: . -- 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`