automerge
This commit is contained in:
@ -5,33 +5,47 @@ Follow this guide to setup Solana's key generation tool called `solana-keygen`
|
|||||||
After installation, ensure your version is `0.21.1` or higher by running `solana-keygen -V`
|
After installation, ensure your version is `0.21.1` or higher by running `solana-keygen -V`
|
||||||
{% endhint %}
|
{% endhint %}
|
||||||
|
|
||||||
First, download the desired release tarball from GitHub. The examples below will
|
## Download
|
||||||
retrieve the most recent release. If you would like to download a specific
|
First, download the latest release tarball from GitHub.
|
||||||
version instead replace `latest/download` with `download/VERSION` where VERSION
|
|
||||||
is a tag name from https://github.com/solana-labs/solana/releases (ie. v0.21.1).
|
|
||||||
|
|
||||||
MacOS
|
1. Setup download url
|
||||||
|
|
||||||
`$ curl -L -sSf -o solana-release.tar.bz2 'https://github.com/solana-labs/solana/releases/latest/download/solana-release-x86_64-apple-darwin.tar.bz2'`
|
```bash
|
||||||
|
solana_downloads=https://github.com/solana-labs/solana/releases/latest/download
|
||||||
|
```
|
||||||
|
|
||||||
Linux
|
2. Specify the download file based on your machine
|
||||||
|
|
||||||
`$ curl -L -sSf -o solana-release.tar.bz2 'https://github.com/solana-labs/solana/releases/latest/download/solana-release-x86_64-unknown-linux-gnu.tar.bz2'`
|
**MacOS**
|
||||||
|
```bash
|
||||||
|
solana_release=solana-release-x86_64-apple-darwin.tar.bz2
|
||||||
|
```
|
||||||
|
|
||||||
|
**Linux**
|
||||||
|
```bash
|
||||||
|
solana_release=solana-release-x86_64-unknown-linux-gnu.tar.bz2
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Download
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -L -sSf -o solana-release.tar.bz2 $solana_downloads/$solana_release
|
||||||
|
```
|
||||||
|
|
||||||
|
## Extract
|
||||||
Next, extract the tarball
|
Next, extract the tarball
|
||||||
```bash
|
```bash
|
||||||
$ tar xf solana-release.tar.bz2
|
tar xf solana-release.tar.bz2
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, `solana-keygen` can be run by
|
## Add to "PATH"
|
||||||
|
Now add the tool to your PATH environment variable with the following command
|
||||||
```bash
|
```bash
|
||||||
$ solana-release/bin/solana-keygen
|
export PATH="$(pwd)/solana-release/bin:${PATH}"
|
||||||
```
|
```
|
||||||
|
|
||||||
If you would like to follow the remainder of these instructions without typing
|
## Check
|
||||||
the leading path to `solana-keygen`, add it to your PATH environment variable
|
Finally, check that `solana-keygen` can be run by running
|
||||||
with the following command
|
|
||||||
```bash
|
```bash
|
||||||
$ export PATH="$(pwd)/solana-release/bin:${PATH}"
|
solana-keygen -V
|
||||||
```
|
```
|
||||||
This can be made permanent by adding it to your `~/.profile`
|
|
||||||
|
@ -23,13 +23,13 @@ solana-keygen new --no-outfile
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% hint style="warning" %}
|
{% hint style="warning" %}
|
||||||
If `--no-outfile` is **not** specified, the default behavior is to write the
|
If the `--no-outfile` flag is **omitted**, the default behavior is to write the
|
||||||
keypair to `~/.config/solana/id.json`
|
keypair to `~/.config/solana/id.json`
|
||||||
{% endhint %}
|
{% endhint %}
|
||||||
|
|
||||||
{% hint style="info" %}
|
{% hint style="info" %}
|
||||||
For added security, increase the seed phrase word count using the `--word-count`
|
For added security, increase the seed phrase word count using the `--word-count`
|
||||||
argumment
|
argument
|
||||||
{% endhint %}
|
{% endhint %}
|
||||||
|
|
||||||
For full usage details run:
|
For full usage details run:
|
||||||
|
Reference in New Issue
Block a user