refactor(cli): Update the cloud config command (#9676)

This commit is contained in:
Owen Rumney
2025-10-20 16:57:08 +01:00
committed by GitHub
parent 2c43425e05
commit 559fe1fa2c
17 changed files with 931 additions and 119 deletions

View File

@@ -24,6 +24,5 @@ Control Trivy Cloud platform integration settings
### 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
* [trivy cloud config](trivy_cloud_config.md) - Control Trivy Cloud configuration

View File

@@ -0,0 +1,32 @@
## trivy cloud config
Control Trivy Cloud configuration
### Options
```
-h, --help help for 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
* [trivy cloud config edit](trivy_cloud_config_edit.md) - Edit Trivy Cloud configuration
* [trivy cloud config get](trivy_cloud_config_get.md) - Get Trivy Cloud configuration
* [trivy cloud config list](trivy_cloud_config_list.md) - List Trivy Cloud configuration
* [trivy cloud config set](trivy_cloud_config_set.md) - Set Trivy Cloud configuration
* [trivy cloud config unset](trivy_cloud_config_unset.md) - Unset Trivy Cloud configuration

View File

@@ -1,19 +1,19 @@
## trivy cloud edit-config
## trivy cloud config edit
Edit Trivy Cloud configuration
### Synopsis
Edit the Trivy Cloud platform configuration in the default editor specified in the EDITOR environment variable
Edit Trivy Cloud platform configuration in the default editor specified in the EDITOR environment variable
```
trivy cloud edit-config [flags]
trivy cloud config edit [flags]
```
### Options
```
-h, --help help for edit-config
-h, --help help for edit
```
### Options inherited from parent commands
@@ -31,5 +31,5 @@ trivy cloud edit-config [flags]
### SEE ALSO
* [trivy cloud](trivy_cloud.md) - Control Trivy Cloud platform integration settings
* [trivy cloud config](trivy_cloud_config.md) - Control Trivy Cloud configuration

View File

@@ -0,0 +1,44 @@
## trivy cloud config get
Get Trivy Cloud configuration
### Synopsis
Get a Trivy Cloud platform configuration
Available config settings can be viewed by using the `trivy cloud config list` command
```
trivy cloud config get [setting] [flags]
```
### Examples
```
$ trivy cloud config get server.scanning.enabled
$ trivy cloud config get server.scanning.upload-results
```
### Options
```
-h, --help help for get
```
### 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 config](trivy_cloud_config.md) - Control Trivy Cloud configuration

View File

@@ -1,19 +1,19 @@
## trivy cloud show-config
## trivy cloud config list
Show Trivy Cloud configuration
List Trivy Cloud configuration
### Synopsis
Show Trivy Cloud platform configuration in human readable format
List Trivy Cloud platform configuration in human readable format
```
trivy cloud show-config [flags]
trivy cloud config list [flags]
```
### Options
```
-h, --help help for show-config
-h, --help help for list
```
### Options inherited from parent commands
@@ -31,5 +31,5 @@ trivy cloud show-config [flags]
### SEE ALSO
* [trivy cloud](trivy_cloud.md) - Control Trivy Cloud platform integration settings
* [trivy cloud config](trivy_cloud_config.md) - Control Trivy Cloud configuration

View File

@@ -0,0 +1,44 @@
## trivy cloud config set
Set Trivy Cloud configuration
### Synopsis
Set a Trivy Cloud platform setting
Available config settings can be viewed by using the `trivy cloud config list` command
```
trivy cloud config set [setting] [value] [flags]
```
### Examples
```
$ trivy cloud config set server.scanning.enabled true
$ trivy cloud config set server.scanning.upload-results false
```
### Options
```
-h, --help help for set
```
### 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 config](trivy_cloud_config.md) - Control Trivy Cloud configuration

View File

@@ -0,0 +1,44 @@
## trivy cloud config unset
Unset Trivy Cloud configuration
### Synopsis
Unset a Trivy Cloud platform configuration and return it to the default setting
Available config settings can be viewed by using the `trivy cloud config list` command
```
trivy cloud config unset [setting] [flags]
```
### Examples
```
$ trivy cloud config unset server.scanning.enabled
$ trivy cloud config unset server.scanning.upload-results
```
### Options
```
-h, --help help for unset
```
### 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 config](trivy_cloud_config.md) - Control Trivy Cloud configuration