feat(cli): Add trivy cloud suppport (#9637)

This commit is contained in:
Owen Rumney
2025-10-15 11:34:39 +01:00
committed by GitHub
parent 84a7d9a5d6
commit 8e6a7ff670
19 changed files with 1243 additions and 5 deletions

View File

@@ -44,11 +44,14 @@ trivy [global flags] command [flags] target
### SEE ALSO
* [trivy clean](trivy_clean.md) - Remove cached files
* [trivy cloud](trivy_cloud.md) - Control Trivy Cloud platform integration settings
* [trivy config](trivy_config.md) - Scan config files for misconfigurations
* [trivy convert](trivy_convert.md) - Convert Trivy JSON report into a different format
* [trivy filesystem](trivy_filesystem.md) - Scan local filesystem
* [trivy image](trivy_image.md) - Scan a container image
* [trivy kubernetes](trivy_kubernetes.md) - [EXPERIMENTAL] Scan kubernetes cluster
* [trivy login](trivy_login.md) - Log in to the Trivy Cloud platform
* [trivy logout](trivy_logout.md) - Log out of Trivy Cloud platform
* [trivy module](trivy_module.md) - Manage modules
* [trivy plugin](trivy_plugin.md) - Manage plugins
* [trivy registry](trivy_registry.md) - Manage registry authentication

View File

@@ -0,0 +1,29 @@
## trivy cloud
Control Trivy Cloud platform integration settings
### Options
```
-h, --help help for cloud
```
### Options inherited from parent commands
```
--cache-dir string cache directory (default "/path/to/cache")
-c, --config string config path (default "trivy.yaml")
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
```
### SEE ALSO
* [trivy](trivy.md) - Unified security scanner
* [trivy cloud edit-config](trivy_cloud_edit-config.md) - Edit Trivy Cloud configuration
* [trivy cloud show-config](trivy_cloud_show-config.md) - Show Trivy Cloud configuration

View File

@@ -0,0 +1,35 @@
## trivy cloud edit-config
Edit Trivy Cloud configuration
### Synopsis
Edit the Trivy Cloud platform configuration in the default editor specified in the EDITOR environment variable
```
trivy cloud edit-config [flags]
```
### Options
```
-h, --help help for edit-config
```
### Options inherited from parent commands
```
--cache-dir string cache directory (default "/path/to/cache")
-c, --config string config path (default "trivy.yaml")
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
```
### SEE ALSO
* [trivy cloud](trivy_cloud.md) - Control Trivy Cloud platform integration settings

View File

@@ -0,0 +1,35 @@
## trivy cloud show-config
Show Trivy Cloud configuration
### Synopsis
Show Trivy Cloud platform configuration in human readable format
```
trivy cloud show-config [flags]
```
### Options
```
-h, --help help for show-config
```
### Options inherited from parent commands
```
--cache-dir string cache directory (default "/path/to/cache")
-c, --config string config path (default "trivy.yaml")
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
```
### SEE ALSO
* [trivy cloud](trivy_cloud.md) - Control Trivy Cloud platform integration settings

View File

@@ -0,0 +1,45 @@
## trivy login
Log in to the Trivy Cloud platform
### Synopsis
Log in to the Trivy Cloud platform to enable scanning of images and repositories in the cloud using the token retrieved from the Trivy Cloud platform
```
trivy login [flags]
```
### Examples
```
# Log in to the Trivy Cloud platform
$ trivy login --token <token>
```
### Options
```
--api-url string API URL for Trivy Cloud platform (default "https://api.trivy.dev")
-h, --help help for login
--token string Token used to athenticate with Trivy Cloud platform
--trivy-server-url string Trivy Server URL for Trivy Cloud platform (default "https://scan.trivy.dev")
```
### Options inherited from parent commands
```
--cache-dir string cache directory (default "/path/to/cache")
-c, --config string config path (default "trivy.yaml")
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
```
### SEE ALSO
* [trivy](trivy.md) - Unified security scanner

View File

@@ -0,0 +1,31 @@
## trivy logout
Log out of Trivy Cloud platform
```
trivy logout [flags]
```
### Options
```
-h, --help help for logout
```
### Options inherited from parent commands
```
--cache-dir string cache directory (default "/path/to/cache")
-c, --config string config path (default "trivy.yaml")
-d, --debug debug mode
--generate-default-config write the default config to trivy-default.yaml
--insecure allow insecure server connections
-q, --quiet suppress progress bar and log output
--timeout duration timeout (default 5m0s)
-v, --version show version
```
### SEE ALSO
* [trivy](trivy.md) - Unified security scanner