Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/trivy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func main() {
func run() error {
// Trivy behaves as the specified plugin.
if runAsPlugin := os.Getenv("TRIVY_RUN_AS_PLUGIN"); runAsPlugin != "" {
log.InitLogger(false, false)
log.InitLogger(false, false, false)
if err := plugin.Run(context.Background(), runAsPlugin, plugin.Options{Args: os.Args[1:]}); err != nil {
return xerrors.Errorf("plugin error: %w", err)
}
Expand Down
11 changes: 11 additions & 0 deletions docs/guide/configuration/others.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,17 @@ The following example will fail when a critical vulnerability is found or the OS
$ trivy image --exit-code 1 --exit-on-eol 1 --severity CRITICAL alpine:3.16.3
```

## No Color
| Scanner | Supported |
|:----------------:|:---------:|
| Vulnerability | ✓ |
| Misconfiguration | ✓ |
| Secret | ✓ |
| License | ✓ |

By default, `Trivy` uses color output in the terminal.
Use the `--no-color` option if you don't want to use color output.

## Mirror Registries

!!! warning "EXPERIMENTAL"
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ trivy [global flags] command [flags] target
--generate-default-config write the default config to trivy-default.yaml
-h, --help help for trivy
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_clean.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ trivy clean [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Control Trivy Cloud platform integration settings
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Control Trivy Cloud configuration
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ trivy cloud config edit [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ trivy cloud config get [setting] [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ trivy cloud config list [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ trivy cloud config set [setting] [value] [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ trivy cloud config unset [setting] [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ trivy config [flags] DIR
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_convert.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ trivy convert [flags] RESULT_JSON
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ trivy filesystem [flags] PATH
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ trivy image [flags] IMAGE_NAME
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ trivy kubernetes [flags] [CONTEXT]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_login.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ trivy login [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_logout.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trivy logout [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Manage modules
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ trivy module install [flags] REPOSITORY
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--module-dir string specify directory to the wasm modules that will be loaded (default "$HOME/.trivy/modules")
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ trivy module uninstall [flags] REPOSITORY
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--module-dir string specify directory to the wasm modules that will be loaded (default "$HOME/.trivy/modules")
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Manage plugins
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trivy plugin info PLUGIN_NAME
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ trivy plugin install NAME | URL | FILE_PATH
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trivy plugin list
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trivy plugin run NAME | URL | FILE_PATH
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trivy plugin search [KEYWORD]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trivy plugin uninstall PLUGIN_NAME
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trivy plugin update
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trivy plugin upgrade [PLUGIN_NAMES]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Manage registry authentication
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ trivy registry login SERVER [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ trivy registry logout SERVER [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ trivy repository [flags] (REPO_PATH | REPO_URL)
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_rootfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ trivy rootfs [flags] ROOTDIR
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_sbom.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ trivy sbom [flags] SBOM_PATH
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ trivy server [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ trivy version [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
1 change: 1 addition & 0 deletions docs/guide/references/configuration/cli/trivy_vex.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Manage VEX repositories
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ trivy vex repo download [REPO_NAMES] [flags]
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
--no-color Remove color from output
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
Expand Down
Loading
Loading