Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuel44 committed Jun 4, 2024
1 parent 3263d17 commit a1891d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion demisto_sdk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3530,7 +3530,7 @@ def update_content_graph(
type=PathsParamType(
exists=True, resolve_path=True
), # PathsParamType allows passing a list of paths
help="A list of content packs/files to validate.",
help="Paths to content integrations or script to setup the environment. If not provided, will configure the environment for the content repository.",
)
@click.option(
"--create-virtualenv",
Expand Down
30 changes: 11 additions & 19 deletions demisto_sdk/commands/setup_env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The Command sets up a content environment and an integration/script environment. The command will configure VSCode and XSOAR/XSIAM instances for development and testing.

**Notes**
## Notes

* This command will download integration parameters from Google Secret Manager, if the enviornment variable **DEMISTO_SDK_GCP_PROJECT_ID** is set to the GCP project ID.
* It will also create a virtual environment in the .venv folder if **--create-virtualenv** is passed.
Expand All @@ -11,26 +11,18 @@ The Command sets up a content environment and an integration/script environment.

## Usage

```
```sh
demisto-sdk setup-env [OPTIONS] [FILE_PATHS]
```

## Options

- **-i, --input**
Paths to content integrations or script to setup the environment. If not provided, will configure the environment for the content repository

- **--create-virtualenv**
Create a virtualenv for the environment.

- **--overwrite-virtualenv**
Overwrite existing virtualenvs. Use with the create-virtualenv flag.

- **-secret-id**
Secret ID, to use with Google Secret Manager instance. If not provided, will use the integration id.
- **--instance-name**
Instance name to configure in XSOAR/XSIAM.
- **--run-test-module**
Whether to run the test-module of the integration.
- **--clean**
Clean the repo out of the temp `CommonServerPython.py` files, `demistomock.py` and other files that were created by `lint`.
| Flag | Description |
| --- | --- |
| `-i`, `--input` | Paths to content integrations or script to setup the environment. If not provided, will configure the environment for the content repository. |
| `--create-virtualenv` | Create a virtualenv for the environment. |
| `--overwrite-virtualenv` | Overwrite existing virtualenvs. Use with the create-virtualenv flag. |
| `-secret-id` | Secret ID, to use with Google Secret Manager instance. If not provided, will use the integration id. |
| `--instance-name` | Instance name to configure in XSOAR/XSIAM. |
| `--run-test-module` | Whether to run the test-module of the integration. |
| `--clean` | Clean the repo out of the temp `CommonServerPython.py` files, `demistomock.py` and other files that were created by `lint`. |

0 comments on commit a1891d8

Please sign in to comment.