Skip to content

Commit

Permalink
Document CLI flags exclude-labels, exclude-services and server. (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
orishoshan committed Aug 9, 2023
1 parent b53b266 commit d1c2b52
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions docs/reference/cli/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@ Uses GraphViz (specifically go-graphviz) to generate the image.

#### Options

| Name | Default | Description |
|-------------------------|---------|-------------------------------------------------------------|
| `--format` | `png` | Image output format: "png" or "jpg". |
| `-n` or `--namespaces` | | Include only clients in these namespaces (comma-separated). |
| `-o` or `--output-path` | | Filename for the image. |
| Name | Default | Description |
|-------------------------|---------|-----------------------------------------------------------------------------------------|
| `--format` | `png` | Image output format: "png" or "jpg". |
| `-n` or `--namespaces` | | Include only clients in these namespaces (comma-separated). |
| `-o` or `--output-path` | | Filename for the image. |
| `--exclude-labels` | | A list of labels that would exclude services from list/export. example: "include=false" |
| `--exclude-services` | | A list of service to exclude from list/export. example: "service1,service2" |

#### Returns

Expand All @@ -145,10 +147,13 @@ as YAML [client intents file(s)](/reference/intents-and-intents-files/#intents-f

| Name | Default | Description |
|------------------------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `--format` | `yaml` | Specifies the format for the export: "yaml" or "json". |
| `--format` | `yaml` | Specifies the format for the export: either `yaml` or `json`. |
| `-n` or `--namespaces` | | Export only clients in these namespaces (comma-separated). |
| `-o` or `--output` | `STDOUT` | Filename or directory for redirecting the output. |
| `--output-type` | `single-file` | Whether the output should be written as a single file (`single-file`) or as multiple files in a directory (`dir`). Requires the `-o` or `--output` to point to a directory. |
| `--server` | | Export only intents for clients that call this server. The server name must be specified with both service name and namespace, in the format `<SERVERNAME>.<SERVER_NAMESPACE>`. Example: `cartservice.otterize-ecom-demo`. |
| `--exclude-labels` | | A list of labels that would exclude services from list/export. Example: `include=false` would exclude any service labeled with `include=false` from being included in list/export. |
| `--exclude-services` | | A list of services to exclude from list/export. Example: `service1,service2`. |

#### Returns

Expand Down Expand Up @@ -194,10 +199,10 @@ If `--switch-org` is specified, and the current user belongs to multiple org, th

#### Options

| Name | Default | Description |
| --- | --- | --- |
| `--switch-account` | | Login to a different user account than the one currently set. |
| `--switch-org` | | Switch to a different organization than the one currently set. |
| Name | Default | Description |
|--------------------|---------|----------------------------------------------------------------|
| `--switch-account` | | Login to a different user account than the one currently set. |
| `--switch-org` | | Switch to a different organization than the one currently set. |

#### Returns

Expand Down

0 comments on commit d1c2b52

Please sign in to comment.