From 34e4896d9aad3065af8b751d2cf72b01dd23be36 Mon Sep 17 00:00:00 2001 From: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com> Date: Tue, 28 Jun 2022 12:49:45 +0530 Subject: [PATCH] Add dapr version cmd docs Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com> --- .../content/en/reference/cli/cli-overview.md | 1 + .../content/en/reference/cli/dapr-version.md | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 daprdocs/content/en/reference/cli/dapr-version.md diff --git a/daprdocs/content/en/reference/cli/cli-overview.md b/daprdocs/content/en/reference/cli/cli-overview.md index 745fc2f12..d06a76193 100644 --- a/daprdocs/content/en/reference/cli/cli-overview.md +++ b/daprdocs/content/en/reference/cli/cli-overview.md @@ -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 diff --git a/daprdocs/content/en/reference/cli/dapr-version.md b/daprdocs/content/en/reference/cli/dapr-version.md new file mode 100644 index 000000000..b0ddae6dc --- /dev/null +++ b/daprdocs/content/en/reference/cli/dapr-version.md @@ -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.