zanshincli


Namezanshincli JSON
Version 2.1.0 PyPI version JSON
download
home_pagehttps://github.com/tenchi-security/zanshin-cli
SummaryPython command line utility to the Tenchi Security Zanshin API v1
upload_time2025-02-19 20:03:28
maintainerNone
docs_urlNone
authorTenchi Security
requires_python<4.0,>=3.9
licenseApache Software License
keywords
VCS
bugtrack_url
requirements annotated-types anyio boto3-type-annotations boto3 botocore certifi click colorama exceptiongroup h11 httpcore httpx idna jmespath markdown-it-py mdurl prettytable pydantic-core pydantic pygments python-dateutil rich s3transfer shellingham six sniffio typer typing-extensions urllib3 urllib3 wcwidth zanshin-sdk-python
Travis-CI No Travis.
coveralls test coverage
            [![PyPI version shields.io](https://img.shields.io/pypi/v/zanshincli.svg)](https://pypi.python.org/pypi/zanshincli/) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/zanshincli.svg)](https://pypi.python.org/pypi/zanshincli/)

# Zanshin CLI

This Python package provides a command-line utility to interact with the [API of the Zanshin SaaS service](https://api.zanshin.tenchisecurity.com) from [Tenchi Security](https://www.tenchisecurity.com).

Is it based on the Zanshin Python SDK available on [Github](https://github.com/tenchi-security/zanshin-sdk-python) and [PyPI](https://pypi.python.org/pypi/zanshinsdk/).

If you are a Zanshin customer and have any questions regarding the use of the service, its API or this command-line utility, please get in touch via e-mail at support {at} tenchisecurity {dot} com or via the support widget on the [Zanshin Portal](https://zanshin.tenchisecurity.com).

## Installation

We recommend the CLI is installed using [pipx](https://pypa.github.io/pipx/installation/), using the command:
```shell
pipx install zanshincli
```

When a new version is available, you can upgrade it with:
```shell
pipx upgrade zanshincli
```

## Configuration File

The way the SDK and CLI handles credentials is by using a configuration file in the format created by the Python [RawConfigParser](https://docs.python.org/3/library/configparser.html#configparser.RawConfigParser) class.

The file is located at `~/.tenchi/config`, where `~` is the [current user's home directory](https://docs.python.org/3/library/pathlib.html#pathlib.Path.home).

Each section is treated as a configuration profile, and the SDK and CLI will look for a section called `default` if another is not explicitly selected.

These are the supported options:

* `api_key` (required) which contains the Zanshin API key obtained at the [Zanshin web portal](https://zanshin.tenchisecurity.com/my-profile).
* `user_agent` (optional) allows you to override the default user-agent header used by the SDK when making API requests.
* `api_url` (optional) directs the SDK and CLI to use a different API endpoint than the default (https://api.zanshin.tenchisecurity.com).

You can populate the file with the `zanshin init` command of the CLI tool. This is what a minimal configuration file would look like:
```ini
[default]
api_key = abcdefghijklmnopqrstuvxyz
```

## Using the CLI Utility

This package installs a command-line utility called `zanshin` built with the great [Typer](https://typer.tiangolo.com/) package.

You can obtain help by using the `--help` option.

Keep in mind that when options are present that expect multiple values, these need to be provided as multiple options. For example if you wanted to list an organization's alerts filtering by the OPEN and RISK_ACCEPTED states, this is the command you would use:
```shell
$ zanshin organization alerts d48edaa6-871a-4082-a196-4daab372d4a1 --state OPEN --state RISK_ACCEPTED
```

## Command Reference
# `zanshin`

Command-line utility to interact with the Zanshin SaaS service offered by Tenchi Security
(https://tenchisecurity.com), go to https://github.com/tenchi-security/zanshin-cli for license, source code and
documentation

**Usage**:

```console
$ zanshin [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--profile TEXT`: Configuration file section to read API keyand configuration from  [default: default]
* `--format [json|table|csv|html]`: Output format to use for list operations  [default: json]
* `--verbose / --no-verbose`: Print more information to stderr  [default: True]
* `--debug / --no-debug`: Enable debug logging in the SDK  [default: False]
* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.

**Commands**:

* `account`: Operations on user the API key owner has...
* `alert`: Operations on alerts the API key owner has...
* `init`: Update settings on configuration file.
* `organization`: Operations on organizations the API key owner...
* `summary`: Operations on summaries the API key owner has...
* `version`: Display the program and Python versions in...

## `zanshin account`

Operations on user the API key owner has direct access to

**Usage**:

```console
$ zanshin account [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `api_key`: Operations on API keys from account the API...
* `invites`: Operations on invites from account the API...
* `me`: Returns the details of the user account that...

### `zanshin account api_key`

Operations on API keys from account the API key owner has direct access to

**Usage**:

```console
$ zanshin account api_key [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `create`: Creates a new API key for the current logged...
* `delete`: Deletes a given API key by its id, it will...
* `list`: Iterates over the API keys of current logged...

#### `zanshin account api_key create`

Creates a new API key for the current logged user, API Keys can be used to interact with the zanshin api directly
a behalf of that user.

**Usage**:

```console
$ zanshin account api_key create [OPTIONS] NAME
```

**Arguments**:

* `NAME`: Name of the new API key  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin account api_key delete`

Deletes a given API key by its id, it will only work if the informed ID belongs to the current logged user.

**Usage**:

```console
$ zanshin account api_key delete [OPTIONS] API_KEY_ID
```

**Arguments**:

* `API_KEY_ID`: UUID of the invite to delete  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin account api_key list`

Iterates over the API keys of current logged user.

**Usage**:

```console
$ zanshin account api_key list [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

### `zanshin account invites`

Operations on invites from account the API key owner has direct access to

**Usage**:

```console
$ zanshin account invites [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `accept`: Accepts an invitation with the informed ID,...
* `get`: Gets a specific invitation details, it only...
* `list`: Iterates over the invites of current logged...

#### `zanshin account invites accept`

Accepts an invitation with the informed ID, it only works if the user accepting the invitation is the user that
received the invitation.

**Usage**:

```console
$ zanshin account invites accept [OPTIONS] INVITE_ID
```

**Arguments**:

* `INVITE_ID`: UUID of the invite  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin account invites get`

Gets a specific invitation details, it only works if the invitation was made for the current logged user.

**Usage**:

```console
$ zanshin account invites get [OPTIONS] INVITE_ID
```

**Arguments**:

* `INVITE_ID`: UUID of the invite  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin account invites list`

Iterates over the invites of current logged user.

**Usage**:

```console
$ zanshin account invites list [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

### `zanshin account me`

Returns the details of the user account that owns the API key used by this Connection instance

**Usage**:

```console
$ zanshin account me [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `zanshin alert`

Operations on alerts the API key owner has direct access to

**Usage**:

```console
$ zanshin alert [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `batch_update_state`
* `get`: Returns details about a specified alert
* `list`: List alerts from a given organization, with...
* `list_following`: List following alerts from a given...
* `list_grouped`: List grouped alerts from a given...
* `list_grouped_following`: List grouped following alerts from a given...
* `list_history`: List alerts from a given organization, with...
* `list_history_following`: List alerts from a given organization, with...
* `update`: Updates the alert.

### `zanshin alert batch_update_state`

**Usage**:

```console
$ zanshin alert batch_update_state [OPTIONS] ORGANIZATION_ID STATE:[OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED] COMMENT DRY_RUN
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization that owns the alerts  [required]
* `STATE:[OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED]`: New state to set for the alerts  [required]
* `COMMENT`: Comment explaining this batch update  [required]
* `DRY_RUN`: If true, performs a simulation without making actual changes  [required]

**Options**:

* `--scan-target-ids UUID`: List of UUIDs representing the scan targets to filter by
* `--alert-ids TEXT`: List of alert IDs to update
* `--states [OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED]`: List of existing alert states to filter alerts by
* `--rules TEXT`: List of rules to filter alerts by
* `--severities TEXT`: List of severities to filter alerts by (e.g., 'low', 'medium', 'high')
* `--include-empty-scan-target-tags`: Whether to include alerts with scan targets that have no associated tags
* `--help`: Show this message and exit.

### `zanshin alert get`

Returns details about a specified alert

**Usage**:

```console
$ zanshin alert get [OPTIONS] ALERT_ID
```

**Arguments**:

* `ALERT_ID`: UUID of the alert to look up  [required]

**Options**:

* `--list-history / --no-list-history`: History of this alert  [default: False]
* `--list-comments / --no-list-comments`: Comments of this alert  [default: False]
* `--help`: Show this message and exit.

### `zanshin alert list`

List alerts from a given organization, with optional filters by scan target, state or severity.

**Usage**:

```console
$ zanshin alert list [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--scan-target-ids UUID`: Only list alerts from the specified scan targets
* `--scan-target-tags TEXT`: Only lists alerts from the specified tags
* `--include-empty-scan-target-tags / --no-include-empty-scan-target-tags`: Include alerts from scan targets without tags
* `--states [OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED]`: Only list alerts in the specified states  [default: OPEN, IN_PROGRESS, RISK_ACCEPTED, MITIGATING_CONTROL, FALSE_POSITIVE]
* `--severities [CRITICAL|HIGH|MEDIUM|LOW|INFO]`: Only list alerts with the specified severities  [default: CRITICAL, HIGH, MEDIUM, LOW, INFO]
* `--lang [pt-BR|en-US]`: Show alert titles in the specified language  [default: en-US]
* `--created-at-start TEXT`: Date created starts at (format YYYY-MM-DDTHH:MM:SS)
* `--created-at-end TEXT`: Date created ends at (format YYYY-MM-DDTHH:MM:SS)
* `--updated-at-start TEXT`: Date updated starts at (format YYYY-MM-DDTHH:MM:SS)
* `--updated-at-end TEXT`: Date updated ends at (format YYYY-MM-DDTHH:MM:SS)
* `--search TEXT`: Text to search for in the alerts  [default: ]
* `--sort [asc|desc]`: Sort order
* `--rules TEXT`: Only list alerts in the specified rules
* `--opened-at-start TEXT`: Date opened starts at (format YYYY-MM-DDTHH:MM:SS)
* `--opened-at-end TEXT`: Date opened ends at (format YYYY-MM-DDTHH:MM:SS)
* `--resolved-at-start TEXT`: Date resolved starts at (format YYYY-MM-DDTHH:MM:SS)
* `--resolved-at-end TEXT`: Date resolved ends at (format YYYY-MM-DDTHH:MM:SS)
* `--cursor TEXT`: Cursor for pagination
* `--order [scanTargetId|resource|rule|severity|state|openedAt|resolvedAt|createdAt|updatedAt]`: Field to sort results on  [default: severity]
* `--help`: Show this message and exit.

### `zanshin alert list_following`

List following alerts from a given organization, with optional filters by following ids, state or severity.

**Usage**:

```console
$ zanshin alert list_following [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--following-ids UUID`: Only list alerts from the specified scan targets
* `--following-tags UUID`: Only lists alerts from the specified tags
* `--include-empty-following-tags / --no-include-empty-following-tags`: Include alerts from scan targets without tags
* `--states [OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED]`: Only list alerts in the specified states  [default: OPEN, IN_PROGRESS, RISK_ACCEPTED, MITIGATING_CONTROL, FALSE_POSITIVE]
* `--severities [CRITICAL|HIGH|MEDIUM|LOW|INFO]`: Only list alerts with the specified severities  [default: CRITICAL, HIGH, MEDIUM, LOW, INFO]
* `--lang [pt-BR|en-US]`: Show alert titles in the specified language  [default: en-US]
* `--created-at-start TEXT`: Date created starts at (format YYYY-MM-DDTHH:MM:SS)
* `--created-at-end TEXT`: Date created ends at (format YYYY-MM-DDTHH:MM:SS)
* `--updated-at-start TEXT`: Date updated starts at (format YYYY-MM-DDTHH:MM:SS)
* `--updated-at-end TEXT`: Date updated ends at (format YYYY-MM-DDTHH:MM:SS)
* `--search TEXT`: Text to search for in the alerts  [default: ]
* `--sort [asc|desc]`: Sort order
* `--rules TEXT`: Only list alerts in the specified rules
* `--opened-at-start TEXT`: Date opened starts at (format YYYY-MM-DDTHH:MM:SS)
* `--opened-at-end TEXT`: Date opened ends at (format YYYY-MM-DDTHH:MM:SS)
* `--resolved-at-start TEXT`: Date resolved starts at (format YYYY-MM-DDTHH:MM:SS)
* `--resolved-at-end TEXT`: Date resolved ends at (format YYYY-MM-DDTHH:MM:SS)
* `--cursor TEXT`: Cursor for pagination
* `--order [scanTargetId|resource|rule|severity|state|openedAt|resolvedAt|createdAt|updatedAt]`: Field to sort results on  [default: severity]
* `--help`: Show this message and exit.

### `zanshin alert list_grouped`

List grouped alerts from a given organization, with optional filters by scan target, state or severity.

**Usage**:

```console
$ zanshin alert list_grouped [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--scan-target-id UUID`: Only list alerts from the specified scan targets
* `--state [OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED]`: Only list alerts in the specified states  [default: OPEN, IN_PROGRESS, RISK_ACCEPTED, MITIGATING_CONTROL, FALSE_POSITIVE]
* `--severity [CRITICAL|HIGH|MEDIUM|LOW|INFO]`: Only list alerts with the specified severities  [default: CRITICAL, HIGH, MEDIUM, LOW, INFO]
* `--help`: Show this message and exit.

### `zanshin alert list_grouped_following`

List grouped following alerts from a given organization, with optional filters by scan target, state or severity.

**Usage**:

```console
$ zanshin alert list_grouped_following [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--following-ids UUID`: Only list alerts from the specified scan targets
* `--following-tags UUID`: Only lists alerts from the specified tags
* `--include-empty-following-tags / --no-include-empty-following-tags`: Include alerts from scan targets without tags
* `--cursor TEXT`: Cursor for pagination
* `--order [scanTargetId|resource|rule|severity|state|openedAt|resolvedAt|createdAt|updatedAt]`: Field to sort results on  [default: severity]
* `--help`: Show this message and exit.

### `zanshin alert list_history`

List alerts from a given organization, with optional filters by scan target, state or severity

**Usage**:

```console
$ zanshin alert list_history [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--scan-target-id UUID`: Only list alerts from the specified scan targets
* `--cursor TEXT`: Cursor for pagination
* `--persist / --no-persist`: Persist  [default: False]
* `--help`: Show this message and exit.

### `zanshin alert list_history_following`

List alerts from a given organization, with optional filters by scan target, state or severity

**Usage**:

```console
$ zanshin alert list_history_following [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--following-ids UUID`: Only list alerts from the specified scan targets
* `--cursor TEXT`: Cursor for pagination
* `--persist / --no-persist`: Persist  [default: False]
* `--help`: Show this message and exit.

### `zanshin alert update`

Updates the alert.

**Usage**:

```console
$ zanshin alert update [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID ALERT_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization that owns the alert  [required]
* `SCAN_TARGET_ID`: UUID of the scan target associated with the alert  [required]
* `ALERT_ID`: UUID of the alert  [required]

**Options**:

* `--state [OPEN|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE]`: New alert state
* `--labels TEXT`: Custom label(s) for the alert
* `--comment TEXT`: A comment when setting the alert state to RISK_ACCEPTED, FALSE_POSITIVE, MITIGATING_CONTROL
* `--help`: Show this message and exit.

## `zanshin init`

Update settings on configuration file.

**Usage**:

```console
$ zanshin init [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `zanshin organization`

Operations on organizations the API key owner has direct access to

**Usage**:

```console
$ zanshin organization [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `create`: Creates an organization.
* `delete`: Deletes an organization given its ID.
* `follower`: Operations on followers of organization the...
* `following`: Operations on following of organization the...
* `get`: Gets an organization given its ID.
* `list`: Lists the organizations this user has direct...
* `member`: Operations on members of organization the API...
* `scan-target-groups`: Operations on organizations scan target...
* `scan_target`: Operations on scan targets from organizations...
* `update`: Gets an organization given its ID.

### `zanshin organization create`

Creates an organization.

**Usage**:

```console
$ zanshin organization create [OPTIONS] NAME
```

**Arguments**:

* `NAME`: Name of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

### `zanshin organization delete`

Deletes an organization given its ID.

**Usage**:

```console
$ zanshin organization delete [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

### `zanshin organization follower`

Operations on followers of organization the API key owner has direct access to

**Usage**:

```console
$ zanshin organization follower [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `list`: Lists the followers of organization this user...
* `request`: Operations on follower requests of...
* `stop`: Stops one organization follower of another.

#### `zanshin organization follower list`

Lists the followers of organization this user has direct access to.

**Usage**:

```console
$ zanshin organization follower list [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization follower request`

Operations on follower requests of organization the API key owner has directaccess to

**Usage**:

```console
$ zanshin organization follower request [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `create`: Create organization follower request.
* `delete`: Delete organization follower request.
* `get`: Get organization follower request.
* `list`: Lists the follower requests of organization...

##### `zanshin organization follower request create`

Create organization follower request.

**Usage**:

```console
$ zanshin organization follower request create [OPTIONS] ORGANIZATION_ID TOKEN
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `TOKEN`: Token of the follower request  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization follower request delete`

Delete organization follower request.

**Usage**:

```console
$ zanshin organization follower request delete [OPTIONS] ORGANIZATION_ID TOKEN
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `TOKEN`: Token of the follower request  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization follower request get`

Get organization follower request.

**Usage**:

```console
$ zanshin organization follower request get [OPTIONS] ORGANIZATION_ID TOKEN
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `TOKEN`: Token of the follower request  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization follower request list`

Lists the follower requests of organization this user has direct access to.

**Usage**:

```console
$ zanshin organization follower request list [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization follower stop`

Stops one organization follower of another.

**Usage**:

```console
$ zanshin organization follower stop [OPTIONS] ORGANIZATION_ID ORGANIZATION_FOLLOWER_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `ORGANIZATION_FOLLOWER_ID`: UUID of the organization follower  [required]

**Options**:

* `--help`: Show this message and exit.

### `zanshin organization following`

Operations on following of organization the API key owner has direct access to

**Usage**:

```console
$ zanshin organization following [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `list`: Lists the following of organization this user...
* `request`: Operations on following requests of...
* `stop`: Stops one organization following of another.

#### `zanshin organization following list`

Lists the following of organization this user has direct access to.

**Usage**:

```console
$ zanshin organization following list [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization following request`

Operations on following requests of organization the API key owner hasdirect access to

**Usage**:

```console
$ zanshin organization following request [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `accept`: Accepts a request to follow another...
* `decline`: Declines a request to follow another...
* `get`: Returns a request received by an organization...
* `list`: Lists the following requests of organization...

##### `zanshin organization following request accept`

Accepts a request to follow another organization.

**Usage**:

```console
$ zanshin organization following request accept [OPTIONS] ORGANIZATION_ID FOLLOWING_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `FOLLOWING_ID`: UUID of the following request  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization following request decline`

Declines a request to follow another organization.

**Usage**:

```console
$ zanshin organization following request decline [OPTIONS] ORGANIZATION_ID FOLLOWING_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `FOLLOWING_ID`: UUID of the following request  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization following request get`

Returns a request received by an organization to follow another.

**Usage**:

```console
$ zanshin organization following request get [OPTIONS] ORGANIZATION_ID FOLLOWING_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `FOLLOWING_ID`: UUID of the following request  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization following request list`

Lists the following requests of organization this user has direct access to.

**Usage**:

```console
$ zanshin organization following request list [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization following stop`

Stops one organization following of another.

**Usage**:

```console
$ zanshin organization following stop [OPTIONS] ORGANIZATION_ID ORGANIZATION_FOLLOWING_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `ORGANIZATION_FOLLOWING_ID`: UUID of the organization following  [required]

**Options**:

* `--help`: Show this message and exit.

### `zanshin organization get`

Gets an organization given its ID.

**Usage**:

```console
$ zanshin organization get [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

### `zanshin organization list`

Lists the organizations this user has direct access to as a member.

**Usage**:

```console
$ zanshin organization list [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

### `zanshin organization member`

Operations on members of organization the API key owner has direct access to

**Usage**:

```console
$ zanshin organization member [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `delete`: Delete organization member.
* `get`: Get organization member.
* `invite`: Operations on member invites of organization...
* `list`: Lists the members of organization this user...
* `update`: Update organization member.

#### `zanshin organization member delete`

Delete organization member.

**Usage**:

```console
$ zanshin organization member delete [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `ORGANIZATION_MEMBER_ID`: UUID of the organization member  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization member get`

Get organization member.

**Usage**:

```console
$ zanshin organization member get [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `ORGANIZATION_MEMBER_ID`: UUID of the organization member  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization member invite`

Operations on member invites of organization the API key owner has directaccess to

**Usage**:

```console
$ zanshin organization member invite [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `create`: Create organization member invite.
* `delete`: Delete organization member invite.
* `get`: Get organization member invite.
* `list`: Lists the member invites of organization this...
* `resend`: Resend organization member invitation.

##### `zanshin organization member invite create`

Create organization member invite.

**Usage**:

```console
$ zanshin organization member invite create [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_INVITE_EMAIL
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `ORGANIZATION_MEMBER_INVITE_EMAIL`: E-mail of the organization member  [required]

**Options**:

* `--organization-member-invite-role [ADMIN]`: Role of the organization member  [default: ADMIN]
* `--help`: Show this message and exit.

##### `zanshin organization member invite delete`

Delete organization member invite.

**Usage**:

```console
$ zanshin organization member invite delete [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_INVITE_EMAIL
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `ORGANIZATION_MEMBER_INVITE_EMAIL`: E-mail of the organization member  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization member invite get`

Get organization member invite.

**Usage**:

```console
$ zanshin organization member invite get [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_INVITE_EMAIL
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `ORGANIZATION_MEMBER_INVITE_EMAIL`: E-mail of the organization member invite  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization member invite list`

Lists the member invites of organization this user has direct access to.

**Usage**:

```console
$ zanshin organization member invite list [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization member invite resend`

Resend organization member invitation.

**Usage**:

```console
$ zanshin organization member invite resend [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_INVITE_EMAIL
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `ORGANIZATION_MEMBER_INVITE_EMAIL`: E-mail of the organization member  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization member list`

Lists the members of organization this user has direct access to.

**Usage**:

```console
$ zanshin organization member list [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization member update`

Update organization member.

**Usage**:

```console
$ zanshin organization member update [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `ORGANIZATION_MEMBER_ID`: UUID of the organization member  [required]

**Options**:

* `--role [ADMIN]`: Role of the organization member  [default: ADMIN]
* `--help`: Show this message and exit.

### `zanshin organization scan-target-groups`

Operations on organizations scan target groups the API key owner has direct access to

**Usage**:

```console
$ zanshin organization scan-target-groups [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `compartments`: Iterates over the compartments of a scan...
* `create`: Creates a scan target group for the...
* `create-by-compartments`: Creates Scan Targets from previous listed...
* `delete`: Deletes the scan target group of the...
* `get`: Gets details of the scan target group given...
* `insert`: Inserts an already created scan target group.
* `list`: Lists the scan target groups of the user's...
* `oauth_link`: Retrieve a link to allow the user to...
* `scan-targets`: Gets all scan targets from a specific scan...
* `script`: Gets download URL of the scan target group.
* `update`: Updates a scan target group.

#### `zanshin organization scan-target-groups compartments`

Iterates over the compartments of a scan target group.

**Usage**:

```console
$ zanshin organization scan-target-groups compartments [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan-target-groups create`

Creates a scan target group for the organization.

**Usage**:

```console
$ zanshin organization scan-target-groups create [OPTIONS] ORGANIZATION_ID KIND:[AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK] NAME
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `KIND:[AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK]`: kind of the scan target group. Should be 'ORACLE', 'BITBUCKET' or 'GITLAB'  [required]
* `NAME`: name of the scan target group  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan-target-groups create-by-compartments`

Creates Scan Targets from previous listed compartments inside the scan target group.

**Usage**:

```console
$ zanshin organization scan-target-groups create-by-compartments [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID NAME OCID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]
* `NAME`: Compartment name  [required]
* `OCID`: Oracle Compartment Id  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan-target-groups delete`

Deletes the scan target group of the organization.

**Usage**:

```console
$ zanshin organization scan-target-groups delete [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan-target-groups get`

Gets details of the scan target group given its ID.

**Usage**:

```console
$ zanshin organization scan-target-groups get [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan-target-groups insert`

Inserts an already created scan target group.

**Usage**:

```console
$ zanshin organization scan-target-groups insert [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID REGION TENANCY_ID USER_ID KEY_FINGERPRINT
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]
* `REGION`: Oracle cloud region  [required]
* `TENANCY_ID`: Oracle tenancyId  [required]
* `USER_ID`: Oracle userId  [required]
* `KEY_FINGERPRINT`: Oracle Fingerprint used for authentication  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan-target-groups list`

Lists the scan target groups of the user's organization.

**Usage**:

```console
$ zanshin organization scan-target-groups list [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan-target-groups oauth_link`

Retrieve a link to allow the user to authorize zanshin to read info from their scan target group environment.

**Usage**:

```console
$ zanshin organization scan-target-groups oauth_link [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan-target-groups scan-targets`

Gets all scan targets from a specific scan target group.

**Usage**:

```console
$ zanshin organization scan-target-groups scan-targets [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan-target-groups script`

Gets download URL of the scan target group.

**Usage**:

```console
$ zanshin organization scan-target-groups script [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan-target-groups update`

Updates a scan target group.

**Usage**:

```console
$ zanshin organization scan-target-groups update [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID NAME
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]
* `NAME`: new name of the scan target group  [required]

**Options**:

* `--help`: Show this message and exit.

### `zanshin organization scan_target`

Operations on scan targets from organizations the API key owner has direct access to

**Usage**:

```console
$ zanshin organization scan_target [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `check`: Check scan target.
* `create`: Create a new scan target in organization.
* `delete`: Delete scan target of organization.
* `get`: Get scan target of organization.
* `list`: Lists the scan targets of organization this...
* `oauth_link`: Retrieve a link to allow the user to...
* `onboard_aws`: Create a new scan target in organization and...
* `onboard_aws_organization`: For each of selected accounts in AWS...
* `scan`: Operations on scan targets from organizations...
* `update`: Update scan target of organization.

#### `zanshin organization scan_target check`

Check scan target.

**Usage**:

```console
$ zanshin organization scan_target check [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_ID`: UUID of the scan target  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan_target create`

Create a new scan target in organization.

**Usage**:

```console
$ zanshin organization scan_target create [OPTIONS] ORGANIZATION_ID KIND:[AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK] NAME CREDENTIAL [SCHEDULE]
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `KIND:[AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK]`: kind of the scan target  [required]
* `NAME`: name of the scan target  [required]
* `CREDENTIAL`: credential of the scan target  [required]
* `[SCHEDULE]`: schedule of the scan target  [default: {"frequency": "1d", "timeOfDay": "NIGHT"}]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan_target delete`

Delete scan target of organization.

**Usage**:

```console
$ zanshin organization scan_target delete [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_ID`: UUID of the scan target  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan_target get`

Get scan target of organization.

**Usage**:

```console
$ zanshin organization scan_target get [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_ID`: UUID of the scan target  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan_target list`

Lists the scan targets of organization this user has direct access to.

**Usage**:

```console
$ zanshin organization scan_target list [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan_target oauth_link`

Retrieve a link to allow the user to authorize zanshin to read info from their scan target environment.

**Usage**:

```console
$ zanshin organization scan_target oauth_link [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_ID`: UUID of the scan target  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan_target onboard_aws`

Create a new scan target in organization and perform onboard. Requires boto3 and correct AWS IAM Privileges.
Checkout the required AWS IAM privileges here https://github.com/tenchi-security/zanshin-sdk-python/blob/main/zanshinsdk/docs/README.md

**Usage**:

```console
$ zanshin organization scan_target onboard_aws [OPTIONS] REGION ORGANIZATION_ID NAME CREDENTIAL [SCHEDULE]
```

**Arguments**:

* `REGION`: AWS Region to deploy CloudFormation  [required]
* `ORGANIZATION_ID`: UUID of the organization  [required]
* `NAME`: name of the scan target  [required]
* `CREDENTIAL`: credential of the scan target  [required]
* `[SCHEDULE]`: schedule of the scan target  [default: {"frequency": "1d", "timeOfDay": "NIGHT"}]

**Options**:

* `--boto3-profile TEXT`: Boto3 profile name to use for Onboard AWS Account
* `--help`: Show this message and exit.

#### `zanshin organization scan_target onboard_aws_organization`

For each of selected accounts in AWS Organization, creates a new Scan Target in informed zanshin organization
and performs onboarding. Requires boto3 and correct AWS IAM Privileges.
Checkout the required AWS IAM privileges at
https://github.com/tenchi-security/zanshin-cli/blob/main/src/lib/docs/README.md

**Usage**:

```console
$ zanshin organization scan_target onboard_aws_organization [OPTIONS] REGION ORGANIZATION_ID [SCHEDULE]
```

**Arguments**:

* `REGION`: AWS Region to deploy CloudFormation  [required]
* `ORGANIZATION_ID`: UUID of the organization  [required]
* `[SCHEDULE]`: schedule of the scan target  [default: {"frequency": "1d", "timeOfDay": "NIGHT"}]

**Options**:

* `--target-accounts [ALL|MASTER|MEMBERS|NONE]`: choose which accounts to onboard
* `--exclude-account TEXT`: ID, Name, E-mail or ARN of AWS Account not to be onboarded
* `--boto3-profile TEXT`: Boto3 profile name to use for Onboard AWS Account
* `--aws-role-name TEXT`: Name of AWS role that allow access from Management Account to Member accounts  [default: OrganizationAccountAccessRole]
* `--help`: Show this message and exit.

#### `zanshin organization scan_target scan`

Operations on scan targets from organizations the API key owner has direct access to

**Usage**:

```console
$ zanshin organization scan_target scan [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `get`: Get scan of scan target.
* `list`: Lists the scan target scans of organization...
* `start`: Starts a scan on the specified scan target.
* `stop`: Stop a scan on the specified scan target.

##### `zanshin organization scan_target scan get`

Get scan of scan target.

**Usage**:

```console
$ zanshin organization scan_target scan get [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID SCAN_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_ID`: UUID of the scan target  [required]
* `SCAN_ID`: UUID of the scan  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization scan_target scan list`

Lists the scan target scans of organization this user has direct access to.

**Usage**:

```console
$ zanshin organization scan_target scan list [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_ID`: UUID of the scan target  [required]

**Options**:

* `--help`: Show this message and exit.

##### `zanshin organization scan_target scan start`

Starts a scan on the specified scan target.

**Usage**:

```console
$ zanshin organization scan_target scan start [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_ID`: UUID of the scan target  [required]

**Options**:

* `--force / --no-force`: Whether to force running a scan target that has state INVALID_CREDENTIAL or NEW  [default: False]
* `--help`: Show this message and exit.

##### `zanshin organization scan_target scan stop`

Stop a scan on the specified scan target.

**Usage**:

```console
$ zanshin organization scan_target scan stop [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_ID`: UUID of the scan target  [required]

**Options**:

* `--help`: Show this message and exit.

#### `zanshin organization scan_target update`

Update scan target of organization.

**Usage**:

```console
$ zanshin organization scan_target update [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID [NAME] [SCHEDULE]
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `SCAN_TARGET_ID`: UUID of the scan target  [required]
* `[NAME]`: name of the scan target
* `[SCHEDULE]`: schedule of the scan target

**Options**:

* `--help`: Show this message and exit.

### `zanshin organization update`

Gets an organization given its ID.

**Usage**:

```console
$ zanshin organization update [OPTIONS] ORGANIZATION_ID [NAME] [PICTURE] [EMAIL]
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]
* `[NAME]`: Name of the organization
* `[PICTURE]`: Picture of the organization
* `[EMAIL]`: Contact e-mail of the organization

**Options**:

* `--help`: Show this message and exit.

## `zanshin summary`

Operations on summaries the API key owner has direct access to

**Usage**:

```console
$ zanshin summary [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `scan_targets_detail`
* `scan_targets_following`

### `zanshin summary scan_targets_detail`

**Usage**:

```console
$ zanshin summary scan_targets_detail [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--scan-target-ids UUID`: Only summarize scan targets from the specified scan target ids
* `--scan-target-tags TEXT`: Only summarize scan targets from the specified scan target tags
* `--scan-target-kinds [AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK]`: Only summarize scan targets from the specified kinds
* `--alert-severities [CRITICAL|HIGH|MEDIUM|LOW|INFO]`: Only summarize alerts with the specified severities
* `--help`: Show this message and exit.

### `zanshin summary scan_targets_following`

**Usage**:

```console
$ zanshin summary scan_targets_following [OPTIONS] ORGANIZATION_ID
```

**Arguments**:

* `ORGANIZATION_ID`: UUID of the organization  [required]

**Options**:

* `--following-ids UUID`: Only summarize scan targets from the specified following ids
* `--following-tags TEXT`: Only summarize scan targets from the specified following tags
* `--scan-target-kinds [AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK]`: Only summarize scan targets from the specified kinds
* `--alert-severities [CRITICAL|HIGH|MEDIUM|LOW|INFO]`: Only summarize alerts with the specified severities
* `--include-empty-following-tags / --no-include-empty-following-tags`: Include alerts from scan targets without tags
* `--help`: Show this message and exit.

## `zanshin version`

Display the program and Python versions in use.

**Usage**:

```console
$ zanshin version [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tenchi-security/zanshin-cli",
    "name": "zanshincli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Tenchi Security",
    "author_email": "contact@tenchisecurity.com",
    "download_url": "https://files.pythonhosted.org/packages/06/5e/4f1ea3b06ba6e392d2af53f1edb1bfeaf13e6a73da6db43b4e332b7307aa/zanshincli-2.1.0.tar.gz",
    "platform": null,
    "description": "[![PyPI version shields.io](https://img.shields.io/pypi/v/zanshincli.svg)](https://pypi.python.org/pypi/zanshincli/) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/zanshincli.svg)](https://pypi.python.org/pypi/zanshincli/)\n\n# Zanshin CLI\n\nThis Python package provides a command-line utility to interact with the [API of the Zanshin SaaS service](https://api.zanshin.tenchisecurity.com) from [Tenchi Security](https://www.tenchisecurity.com).\n\nIs it based on the Zanshin Python SDK available on [Github](https://github.com/tenchi-security/zanshin-sdk-python) and [PyPI](https://pypi.python.org/pypi/zanshinsdk/).\n\nIf you are a Zanshin customer and have any questions regarding the use of the service, its API or this command-line utility, please get in touch via e-mail at support {at} tenchisecurity {dot} com or via the support widget on the [Zanshin Portal](https://zanshin.tenchisecurity.com).\n\n## Installation\n\nWe recommend the CLI is installed using [pipx](https://pypa.github.io/pipx/installation/), using the command:\n```shell\npipx install zanshincli\n```\n\nWhen a new version is available, you can upgrade it with:\n```shell\npipx upgrade zanshincli\n```\n\n## Configuration File\n\nThe way the SDK and CLI handles credentials is by using a configuration file in the format created by the Python [RawConfigParser](https://docs.python.org/3/library/configparser.html#configparser.RawConfigParser) class.\n\nThe file is located at `~/.tenchi/config`, where `~` is the [current user's home directory](https://docs.python.org/3/library/pathlib.html#pathlib.Path.home).\n\nEach section is treated as a configuration profile, and the SDK and CLI will look for a section called `default` if another is not explicitly selected.\n\nThese are the supported options:\n\n* `api_key` (required) which contains the Zanshin API key obtained at the [Zanshin web portal](https://zanshin.tenchisecurity.com/my-profile).\n* `user_agent` (optional) allows you to override the default user-agent header used by the SDK when making API requests.\n* `api_url` (optional) directs the SDK and CLI to use a different API endpoint than the default (https://api.zanshin.tenchisecurity.com).\n\nYou can populate the file with the `zanshin init` command of the CLI tool. This is what a minimal configuration file would look like:\n```ini\n[default]\napi_key = abcdefghijklmnopqrstuvxyz\n```\n\n## Using the CLI Utility\n\nThis package installs a command-line utility called `zanshin` built with the great [Typer](https://typer.tiangolo.com/) package.\n\nYou can obtain help by using the `--help` option.\n\nKeep in mind that when options are present that expect multiple values, these need to be provided as multiple options. For example if you wanted to list an organization's alerts filtering by the OPEN and RISK_ACCEPTED states, this is the command you would use:\n```shell\n$ zanshin organization alerts d48edaa6-871a-4082-a196-4daab372d4a1 --state OPEN --state RISK_ACCEPTED\n```\n\n## Command Reference\n# `zanshin`\n\nCommand-line utility to interact with the Zanshin SaaS service offered by Tenchi Security\n(https://tenchisecurity.com), go to https://github.com/tenchi-security/zanshin-cli for license, source code and\ndocumentation\n\n**Usage**:\n\n```console\n$ zanshin [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--profile TEXT`: Configuration file section to read API keyand configuration from  [default: default]\n* `--format [json|table|csv|html]`: Output format to use for list operations  [default: json]\n* `--verbose / --no-verbose`: Print more information to stderr  [default: True]\n* `--debug / --no-debug`: Enable debug logging in the SDK  [default: False]\n* `--install-completion`: Install completion for the current shell.\n* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `account`: Operations on user the API key owner has...\n* `alert`: Operations on alerts the API key owner has...\n* `init`: Update settings on configuration file.\n* `organization`: Operations on organizations the API key owner...\n* `summary`: Operations on summaries the API key owner has...\n* `version`: Display the program and Python versions in...\n\n## `zanshin account`\n\nOperations on user the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin account [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `api_key`: Operations on API keys from account the API...\n* `invites`: Operations on invites from account the API...\n* `me`: Returns the details of the user account that...\n\n### `zanshin account api_key`\n\nOperations on API keys from account the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin account api_key [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `create`: Creates a new API key for the current logged...\n* `delete`: Deletes a given API key by its id, it will...\n* `list`: Iterates over the API keys of current logged...\n\n#### `zanshin account api_key create`\n\nCreates a new API key for the current logged user, API Keys can be used to interact with the zanshin api directly\na behalf of that user.\n\n**Usage**:\n\n```console\n$ zanshin account api_key create [OPTIONS] NAME\n```\n\n**Arguments**:\n\n* `NAME`: Name of the new API key  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin account api_key delete`\n\nDeletes a given API key by its id, it will only work if the informed ID belongs to the current logged user.\n\n**Usage**:\n\n```console\n$ zanshin account api_key delete [OPTIONS] API_KEY_ID\n```\n\n**Arguments**:\n\n* `API_KEY_ID`: UUID of the invite to delete  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin account api_key list`\n\nIterates over the API keys of current logged user.\n\n**Usage**:\n\n```console\n$ zanshin account api_key list [OPTIONS]\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n### `zanshin account invites`\n\nOperations on invites from account the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin account invites [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `accept`: Accepts an invitation with the informed ID,...\n* `get`: Gets a specific invitation details, it only...\n* `list`: Iterates over the invites of current logged...\n\n#### `zanshin account invites accept`\n\nAccepts an invitation with the informed ID, it only works if the user accepting the invitation is the user that\nreceived the invitation.\n\n**Usage**:\n\n```console\n$ zanshin account invites accept [OPTIONS] INVITE_ID\n```\n\n**Arguments**:\n\n* `INVITE_ID`: UUID of the invite  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin account invites get`\n\nGets a specific invitation details, it only works if the invitation was made for the current logged user.\n\n**Usage**:\n\n```console\n$ zanshin account invites get [OPTIONS] INVITE_ID\n```\n\n**Arguments**:\n\n* `INVITE_ID`: UUID of the invite  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin account invites list`\n\nIterates over the invites of current logged user.\n\n**Usage**:\n\n```console\n$ zanshin account invites list [OPTIONS]\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n### `zanshin account me`\n\nReturns the details of the user account that owns the API key used by this Connection instance\n\n**Usage**:\n\n```console\n$ zanshin account me [OPTIONS]\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n## `zanshin alert`\n\nOperations on alerts the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin alert [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `batch_update_state`\n* `get`: Returns details about a specified alert\n* `list`: List alerts from a given organization, with...\n* `list_following`: List following alerts from a given...\n* `list_grouped`: List grouped alerts from a given...\n* `list_grouped_following`: List grouped following alerts from a given...\n* `list_history`: List alerts from a given organization, with...\n* `list_history_following`: List alerts from a given organization, with...\n* `update`: Updates the alert.\n\n### `zanshin alert batch_update_state`\n\n**Usage**:\n\n```console\n$ zanshin alert batch_update_state [OPTIONS] ORGANIZATION_ID STATE:[OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED] COMMENT DRY_RUN\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization that owns the alerts  [required]\n* `STATE:[OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED]`: New state to set for the alerts  [required]\n* `COMMENT`: Comment explaining this batch update  [required]\n* `DRY_RUN`: If true, performs a simulation without making actual changes  [required]\n\n**Options**:\n\n* `--scan-target-ids UUID`: List of UUIDs representing the scan targets to filter by\n* `--alert-ids TEXT`: List of alert IDs to update\n* `--states [OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED]`: List of existing alert states to filter alerts by\n* `--rules TEXT`: List of rules to filter alerts by\n* `--severities TEXT`: List of severities to filter alerts by (e.g., 'low', 'medium', 'high')\n* `--include-empty-scan-target-tags`: Whether to include alerts with scan targets that have no associated tags\n* `--help`: Show this message and exit.\n\n### `zanshin alert get`\n\nReturns details about a specified alert\n\n**Usage**:\n\n```console\n$ zanshin alert get [OPTIONS] ALERT_ID\n```\n\n**Arguments**:\n\n* `ALERT_ID`: UUID of the alert to look up  [required]\n\n**Options**:\n\n* `--list-history / --no-list-history`: History of this alert  [default: False]\n* `--list-comments / --no-list-comments`: Comments of this alert  [default: False]\n* `--help`: Show this message and exit.\n\n### `zanshin alert list`\n\nList alerts from a given organization, with optional filters by scan target, state or severity.\n\n**Usage**:\n\n```console\n$ zanshin alert list [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--scan-target-ids UUID`: Only list alerts from the specified scan targets\n* `--scan-target-tags TEXT`: Only lists alerts from the specified tags\n* `--include-empty-scan-target-tags / --no-include-empty-scan-target-tags`: Include alerts from scan targets without tags\n* `--states [OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED]`: Only list alerts in the specified states  [default: OPEN, IN_PROGRESS, RISK_ACCEPTED, MITIGATING_CONTROL, FALSE_POSITIVE]\n* `--severities [CRITICAL|HIGH|MEDIUM|LOW|INFO]`: Only list alerts with the specified severities  [default: CRITICAL, HIGH, MEDIUM, LOW, INFO]\n* `--lang [pt-BR|en-US]`: Show alert titles in the specified language  [default: en-US]\n* `--created-at-start TEXT`: Date created starts at (format YYYY-MM-DDTHH:MM:SS)\n* `--created-at-end TEXT`: Date created ends at (format YYYY-MM-DDTHH:MM:SS)\n* `--updated-at-start TEXT`: Date updated starts at (format YYYY-MM-DDTHH:MM:SS)\n* `--updated-at-end TEXT`: Date updated ends at (format YYYY-MM-DDTHH:MM:SS)\n* `--search TEXT`: Text to search for in the alerts  [default: ]\n* `--sort [asc|desc]`: Sort order\n* `--rules TEXT`: Only list alerts in the specified rules\n* `--opened-at-start TEXT`: Date opened starts at (format YYYY-MM-DDTHH:MM:SS)\n* `--opened-at-end TEXT`: Date opened ends at (format YYYY-MM-DDTHH:MM:SS)\n* `--resolved-at-start TEXT`: Date resolved starts at (format YYYY-MM-DDTHH:MM:SS)\n* `--resolved-at-end TEXT`: Date resolved ends at (format YYYY-MM-DDTHH:MM:SS)\n* `--cursor TEXT`: Cursor for pagination\n* `--order [scanTargetId|resource|rule|severity|state|openedAt|resolvedAt|createdAt|updatedAt]`: Field to sort results on  [default: severity]\n* `--help`: Show this message and exit.\n\n### `zanshin alert list_following`\n\nList following alerts from a given organization, with optional filters by following ids, state or severity.\n\n**Usage**:\n\n```console\n$ zanshin alert list_following [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--following-ids UUID`: Only list alerts from the specified scan targets\n* `--following-tags UUID`: Only lists alerts from the specified tags\n* `--include-empty-following-tags / --no-include-empty-following-tags`: Include alerts from scan targets without tags\n* `--states [OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED]`: Only list alerts in the specified states  [default: OPEN, IN_PROGRESS, RISK_ACCEPTED, MITIGATING_CONTROL, FALSE_POSITIVE]\n* `--severities [CRITICAL|HIGH|MEDIUM|LOW|INFO]`: Only list alerts with the specified severities  [default: CRITICAL, HIGH, MEDIUM, LOW, INFO]\n* `--lang [pt-BR|en-US]`: Show alert titles in the specified language  [default: en-US]\n* `--created-at-start TEXT`: Date created starts at (format YYYY-MM-DDTHH:MM:SS)\n* `--created-at-end TEXT`: Date created ends at (format YYYY-MM-DDTHH:MM:SS)\n* `--updated-at-start TEXT`: Date updated starts at (format YYYY-MM-DDTHH:MM:SS)\n* `--updated-at-end TEXT`: Date updated ends at (format YYYY-MM-DDTHH:MM:SS)\n* `--search TEXT`: Text to search for in the alerts  [default: ]\n* `--sort [asc|desc]`: Sort order\n* `--rules TEXT`: Only list alerts in the specified rules\n* `--opened-at-start TEXT`: Date opened starts at (format YYYY-MM-DDTHH:MM:SS)\n* `--opened-at-end TEXT`: Date opened ends at (format YYYY-MM-DDTHH:MM:SS)\n* `--resolved-at-start TEXT`: Date resolved starts at (format YYYY-MM-DDTHH:MM:SS)\n* `--resolved-at-end TEXT`: Date resolved ends at (format YYYY-MM-DDTHH:MM:SS)\n* `--cursor TEXT`: Cursor for pagination\n* `--order [scanTargetId|resource|rule|severity|state|openedAt|resolvedAt|createdAt|updatedAt]`: Field to sort results on  [default: severity]\n* `--help`: Show this message and exit.\n\n### `zanshin alert list_grouped`\n\nList grouped alerts from a given organization, with optional filters by scan target, state or severity.\n\n**Usage**:\n\n```console\n$ zanshin alert list_grouped [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--scan-target-id UUID`: Only list alerts from the specified scan targets\n* `--state [OPEN|ACTIVE|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE|CLOSED]`: Only list alerts in the specified states  [default: OPEN, IN_PROGRESS, RISK_ACCEPTED, MITIGATING_CONTROL, FALSE_POSITIVE]\n* `--severity [CRITICAL|HIGH|MEDIUM|LOW|INFO]`: Only list alerts with the specified severities  [default: CRITICAL, HIGH, MEDIUM, LOW, INFO]\n* `--help`: Show this message and exit.\n\n### `zanshin alert list_grouped_following`\n\nList grouped following alerts from a given organization, with optional filters by scan target, state or severity.\n\n**Usage**:\n\n```console\n$ zanshin alert list_grouped_following [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--following-ids UUID`: Only list alerts from the specified scan targets\n* `--following-tags UUID`: Only lists alerts from the specified tags\n* `--include-empty-following-tags / --no-include-empty-following-tags`: Include alerts from scan targets without tags\n* `--cursor TEXT`: Cursor for pagination\n* `--order [scanTargetId|resource|rule|severity|state|openedAt|resolvedAt|createdAt|updatedAt]`: Field to sort results on  [default: severity]\n* `--help`: Show this message and exit.\n\n### `zanshin alert list_history`\n\nList alerts from a given organization, with optional filters by scan target, state or severity\n\n**Usage**:\n\n```console\n$ zanshin alert list_history [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--scan-target-id UUID`: Only list alerts from the specified scan targets\n* `--cursor TEXT`: Cursor for pagination\n* `--persist / --no-persist`: Persist  [default: False]\n* `--help`: Show this message and exit.\n\n### `zanshin alert list_history_following`\n\nList alerts from a given organization, with optional filters by scan target, state or severity\n\n**Usage**:\n\n```console\n$ zanshin alert list_history_following [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--following-ids UUID`: Only list alerts from the specified scan targets\n* `--cursor TEXT`: Cursor for pagination\n* `--persist / --no-persist`: Persist  [default: False]\n* `--help`: Show this message and exit.\n\n### `zanshin alert update`\n\nUpdates the alert.\n\n**Usage**:\n\n```console\n$ zanshin alert update [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID ALERT_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization that owns the alert  [required]\n* `SCAN_TARGET_ID`: UUID of the scan target associated with the alert  [required]\n* `ALERT_ID`: UUID of the alert  [required]\n\n**Options**:\n\n* `--state [OPEN|IN_PROGRESS|RISK_ACCEPTED|MITIGATING_CONTROL|FALSE_POSITIVE]`: New alert state\n* `--labels TEXT`: Custom label(s) for the alert\n* `--comment TEXT`: A comment when setting the alert state to RISK_ACCEPTED, FALSE_POSITIVE, MITIGATING_CONTROL\n* `--help`: Show this message and exit.\n\n## `zanshin init`\n\nUpdate settings on configuration file.\n\n**Usage**:\n\n```console\n$ zanshin init [OPTIONS]\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n## `zanshin organization`\n\nOperations on organizations the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin organization [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `create`: Creates an organization.\n* `delete`: Deletes an organization given its ID.\n* `follower`: Operations on followers of organization the...\n* `following`: Operations on following of organization the...\n* `get`: Gets an organization given its ID.\n* `list`: Lists the organizations this user has direct...\n* `member`: Operations on members of organization the API...\n* `scan-target-groups`: Operations on organizations scan target...\n* `scan_target`: Operations on scan targets from organizations...\n* `update`: Gets an organization given its ID.\n\n### `zanshin organization create`\n\nCreates an organization.\n\n**Usage**:\n\n```console\n$ zanshin organization create [OPTIONS] NAME\n```\n\n**Arguments**:\n\n* `NAME`: Name of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n### `zanshin organization delete`\n\nDeletes an organization given its ID.\n\n**Usage**:\n\n```console\n$ zanshin organization delete [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n### `zanshin organization follower`\n\nOperations on followers of organization the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin organization follower [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `list`: Lists the followers of organization this user...\n* `request`: Operations on follower requests of...\n* `stop`: Stops one organization follower of another.\n\n#### `zanshin organization follower list`\n\nLists the followers of organization this user has direct access to.\n\n**Usage**:\n\n```console\n$ zanshin organization follower list [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization follower request`\n\nOperations on follower requests of organization the API key owner has directaccess to\n\n**Usage**:\n\n```console\n$ zanshin organization follower request [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `create`: Create organization follower request.\n* `delete`: Delete organization follower request.\n* `get`: Get organization follower request.\n* `list`: Lists the follower requests of organization...\n\n##### `zanshin organization follower request create`\n\nCreate organization follower request.\n\n**Usage**:\n\n```console\n$ zanshin organization follower request create [OPTIONS] ORGANIZATION_ID TOKEN\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `TOKEN`: Token of the follower request  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization follower request delete`\n\nDelete organization follower request.\n\n**Usage**:\n\n```console\n$ zanshin organization follower request delete [OPTIONS] ORGANIZATION_ID TOKEN\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `TOKEN`: Token of the follower request  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization follower request get`\n\nGet organization follower request.\n\n**Usage**:\n\n```console\n$ zanshin organization follower request get [OPTIONS] ORGANIZATION_ID TOKEN\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `TOKEN`: Token of the follower request  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization follower request list`\n\nLists the follower requests of organization this user has direct access to.\n\n**Usage**:\n\n```console\n$ zanshin organization follower request list [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization follower stop`\n\nStops one organization follower of another.\n\n**Usage**:\n\n```console\n$ zanshin organization follower stop [OPTIONS] ORGANIZATION_ID ORGANIZATION_FOLLOWER_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `ORGANIZATION_FOLLOWER_ID`: UUID of the organization follower  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n### `zanshin organization following`\n\nOperations on following of organization the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin organization following [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `list`: Lists the following of organization this user...\n* `request`: Operations on following requests of...\n* `stop`: Stops one organization following of another.\n\n#### `zanshin organization following list`\n\nLists the following of organization this user has direct access to.\n\n**Usage**:\n\n```console\n$ zanshin organization following list [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization following request`\n\nOperations on following requests of organization the API key owner hasdirect access to\n\n**Usage**:\n\n```console\n$ zanshin organization following request [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `accept`: Accepts a request to follow another...\n* `decline`: Declines a request to follow another...\n* `get`: Returns a request received by an organization...\n* `list`: Lists the following requests of organization...\n\n##### `zanshin organization following request accept`\n\nAccepts a request to follow another organization.\n\n**Usage**:\n\n```console\n$ zanshin organization following request accept [OPTIONS] ORGANIZATION_ID FOLLOWING_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `FOLLOWING_ID`: UUID of the following request  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization following request decline`\n\nDeclines a request to follow another organization.\n\n**Usage**:\n\n```console\n$ zanshin organization following request decline [OPTIONS] ORGANIZATION_ID FOLLOWING_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `FOLLOWING_ID`: UUID of the following request  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization following request get`\n\nReturns a request received by an organization to follow another.\n\n**Usage**:\n\n```console\n$ zanshin organization following request get [OPTIONS] ORGANIZATION_ID FOLLOWING_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `FOLLOWING_ID`: UUID of the following request  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization following request list`\n\nLists the following requests of organization this user has direct access to.\n\n**Usage**:\n\n```console\n$ zanshin organization following request list [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization following stop`\n\nStops one organization following of another.\n\n**Usage**:\n\n```console\n$ zanshin organization following stop [OPTIONS] ORGANIZATION_ID ORGANIZATION_FOLLOWING_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `ORGANIZATION_FOLLOWING_ID`: UUID of the organization following  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n### `zanshin organization get`\n\nGets an organization given its ID.\n\n**Usage**:\n\n```console\n$ zanshin organization get [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n### `zanshin organization list`\n\nLists the organizations this user has direct access to as a member.\n\n**Usage**:\n\n```console\n$ zanshin organization list [OPTIONS]\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n### `zanshin organization member`\n\nOperations on members of organization the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin organization member [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `delete`: Delete organization member.\n* `get`: Get organization member.\n* `invite`: Operations on member invites of organization...\n* `list`: Lists the members of organization this user...\n* `update`: Update organization member.\n\n#### `zanshin organization member delete`\n\nDelete organization member.\n\n**Usage**:\n\n```console\n$ zanshin organization member delete [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `ORGANIZATION_MEMBER_ID`: UUID of the organization member  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization member get`\n\nGet organization member.\n\n**Usage**:\n\n```console\n$ zanshin organization member get [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `ORGANIZATION_MEMBER_ID`: UUID of the organization member  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization member invite`\n\nOperations on member invites of organization the API key owner has directaccess to\n\n**Usage**:\n\n```console\n$ zanshin organization member invite [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `create`: Create organization member invite.\n* `delete`: Delete organization member invite.\n* `get`: Get organization member invite.\n* `list`: Lists the member invites of organization this...\n* `resend`: Resend organization member invitation.\n\n##### `zanshin organization member invite create`\n\nCreate organization member invite.\n\n**Usage**:\n\n```console\n$ zanshin organization member invite create [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_INVITE_EMAIL\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `ORGANIZATION_MEMBER_INVITE_EMAIL`: E-mail of the organization member  [required]\n\n**Options**:\n\n* `--organization-member-invite-role [ADMIN]`: Role of the organization member  [default: ADMIN]\n* `--help`: Show this message and exit.\n\n##### `zanshin organization member invite delete`\n\nDelete organization member invite.\n\n**Usage**:\n\n```console\n$ zanshin organization member invite delete [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_INVITE_EMAIL\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `ORGANIZATION_MEMBER_INVITE_EMAIL`: E-mail of the organization member  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization member invite get`\n\nGet organization member invite.\n\n**Usage**:\n\n```console\n$ zanshin organization member invite get [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_INVITE_EMAIL\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `ORGANIZATION_MEMBER_INVITE_EMAIL`: E-mail of the organization member invite  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization member invite list`\n\nLists the member invites of organization this user has direct access to.\n\n**Usage**:\n\n```console\n$ zanshin organization member invite list [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization member invite resend`\n\nResend organization member invitation.\n\n**Usage**:\n\n```console\n$ zanshin organization member invite resend [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_INVITE_EMAIL\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `ORGANIZATION_MEMBER_INVITE_EMAIL`: E-mail of the organization member  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization member list`\n\nLists the members of organization this user has direct access to.\n\n**Usage**:\n\n```console\n$ zanshin organization member list [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization member update`\n\nUpdate organization member.\n\n**Usage**:\n\n```console\n$ zanshin organization member update [OPTIONS] ORGANIZATION_ID ORGANIZATION_MEMBER_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `ORGANIZATION_MEMBER_ID`: UUID of the organization member  [required]\n\n**Options**:\n\n* `--role [ADMIN]`: Role of the organization member  [default: ADMIN]\n* `--help`: Show this message and exit.\n\n### `zanshin organization scan-target-groups`\n\nOperations on organizations scan target groups the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `compartments`: Iterates over the compartments of a scan...\n* `create`: Creates a scan target group for the...\n* `create-by-compartments`: Creates Scan Targets from previous listed...\n* `delete`: Deletes the scan target group of the...\n* `get`: Gets details of the scan target group given...\n* `insert`: Inserts an already created scan target group.\n* `list`: Lists the scan target groups of the user's...\n* `oauth_link`: Retrieve a link to allow the user to...\n* `scan-targets`: Gets all scan targets from a specific scan...\n* `script`: Gets download URL of the scan target group.\n* `update`: Updates a scan target group.\n\n#### `zanshin organization scan-target-groups compartments`\n\nIterates over the compartments of a scan target group.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups compartments [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan-target-groups create`\n\nCreates a scan target group for the organization.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups create [OPTIONS] ORGANIZATION_ID KIND:[AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK] NAME\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `KIND:[AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK]`: kind of the scan target group. Should be 'ORACLE', 'BITBUCKET' or 'GITLAB'  [required]\n* `NAME`: name of the scan target group  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan-target-groups create-by-compartments`\n\nCreates Scan Targets from previous listed compartments inside the scan target group.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups create-by-compartments [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID NAME OCID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]\n* `NAME`: Compartment name  [required]\n* `OCID`: Oracle Compartment Id  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan-target-groups delete`\n\nDeletes the scan target group of the organization.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups delete [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan-target-groups get`\n\nGets details of the scan target group given its ID.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups get [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan-target-groups insert`\n\nInserts an already created scan target group.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups insert [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID REGION TENANCY_ID USER_ID KEY_FINGERPRINT\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]\n* `REGION`: Oracle cloud region  [required]\n* `TENANCY_ID`: Oracle tenancyId  [required]\n* `USER_ID`: Oracle userId  [required]\n* `KEY_FINGERPRINT`: Oracle Fingerprint used for authentication  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan-target-groups list`\n\nLists the scan target groups of the user's organization.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups list [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan-target-groups oauth_link`\n\nRetrieve a link to allow the user to authorize zanshin to read info from their scan target group environment.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups oauth_link [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan-target-groups scan-targets`\n\nGets all scan targets from a specific scan target group.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups scan-targets [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan-target-groups script`\n\nGets download URL of the scan target group.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups script [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan-target-groups update`\n\nUpdates a scan target group.\n\n**Usage**:\n\n```console\n$ zanshin organization scan-target-groups update [OPTIONS] ORGANIZATION_ID SCAN_TARGET_GROUP_ID NAME\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_GROUP_ID`: UUID of the scan target group  [required]\n* `NAME`: new name of the scan target group  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n### `zanshin organization scan_target`\n\nOperations on scan targets from organizations the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `check`: Check scan target.\n* `create`: Create a new scan target in organization.\n* `delete`: Delete scan target of organization.\n* `get`: Get scan target of organization.\n* `list`: Lists the scan targets of organization this...\n* `oauth_link`: Retrieve a link to allow the user to...\n* `onboard_aws`: Create a new scan target in organization and...\n* `onboard_aws_organization`: For each of selected accounts in AWS...\n* `scan`: Operations on scan targets from organizations...\n* `update`: Update scan target of organization.\n\n#### `zanshin organization scan_target check`\n\nCheck scan target.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target check [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_ID`: UUID of the scan target  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan_target create`\n\nCreate a new scan target in organization.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target create [OPTIONS] ORGANIZATION_ID KIND:[AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK] NAME CREDENTIAL [SCHEDULE]\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `KIND:[AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK]`: kind of the scan target  [required]\n* `NAME`: name of the scan target  [required]\n* `CREDENTIAL`: credential of the scan target  [required]\n* `[SCHEDULE]`: schedule of the scan target  [default: {\"frequency\": \"1d\", \"timeOfDay\": \"NIGHT\"}]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan_target delete`\n\nDelete scan target of organization.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target delete [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_ID`: UUID of the scan target  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan_target get`\n\nGet scan target of organization.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target get [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_ID`: UUID of the scan target  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan_target list`\n\nLists the scan targets of organization this user has direct access to.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target list [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan_target oauth_link`\n\nRetrieve a link to allow the user to authorize zanshin to read info from their scan target environment.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target oauth_link [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_ID`: UUID of the scan target  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan_target onboard_aws`\n\nCreate a new scan target in organization and perform onboard. Requires boto3 and correct AWS IAM Privileges.\nCheckout the required AWS IAM privileges here https://github.com/tenchi-security/zanshin-sdk-python/blob/main/zanshinsdk/docs/README.md\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target onboard_aws [OPTIONS] REGION ORGANIZATION_ID NAME CREDENTIAL [SCHEDULE]\n```\n\n**Arguments**:\n\n* `REGION`: AWS Region to deploy CloudFormation  [required]\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `NAME`: name of the scan target  [required]\n* `CREDENTIAL`: credential of the scan target  [required]\n* `[SCHEDULE]`: schedule of the scan target  [default: {\"frequency\": \"1d\", \"timeOfDay\": \"NIGHT\"}]\n\n**Options**:\n\n* `--boto3-profile TEXT`: Boto3 profile name to use for Onboard AWS Account\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan_target onboard_aws_organization`\n\nFor each of selected accounts in AWS Organization, creates a new Scan Target in informed zanshin organization\nand performs onboarding. Requires boto3 and correct AWS IAM Privileges.\nCheckout the required AWS IAM privileges at\nhttps://github.com/tenchi-security/zanshin-cli/blob/main/src/lib/docs/README.md\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target onboard_aws_organization [OPTIONS] REGION ORGANIZATION_ID [SCHEDULE]\n```\n\n**Arguments**:\n\n* `REGION`: AWS Region to deploy CloudFormation  [required]\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `[SCHEDULE]`: schedule of the scan target  [default: {\"frequency\": \"1d\", \"timeOfDay\": \"NIGHT\"}]\n\n**Options**:\n\n* `--target-accounts [ALL|MASTER|MEMBERS|NONE]`: choose which accounts to onboard\n* `--exclude-account TEXT`: ID, Name, E-mail or ARN of AWS Account not to be onboarded\n* `--boto3-profile TEXT`: Boto3 profile name to use for Onboard AWS Account\n* `--aws-role-name TEXT`: Name of AWS role that allow access from Management Account to Member accounts  [default: OrganizationAccountAccessRole]\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan_target scan`\n\nOperations on scan targets from organizations the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target scan [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `get`: Get scan of scan target.\n* `list`: Lists the scan target scans of organization...\n* `start`: Starts a scan on the specified scan target.\n* `stop`: Stop a scan on the specified scan target.\n\n##### `zanshin organization scan_target scan get`\n\nGet scan of scan target.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target scan get [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID SCAN_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_ID`: UUID of the scan target  [required]\n* `SCAN_ID`: UUID of the scan  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization scan_target scan list`\n\nLists the scan target scans of organization this user has direct access to.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target scan list [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_ID`: UUID of the scan target  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n##### `zanshin organization scan_target scan start`\n\nStarts a scan on the specified scan target.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target scan start [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_ID`: UUID of the scan target  [required]\n\n**Options**:\n\n* `--force / --no-force`: Whether to force running a scan target that has state INVALID_CREDENTIAL or NEW  [default: False]\n* `--help`: Show this message and exit.\n\n##### `zanshin organization scan_target scan stop`\n\nStop a scan on the specified scan target.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target scan stop [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_ID`: UUID of the scan target  [required]\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n#### `zanshin organization scan_target update`\n\nUpdate scan target of organization.\n\n**Usage**:\n\n```console\n$ zanshin organization scan_target update [OPTIONS] ORGANIZATION_ID SCAN_TARGET_ID [NAME] [SCHEDULE]\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `SCAN_TARGET_ID`: UUID of the scan target  [required]\n* `[NAME]`: name of the scan target\n* `[SCHEDULE]`: schedule of the scan target\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n### `zanshin organization update`\n\nGets an organization given its ID.\n\n**Usage**:\n\n```console\n$ zanshin organization update [OPTIONS] ORGANIZATION_ID [NAME] [PICTURE] [EMAIL]\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n* `[NAME]`: Name of the organization\n* `[PICTURE]`: Picture of the organization\n* `[EMAIL]`: Contact e-mail of the organization\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n## `zanshin summary`\n\nOperations on summaries the API key owner has direct access to\n\n**Usage**:\n\n```console\n$ zanshin summary [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n\n**Commands**:\n\n* `scan_targets_detail`\n* `scan_targets_following`\n\n### `zanshin summary scan_targets_detail`\n\n**Usage**:\n\n```console\n$ zanshin summary scan_targets_detail [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--scan-target-ids UUID`: Only summarize scan targets from the specified scan target ids\n* `--scan-target-tags TEXT`: Only summarize scan targets from the specified scan target tags\n* `--scan-target-kinds [AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK]`: Only summarize scan targets from the specified kinds\n* `--alert-severities [CRITICAL|HIGH|MEDIUM|LOW|INFO]`: Only summarize alerts with the specified severities\n* `--help`: Show this message and exit.\n\n### `zanshin summary scan_targets_following`\n\n**Usage**:\n\n```console\n$ zanshin summary scan_targets_following [OPTIONS] ORGANIZATION_ID\n```\n\n**Arguments**:\n\n* `ORGANIZATION_ID`: UUID of the organization  [required]\n\n**Options**:\n\n* `--following-ids UUID`: Only summarize scan targets from the specified following ids\n* `--following-tags TEXT`: Only summarize scan targets from the specified following tags\n* `--scan-target-kinds [AWS|AZURE|GCP|BITBUCKET|DOMAIN|GITHUB|GITLAB|GWORKSPACE|HUAWEI|JIRA|MS365|ORACLE|SALESFORCE|SLACK|ZENDESK]`: Only summarize scan targets from the specified kinds\n* `--alert-severities [CRITICAL|HIGH|MEDIUM|LOW|INFO]`: Only summarize alerts with the specified severities\n* `--include-empty-following-tags / --no-include-empty-following-tags`: Include alerts from scan targets without tags\n* `--help`: Show this message and exit.\n\n## `zanshin version`\n\nDisplay the program and Python versions in use.\n\n**Usage**:\n\n```console\n$ zanshin version [OPTIONS]\n```\n\n**Options**:\n\n* `--help`: Show this message and exit.\n",
    "bugtrack_url": null,
    "license": "Apache Software License",
    "summary": "Python command line utility to the Tenchi Security Zanshin API v1",
    "version": "2.1.0",
    "project_urls": {
        "Homepage": "https://github.com/tenchi-security/zanshin-cli"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f59a76ed24149c056e495e3bb2980447dabf362c6d40e596c8811fc564310c0",
                "md5": "567035f1e42496527c00b9e2c072f3c9",
                "sha256": "a2443bb335e00c1f89fcfd711cebfff08f47d1b84ef3df2736accc596982d709"
            },
            "downloads": -1,
            "filename": "zanshincli-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "567035f1e42496527c00b9e2c072f3c9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 37225,
            "upload_time": "2025-02-19T20:03:26",
            "upload_time_iso_8601": "2025-02-19T20:03:26.681544Z",
            "url": "https://files.pythonhosted.org/packages/5f/59/a76ed24149c056e495e3bb2980447dabf362c6d40e596c8811fc564310c0/zanshincli-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "065e4f1ea3b06ba6e392d2af53f1edb1bfeaf13e6a73da6db43b4e332b7307aa",
                "md5": "011a81cb522a935b993e6bccfdac9b1d",
                "sha256": "8004e0c219ab795ed13001e7886a4a635addbe89676210dad7b2daa66b564ee9"
            },
            "downloads": -1,
            "filename": "zanshincli-2.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "011a81cb522a935b993e6bccfdac9b1d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 32096,
            "upload_time": "2025-02-19T20:03:28",
            "upload_time_iso_8601": "2025-02-19T20:03:28.324388Z",
            "url": "https://files.pythonhosted.org/packages/06/5e/4f1ea3b06ba6e392d2af53f1edb1bfeaf13e6a73da6db43b4e332b7307aa/zanshincli-2.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-19 20:03:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tenchi-security",
    "github_project": "zanshin-cli",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "annotated-types",
            "specs": [
                [
                    "==",
                    "0.7.0"
                ]
            ]
        },
        {
            "name": "anyio",
            "specs": [
                [
                    "==",
                    "4.4.0"
                ]
            ]
        },
        {
            "name": "boto3-type-annotations",
            "specs": [
                [
                    "==",
                    "0.3.1"
                ]
            ]
        },
        {
            "name": "boto3",
            "specs": [
                [
                    "==",
                    "1.34.118"
                ]
            ]
        },
        {
            "name": "botocore",
            "specs": [
                [
                    "==",
                    "1.34.118"
                ]
            ]
        },
        {
            "name": "certifi",
            "specs": [
                [
                    "==",
                    "2024.6.2"
                ]
            ]
        },
        {
            "name": "click",
            "specs": [
                [
                    "==",
                    "8.1.7"
                ]
            ]
        },
        {
            "name": "colorama",
            "specs": [
                [
                    "==",
                    "0.4.6"
                ]
            ]
        },
        {
            "name": "exceptiongroup",
            "specs": [
                [
                    "==",
                    "1.2.1"
                ]
            ]
        },
        {
            "name": "h11",
            "specs": [
                [
                    "==",
                    "0.14.0"
                ]
            ]
        },
        {
            "name": "httpcore",
            "specs": [
                [
                    "==",
                    "1.0.5"
                ]
            ]
        },
        {
            "name": "httpx",
            "specs": [
                [
                    "==",
                    "0.27.0"
                ]
            ]
        },
        {
            "name": "idna",
            "specs": [
                [
                    "==",
                    "3.7"
                ]
            ]
        },
        {
            "name": "jmespath",
            "specs": [
                [
                    "==",
                    "1.0.1"
                ]
            ]
        },
        {
            "name": "markdown-it-py",
            "specs": [
                [
                    "==",
                    "3.0.0"
                ]
            ]
        },
        {
            "name": "mdurl",
            "specs": [
                [
                    "==",
                    "0.1.2"
                ]
            ]
        },
        {
            "name": "prettytable",
            "specs": [
                [
                    "==",
                    "3.5.0"
                ]
            ]
        },
        {
            "name": "pydantic-core",
            "specs": [
                [
                    "==",
                    "2.18.4"
                ]
            ]
        },
        {
            "name": "pydantic",
            "specs": [
                [
                    "==",
                    "2.7.3"
                ]
            ]
        },
        {
            "name": "pygments",
            "specs": [
                [
                    "==",
                    "2.18.0"
                ]
            ]
        },
        {
            "name": "python-dateutil",
            "specs": [
                [
                    "==",
                    "2.9.0.post0"
                ]
            ]
        },
        {
            "name": "rich",
            "specs": [
                [
                    "==",
                    "13.7.1"
                ]
            ]
        },
        {
            "name": "s3transfer",
            "specs": [
                [
                    "==",
                    "0.10.1"
                ]
            ]
        },
        {
            "name": "shellingham",
            "specs": [
                [
                    "==",
                    "1.5.4"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    "==",
                    "1.16.0"
                ]
            ]
        },
        {
            "name": "sniffio",
            "specs": [
                [
                    "==",
                    "1.3.1"
                ]
            ]
        },
        {
            "name": "typer",
            "specs": [
                [
                    "==",
                    "0.12.3"
                ]
            ]
        },
        {
            "name": "typing-extensions",
            "specs": [
                [
                    "==",
                    "4.12.1"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "1.26.18"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "2.2.1"
                ]
            ]
        },
        {
            "name": "wcwidth",
            "specs": [
                [
                    "==",
                    "0.2.13"
                ]
            ]
        },
        {
            "name": "zanshin-sdk-python",
            "specs": [
                [
                    "==",
                    "1.6.3.1"
                ]
            ]
        }
    ],
    "lcname": "zanshincli"
}
        
Elapsed time: 1.57079s