Add dapr version cmd docs

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
This commit is contained in:
Mukundan Sundararajan 2022-06-28 12:49:45 +05:30
parent 27541dc482
commit 34e4896d9a
2 changed files with 42 additions and 0 deletions

View File

@ -71,6 +71,7 @@ You can learn more about each Dapr command from the links below.
- [`dapr stop`]({{< ref dapr-stop.md >}})
- [`dapr uninstall`]({{< ref dapr-uninstall.md >}})
- [`dapr upgrade`]({{< ref dapr-upgrade.md >}})
- [`dapr-version`]({{< ref dapr-version.md >}})
### Environment Variables

View File

@ -0,0 +1,41 @@
---
type: docs
title: "version CLI command reference"
linkTitle: "version"
description: "Print Dapr runtime and CLI version."
---
### Description
Print the version for `dapr` CLI and `daprd` executables either in normal or JSON formats.
### Supported platforms
- [Self-Hosted]({{< ref self-hosted >}})
### Usage
```bash
dapr version [flags]
```
### Flags
| Name | Environment Variable | Default | Description
| --- | --- | --- | --- |
| `--help`, `-h` | | | Print this help message |
| `--output`, `-o` | | | Output format (options: json) |
### Examples
```bash
# Version for Dapr CLI and runtime
dapr version --output json
```
### Related facts
You can get `daprd` version directly by invoking `daprd --version` command.
You can also get the normal version output by running `dapr --version` flag also.