You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--cache-dir value cache directory (default: "/Users/teppei/Library/Caches/trivy") [$TRIVY_CACHE_DIR]
1765
1765
--help, -h show help (default: false)
1766
1766
--version, -v print the version (default: false)
1767
-
1768
1767
```
1769
1768
1770
1769
## Image
@@ -1775,30 +1774,32 @@ NAME:
1775
1774
trivy image - scan an image
1776
1775
1777
1776
USAGE:
1778
-
trivy image [command options] [arguments...]
1777
+
trivy image [command options] image_name
1779
1778
1780
1779
OPTIONS:
1781
-
--template value output template [$TRIVY_TEMPLATE]
1782
-
--format value format (table, json, template) (default: "table") [$TRIVY_FORMAT]
1783
-
--input value input file path instead of image name [$TRIVY_INPUT]
1784
-
--severity value severities of vulnerabilities to be displayed (comma separated) (default: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL") [$TRIVY_SEVERITY]
1785
-
--output value output file name [$TRIVY_OUTPUT]
1786
-
--exit-code value Exit code when vulnerabilities were found (default: 0) [$TRIVY_EXIT_CODE]
1787
-
--skip-update skip db update (default: false) [$TRIVY_SKIP_UPDATE]
1788
-
--download-db-only download/update vulnerability database but don't run a scan (default: false) [$TRIVY_DOWNLOAD_DB_ONLY]
1789
-
--reset remove all caches and database (default: false) [$TRIVY_RESET]
1790
-
--clear-cache clear image caches without scanning (default: false) [$TRIVY_CLEAR_CACHE]
1791
-
--no-progress suppress progress bar (default: false) [$TRIVY_NO_PROGRESS]
1792
-
--ignore-unfixed display only fixed vulnerabilities (default: false) [$TRIVY_IGNORE_UNFIXED]
1793
-
--removed-pkgs detect vulnerabilities of removed packages (only for Alpine) (default: false) [$TRIVY_REMOVED_PKGS]
1794
-
--vuln-type value comma-separated list of vulnerability types (os,library) (default: "os,library") [$TRIVY_VULN_TYPE]
1795
-
--ignorefile value specify .trivyignore file (default: ".trivyignore") [$TRIVY_IGNOREFILE]
1796
-
--timeout value docker timeout (default: 2m0s) [$TRIVY_TIMEOUT]
1797
-
--light light mode: it's faster, but vulnerability descriptions and references are not displayed (default: false) [$TRIVY_LIGHT]
1798
-
--list-all-pkgs enabling the option will output all packages regardless of vulnerability [$TRIVY_LIST_ALL_PKGS]
1799
-
--skip-files value specify the file path to skip traversal [$TRIVY_SKIP_FILES]
1800
-
--skip-dirs value specify the directory where the traversal is skipped [$TRIVY_SKIP_DIRS]
1801
-
--help, -h show help (default: false)
1780
+
--template value, -t value output template [$TRIVY_TEMPLATE]
1781
+
--format value, -f value format (table, json, template) (default: "table") [$TRIVY_FORMAT]
1782
+
--input value, -i value input file path instead of image name [$TRIVY_INPUT]
1783
+
--severity value, -s value severities of vulnerabilities to be displayed (comma separated) (default: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL") [$TRIVY_SEVERITY]
1784
+
--output value, -o value output file name [$TRIVY_OUTPUT]
1785
+
--exit-code value Exit code when vulnerabilities were found (default: 0) [$TRIVY_EXIT_CODE]
1786
+
--skip-update skip db update (default: false) [$TRIVY_SKIP_UPDATE]
1787
+
--download-db-only download/update vulnerability database but don't run a scan (default: false) [$TRIVY_DOWNLOAD_DB_ONLY]
1788
+
--reset remove all caches and database (default: false) [$TRIVY_RESET]
1789
+
--clear-cache, -c clear image caches without scanning (default: false) [$TRIVY_CLEAR_CACHE]
1790
+
--no-progress suppress progress bar (default: false) [$TRIVY_NO_PROGRESS]
1791
+
--ignore-unfixed display only fixed vulnerabilities (default: false) [$TRIVY_IGNORE_UNFIXED]
1792
+
--removed-pkgs detect vulnerabilities of removed packages (only for Alpine) (default: false) [$TRIVY_REMOVED_PKGS]
1793
+
--vuln-type value comma-separated list of vulnerability types (os,library) (default: "os,library") [$TRIVY_VULN_TYPE]
1794
+
--ignorefile value specify .trivyignore file (default: ".trivyignore") [$TRIVY_IGNOREFILE]
1795
+
--timeout value docker timeout (default: 2m0s) [$TRIVY_TIMEOUT]
1796
+
--light light mode: it's faster, but vulnerability descriptions and references are not displayed (default: false) [$TRIVY_LIGHT]
1797
+
--ignore-policy value specify the Rego file to evaluate each vulnerability [$TRIVY_IGNORE_POLICY]
1798
+
--list-all-pkgs enabling the option will output all packages regardless of vulnerability (default: false) [$TRIVY_LIST_ALL_PKGS]
1799
+
--skip-files value specify the file path to skip traversal [$TRIVY_SKIP_FILES]
1800
+
--skip-dirs value specify the directory where the traversal is skipped [$TRIVY_SKIP_DIRS]
1801
+
--cache-backend value cache backend (e.g. redis://localhost:6379) (default: "fs") [$TRIVY_CACHE_BACKEND]
1802
+
--help, -h show help (default: false)
1802
1803
```
1803
1804
1804
1805
## Client
@@ -1808,7 +1809,7 @@ NAME:
1808
1809
trivy client - client mode
1809
1810
1810
1811
USAGE:
1811
-
trivy client [command options] [arguments...]
1812
+
trivy client [command options] image_name
1812
1813
1813
1814
OPTIONS:
1814
1815
--template value, -t value output template [$TRIVY_TEMPLATE]
@@ -1817,16 +1818,18 @@ OPTIONS:
1817
1818
--severity value, -s value severities of vulnerabilities to be displayed (comma separated) (default: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL") [$TRIVY_SEVERITY]
1818
1819
--output value, -o value output file name [$TRIVY_OUTPUT]
1819
1820
--exit-code value Exit code when vulnerabilities were found (default: 0) [$TRIVY_EXIT_CODE]
1820
-
--clear-cache, -c clear image caches without scanning [$TRIVY_CLEAR_CACHE]
1821
-
--quiet, -q suppress progress bar and log output [$TRIVY_QUIET]
1822
-
--ignore-unfixed display only fixed vulnerabilities [$TRIVY_IGNORE_UNFIXED]
1823
-
--debug, -d debug mode [$TRIVY_DEBUG]
1821
+
--clear-cache, -c clear image caches without scanning (default: false) [$TRIVY_CLEAR_CACHE]
1822
+
--ignore-unfixed display only fixed vulnerabilities (default: false) [$TRIVY_IGNORE_UNFIXED]
1823
+
--removed-pkgs detect vulnerabilities of removed packages (only for Alpine) (default: false) [$TRIVY_REMOVED_PKGS]
1824
1824
--vuln-type value comma-separated list of vulnerability types (os,library) (default: "os,library") [$TRIVY_VULN_TYPE]
1825
1825
--ignorefile value specify .trivyignore file (default: ".trivyignore") [$TRIVY_IGNOREFILE]
1826
-
--cache-dir value use as cache directory, but image cache is stored in /path/to/cache/fanal (default: "/Users/teppei/Library/Caches/trivy") [$TRIVY_CACHE_DIR]
1827
-
--timeout value docker timeout (default: 1m0s) [$TRIVY_TIMEOUT]
1826
+
--timeout value docker timeout (default: 2m0s) [$TRIVY_TIMEOUT]
1827
+
--ignore-policy value specify the Rego file to evaluate each vulnerability [$TRIVY_IGNORE_POLICY]
1828
1828
--token value for authentication [$TRIVY_TOKEN]
1829
+
--token-header value specify a header name for token (default: "Trivy-Token") [$TRIVY_TOKEN_HEADER]
1829
1830
--remote value server address (default: "http://localhost:4954") [$TRIVY_REMOTE]
1831
+
--custom-headers value custom headers [$TRIVY_CUSTOM_HEADERS]
1832
+
--help, -h show help (default: false)
1830
1833
```
1831
1834
1832
1835
## Server
@@ -1839,14 +1842,14 @@ USAGE:
1839
1842
trivy server [command options] [arguments...]
1840
1843
1841
1844
OPTIONS:
1842
-
--skip-update skip db update [$TRIVY_SKIP_UPDATE]
1843
-
--download-db-only download/update vulnerability database but don't run a scan [$TRIVY_DOWNLOAD_DB_ONLY]
1844
-
--reset remove all caches and database [$TRIVY_RESET]
1845
-
--quiet, -q suppress progress bar and log output [$TRIVY_QUIET]
1846
-
--debug, -ddebug mode [$TRIVY_DEBUG]
1847
-
--cache-dir value use as cache directory, but image cache is stored in /path/to/cache/fanal (default: "/Users/teppei/Library/Caches/trivy") [$TRIVY_CACHE_DIR]
0 commit comments