Merge pull request #2578 from mukundansundar/add-dapr-version-cmd

Add dapr version cmd docs
This commit is contained in:
greenie-msft 2022-06-30 13:38:51 -07:00 committed by GitHub
commit 4a9f360053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.