diff --git a/daprdocs/content/en/reference/cli/dapr-components.md b/daprdocs/content/en/reference/cli/dapr-components.md index 3d61c531b..d29e7ae09 100644 --- a/daprdocs/content/en/reference/cli/dapr-components.md +++ b/daprdocs/content/en/reference/cli/dapr-components.md @@ -21,14 +21,28 @@ dapr components [flags] ### Flags -| Name | Environment Variable | Default | Description | -| -------------------- | -------------------- | ------- | ------------------------------------------------ | -| `--help`, `-h` | | | Print this help message | -| `--kubernetes`, `-k` | | `false` | List all Dapr components in a Kubernetes cluster | + +| Name | Environment Variable | Default | Description +| --- | --- | --- | --- | +| `--kubernetes`, `-k` | | `false` | List all Dapr components in a Kubernetes cluster (required) | +| `--all-namespaces`, `-A` | | `true` | If true, list all Dapr components in all namespaces | +| `--help`, `-h` | | | Print this help message | +| `--name`, `-n` | | | The components name to be printed (optional) | +| `--namespace` | | | List all components in the specified namespace | +| `--output`, `-o` | | `list` | Output format (options: json or yaml or list) | ### Examples ```bash -# List Kubernetes components +# List Dapr components in all namespaces in Kubernetes mode dapr components -k -``` + +# List Dapr components in specific namespace in Kubernetes mode +dapr components -k --namespace default + +# Print specific Dapr component in Kubernetes mode +dapr components -k -n mycomponent + +# List Dapr components in all namespaces in Kubernetes mode +dapr components -k --all-namespaces +``` \ No newline at end of file diff --git a/daprdocs/content/en/reference/cli/dapr-configurations.md b/daprdocs/content/en/reference/cli/dapr-configurations.md index 82348aa99..f2f58b190 100644 --- a/daprdocs/content/en/reference/cli/dapr-configurations.md +++ b/daprdocs/content/en/reference/cli/dapr-configurations.md @@ -21,16 +21,28 @@ dapr configurations [flags] ### Flags -| Name | Environment Variable | Default | Description | -| -------------------- | -------------------- | ------- | ---------------------------------------------------- | -| `--kubernetes`, `-k` | | `false` | List all Dapr configurations in a Kubernetes cluster | -| `--name`, `-n` | | | The configuration name to be printed (optional) | -| `--output`, `-o` | | `list` | Output format (options: json or yaml or list) | -| `--help`, `-h` | | | Print this help message | + +| Name | Environment Variable | Default | Description +| --- | --- | --- | --- | +| `--kubernetes`, `-k` | | `false` | List all Dapr configurations in Kubernetes cluster (required). +| `--all-namespaces`, `-A` | | `true` | If true, list all Dapr configurations in all namespaces (optional) +| `--namespace` | | | List Dapr configurations in specific namespace. +| `--name`, `-n` | | | Print specific Dapr configuration. (optional) +| `--output`, `-o` | | `list`| Output format (options: json or yaml or list) +| `--help`, `-h` | | | Print this help message | ### Examples ```bash -# List Kubernetes Dapr configurations +# List Dapr configurations in all namespaces in Kubernetes mode dapr configurations -k -``` + +# List Dapr configurations in specific namespace in Kubernetes mode +dapr configurations -k --namespace default + +# Print specific Dapr configuration in Kubernetes mode +dapr configurations -k -n appconfig + +# List Dapr configurations in all namespaces in Kubernetes mode +dapr configurations -k --all-namespaces +``` \ No newline at end of file diff --git a/daprdocs/content/en/reference/cli/dapr-list.md b/daprdocs/content/en/reference/cli/dapr-list.md index 73b46dd56..7225b134a 100644 --- a/daprdocs/content/en/reference/cli/dapr-list.md +++ b/daprdocs/content/en/reference/cli/dapr-list.md @@ -22,11 +22,14 @@ dapr list [flags] ### Flags -| Name | Environment Variable | Default | Description | -| -------------------- | -------------------- | ------- | --------------------------------------------------------------------------- | -| `--help`, `-h` | | | Print this help message | -| `--kubernetes`, `-k` | | `false` | List all Dapr pods in a Kubernetes cluster | -| `--output`, `-o` | | `table` | The output format of the list. Valid values are: `json`, `yaml`, or `table` | + +| Name | Environment Variable | Default | Description +| --- | --- | --- | --- | +| `--all-namespaces`, `-A` | | `false` | List all Dapr pods in all namespaces (optional) | +| `--help`, `-h` | | | Print this help message | +| `--kubernetes`, `-k` | | `false` | List all Dapr pods in a Kubernetes cluster (optional) | +| `--namespace`, `-n` | | `default` | List the Dapr pods in the defined namespace in Kubernetes. Only with `-k` flag (optional) | +| `--output`, `-o` | | `table` | The output format of the list. Valid values are: `json`, `yaml`, or `table` ### Examples @@ -34,9 +37,15 @@ dapr list [flags] # List Dapr instances in self-hosted mode dapr list -# List Dapr instances in Kubernetes mode +# List Dapr instances in all namespaces in Kubernetes mode dapr list -k # List Dapr instances in JSON format dapr list -o json -``` + +# List Dapr instances in a specific namespace in Kubernetes mode +dapr list -k --namespace default + +# List Dapr instances in all namespaces in Kubernetes mode +dapr list -k --all-namespaces +``` \ No newline at end of file