chore: update doc for automate upload with --legacy flag

Signed-off-by: Sonu Saha <ahasunos@gmail.com>
This commit is contained in:
Sonu Saha 2024-11-06 16:34:49 +05:30
parent c77c16a1fd
commit dccfdae9ea

View file

@ -14,6 +14,16 @@ To use the CLI, this InSpec add-on adds the following commands:
* `$ inspec automate profiles` - list all available Compliance profiles * `$ inspec automate profiles` - list all available Compliance profiles
* `$ inspec exec compliance://profile` - runs a Compliance profile * `$ inspec exec compliance://profile` - runs a Compliance profile
* `$ inspec automate upload path/to/local/profile` - uploads a local profile to Chef Automate/Chef Compliance * `$ inspec automate upload path/to/local/profile` - uploads a local profile to Chef Automate/Chef Compliance
* `$ inspec automate upload path/to/local/profile --legacy` - uploads a local profile to Chef Automate/Chef Compliance using legacy functionalities of inspec check and inspec export
*Options*:
```
[--overwrite], [--no-overwrite] # Overwrite existing profile on Server.
[--owner=OWNER] # Owner that should own the profile
[--legacy], [--no-legacy] # Enable legacy functionality, activating both legacy export and legacy check.
uploads a local profile to Chef Automate
```
* `$ inspec automate logout` - logout of Chef Automate/Chef Compliance * `$ inspec automate logout` - logout of Chef Automate/Chef Compliance
Similar to these CLI commands are: Similar to these CLI commands are: