Skip to content

Commit 4da1a91

Browse files
authoredMar 12, 2025
Update install guide (#1402)
1 parent 2e3dd8e commit 4da1a91

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed
 

‎docs/tools/developer-tools/cli/install-cli.mdx

+3-6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ description: How to Install the Stellar CLI.
44
sidebar_position: 50
55
---
66

7+
import { StellarCliGitHubVersion } from "@site/src/components/StellarCliGitHubVersion";
8+
79
# Install the Stellar CLI
810

911
### Stellar CLI
@@ -36,12 +38,7 @@ You can also use the third-party tool [SVM (Stellar Version Manager)](https://ww
3638

3739
Install in your GitHub action (this is a preferred option of installing cli in your GitHub actions)
3840

39-
```
40-
- uses: stellar/stellar-cli
41-
## Optionally specify version of the cli. If not provided, latest available version will be used
42-
with:
43-
version: 22.4.0
44-
```
41+
<StellarCliGitHubVersion />
4542

4643
## Set up Autocomplete
4744

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react";
2+
import CodeBlock from "@theme/CodeBlock";
3+
import { latestVersion } from "@site/src/helpers/stellarCli";
4+
5+
export function StellarCliGitHubVersion() {
6+
const command = `uses: stellar/stellar-cli@${latestVersion}`;
7+
8+
return <CodeBlock language="yaml">{command}</CodeBlock>;
9+
}

0 commit comments

Comments
 (0)
Please sign in to comment.