mirror of https://github.com/dapr/docs.git
Add dapr version cmd docs
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
This commit is contained in:
parent
27541dc482
commit
34e4896d9a
|
@ -71,6 +71,7 @@ You can learn more about each Dapr command from the links below.
|
||||||
- [`dapr stop`]({{< ref dapr-stop.md >}})
|
- [`dapr stop`]({{< ref dapr-stop.md >}})
|
||||||
- [`dapr uninstall`]({{< ref dapr-uninstall.md >}})
|
- [`dapr uninstall`]({{< ref dapr-uninstall.md >}})
|
||||||
- [`dapr upgrade`]({{< ref dapr-upgrade.md >}})
|
- [`dapr upgrade`]({{< ref dapr-upgrade.md >}})
|
||||||
|
- [`dapr-version`]({{< ref dapr-version.md >}})
|
||||||
|
|
||||||
### Environment Variables
|
### Environment Variables
|
||||||
|
|
||||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue