File tree 2 files changed +12
-6
lines changed
docs/tools/developer-tools/cli
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ description: How to Install the Stellar CLI.
4
4
sidebar_position : 50
5
5
---
6
6
7
+ import { StellarCliGitHubVersion } from " @site/src/components/StellarCliGitHubVersion" ;
8
+
7
9
# Install the Stellar CLI
8
10
9
11
### Stellar CLI
@@ -36,12 +38,7 @@ You can also use the third-party tool [SVM (Stellar Version Manager)](https://ww
36
38
37
39
Install in your GitHub action (this is a preferred option of installing cli in your GitHub actions)
38
40
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 />
45
42
46
43
## Set up Autocomplete
47
44
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments