|
4 | 4 | <img alt="logo" src="../logo.svg">
|
5 | 5 | </p>
|
6 | 6 | <h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">OpenSCA-Cli</h1>
|
7 |
| - |
8 | 7 | <p align="center">
|
9 | 8 | <a href="https://github.com/XmirrorSecurity/OpenSCA-cli/blob/master/LICENSE"><img src="https://img.shields.io/github/license/XmirrorSecurity/OpenSCA-cli?style=flat-square"></a>
|
10 | 9 | <a href="https://github.com/XmirrorSecurity/OpenSCA-cli/releases"><img src="https://img.shields.io/github/v/release/XmirrorSecurity/OpenSCA-cli?style=flat-square"></a>
|
@@ -77,18 +76,18 @@ opensca-cli -db db.json -path ${project_path}
|
77 | 76 |
|
78 | 77 | **You can either configure the parameters in configuration files or input the parameters in the command-line. When the two conflict with each other, the input parameters will be prioritized.**
|
79 | 78 |
|
80 |
| -| PARAMETER | TYPE | DESCRIPTION | SAMPLE | |
81 |
| -| ---------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | |
82 |
| -| `config` | `string` | Set the configuration file path, when the program runs, the parameter of the configuration file will be used as the startup parameters. If the configuration parameter conflicts with the command-line input parameter, the latter will be taken. | `-config config.json` | |
83 |
| -| `path` | `string` | Set the file or directory path to be detected. | `-path ./foo` | |
84 |
| -| `url` | `string` | Check the vulnerabilities from the cloud vulnerability database, set the address of the cloud service. It needs to be used with the `token` parameter. | `-url https://opensca.xmirror.cn` | |
85 |
| -| `token` | `string` | Cloud service verification. You have to apply for it on the cloud service platform and use it with the `url` parameter. | `-token xxxxxxx` | |
86 |
| -| `cache` | `bool` | This option is recommended. It can cache the downloaded files, for example, the `.pom` file, and save your time when detecting the same component next time. The downloaded files are saved in `.cache` under the same directory as opensca-cli. | `-cache` | |
87 |
| -| `vuln` | `bool` | Show the vulnerabilities info only. Using this parameter, the component hierarchical architecture will **NOT** be included in the result. | `-vuln` | |
88 |
| -| `out` | `string` | Set the output file. The result defaults to json format. | `-out output.json` | |
| 79 | +| PARAMETER | TYPE | DESCRIPTION | SAMPLE | |
| 80 | +| ---------- | -------- | ------------------------------------------------------------ | --------------------------------- | |
| 81 | +| `config` | `string` | Set the configuration file path, when the program runs, the parameter of the configuration file will be used as the startup parameters. If the configuration parameter conflicts with the command-line input parameter, the latter will be taken. | `-config config.json` | |
| 82 | +| `path` | `string` | Set the file or directory path to be detected. | `-path ./foo` | |
| 83 | +| `url` | `string` | Check the vulnerabilities from the cloud vulnerability database, set the address of the cloud service. It needs to be used with the `token` parameter. | `-url https://opensca.xmirror.cn` | |
| 84 | +| `token` | `string` | Cloud service verification. You have to apply for it on the cloud service platform and use it with the `url` parameter. | `-token xxxxxxx` | |
| 85 | +| `cache` | `bool` | This option is recommended. It can cache the downloaded files, for example, the `.pom` file, and save your time when detecting the same component next time. The downloaded files are saved in `.cache` under the same directory as opensca-cli. | `-cache` | |
| 86 | +| `vuln` | `bool` | Show the vulnerabilities info only. Using this parameter, the component hierarchical architecture will **NOT** be included in the result. | `-vuln` | |
| 87 | +| `out` | `string` | Set the output file. The result defaults to json format.Support the output of SBOM list in spdx format. | `-out output.json` | |
89 | 88 | | `db` | `string` | Set the local vulnerability database file. It helps when you prefer to use your own vulnerability database. The format of the vulnerability database is shown below. If the cloud and local vulnerability databases are both set, the result of detection will merge both. | `-db db.json` |
|
90 |
| -| `progress` | `bool` | Show the progress bar. | `-progress` | |
91 |
| -| `dedup` | `bool` | Same result deduplication | `-dedup` | |
| 89 | +| `progress` | `bool` | Show the progress bar. | `-progress` | |
| 90 | +| `dedup` | `bool` | Same result deduplication | `-dedup` | |
92 | 91 |
|
93 | 92 | ------
|
94 | 93 |
|
|
0 commit comments