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

feat: Updated NEAR CLI installation description for Windows #378

Merged
merged 7 commits into from
Aug 11, 2024
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
31 changes: 25 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,58 @@ Just run `near` and let it guide you through!
Visit [Releases page](https://github.com/near/near-cli-rs/releases/) to see the latest updates.

<details>
<summary>Install prebuilt binaries via shell script (macOS, Linux, WSL)</summary>
<summary>Install via Windows Installer (Windows)</summary>


https://github.com/user-attachments/assets/607f797b-0412-4741-984b-6b6032d05262

</details>

<details>
<summary>Install via powershell script (Windows)</summary>

```sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh
irm https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.ps1 | iex
```

https://github.com/user-attachments/assets/7d5d090e-4885-4c27-9d0f-045905952071

</details>

<details>
<summary>Install prebuilt binaries via powershell script (Windows)</summary>
<summary>Install via shell script (macOS, Linux, Windows/WSL)</summary>

```sh
irm https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.ps1 | iex
```
</details>

<details>
<summary>Run prebuilt binaries with npx (Node.js)</summary>
<summary>Run via npx (Node.js on Windows, Linux, macOS)</summary>

```sh
npx near-cli-rs
```
</details>

<details>
<summary>Install prebuilt binaries into your npm project (Node.js)</summary>
<summary>Use in package.json scripts (Node.js on Windows, Linux, macOS)</summary>

```sh
npm install near-cli-rs
```
</details>

<details>
<summary>Compile and install from the source code (Cargo)</summary>
<summary>Get a portable version (Windows, Linux, macOS)</summary>


https://github.com/user-attachments/assets/4a7e4633-1957-4dc2-a032-827fa9c06c29

</details>

<details>
<summary>Compile and install from the source code (Cargo on Windows, Linux, macOS)</summary>

Install it with `cargo`, just make sure you have [Rust](https://rustup.rs) installed on your computer.

Expand Down
Binary file added docs/media/install-powershell-script-small.mp4
Binary file not shown.
Binary file added docs/media/install-windows-msvc-msi-small.mp4
Binary file not shown.
Binary file not shown.
Loading