docs: Add Windows installation instructions (#31774)
This commit is contained in:
parent
69ca9d4617
commit
5077d58b73
|
@ -24,12 +24,77 @@ This quickstart guide will demonstrate how to quickly install and setup your loc
|
||||||
|
|
||||||
## Install the Solana CLI
|
## Install the Solana CLI
|
||||||
|
|
||||||
To interact with the Solana clusters from your terminal, install the [Solana CLI tool suite](./../cli/install-solana-cli-tools) on your local system:
|
To interact with the Solana network from your terminal, you will need to install the [Solana CLI tool suite](./../cli/install-solana-cli-tools) on your local system.
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>macOS / Linux / Windows Subsystem for Linux (WSL)</summary>
|
||||||
|
Open your favourite terminal application and install the CLI by running:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
|
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Depending on your system, the end of the installer messaging may prompt you to
|
||||||
|
|
||||||
|
```bash
|
||||||
|
Please update your PATH environment variable to include the solana programs:
|
||||||
|
```
|
||||||
|
|
||||||
|
If you get the above message, copy and paste the recommended command below it to update `PATH`
|
||||||
|
|
||||||
|
Confirm you have the desired version of `solana` installed by running:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
solana --version
|
||||||
|
```
|
||||||
|
|
||||||
|
After a successful install, `solana-install update` may be used to easily update the Solana software to a newer version at any time.
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Windows</summary>
|
||||||
|
|
||||||
|
:::caution
|
||||||
|
[WSL](https://learn.microsoft.com/en-us/windows/wsl/install) is the recommended environment for Windows users.
|
||||||
|
:::
|
||||||
|
|
||||||
|
- Open a Command Prompt (`cmd.exe`) as an Administrator
|
||||||
|
|
||||||
|
- Search for Command Prompt in the Windows search bar. When the Command
|
||||||
|
Prompt app appears, right-click and select “Open as Administrator”.
|
||||||
|
If you are prompted by a pop-up window asking “Do you want to allow this app to
|
||||||
|
make changes to your device?”, click Yes.
|
||||||
|
|
||||||
|
- Copy and paste the following command, then press Enter to download the Solana
|
||||||
|
installer into a temporary directory:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cmd /c "curl https://release.solana.com/stable/solana-install-init-x86_64-pc-windows-msvc.exe --output C:\solana-install-tmp\solana-install-init.exe --create-dirs"
|
||||||
|
```
|
||||||
|
|
||||||
|
- Copy and paste the following command, then press Enter to install the latest
|
||||||
|
version of Solana. If you see a security pop-up by your system, please select
|
||||||
|
to allow the program to run.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
C:\solana-install-tmp\solana-install-init.exe stable
|
||||||
|
```
|
||||||
|
|
||||||
|
- When the installer is finished, press Enter.
|
||||||
|
|
||||||
|
- Close the command prompt window and re-open a new command prompt window as a
|
||||||
|
normal user
|
||||||
|
- Confirm you have the desired version of `solana` installed by entering:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
solana --version
|
||||||
|
```
|
||||||
|
|
||||||
|
After a successful install, `solana-install update` may be used to easily update the Solana software to a newer version at any time.
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
## Setup a localhost blockchain cluster
|
## Setup a localhost blockchain cluster
|
||||||
|
|
||||||
The Solana CLI comes with the [test validator](./../developing/test-validator.md) built in. This command line tool will allow you to run a full blockchain cluster on your machine.
|
The Solana CLI comes with the [test validator](./../developing/test-validator.md) built in. This command line tool will allow you to run a full blockchain cluster on your machine.
|
||||||
|
|
Loading…
Reference in New Issue