Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install guide 2 #1402

Merged
merged 1 commit into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions docs/tools/developer-tools/cli/install-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: How to Install the Stellar CLI.
sidebar_position: 50
---

import { StellarCliGitHubVersion } from "@site/src/components/StellarCliGitHubVersion";

# Install the Stellar CLI

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

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

```
- uses: stellar/stellar-cli
## Optionally specify version of the cli. If not provided, latest available version will be used
with:
version: 22.4.0
```
<StellarCliGitHubVersion />

## Set up Autocomplete

Expand Down
9 changes: 9 additions & 0 deletions src/components/StellarCliGitHubVersion.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from "react";
import CodeBlock from "@theme/CodeBlock";
import { latestVersion } from "@site/src/helpers/stellarCli";

export function StellarCliGitHubVersion() {
const command = `uses: stellar/stellar-cli@${latestVersion}`;

return <CodeBlock language="yaml">{command}</CodeBlock>;
}
Loading