Skip to content

Commit

Permalink
docs: Improved formatting of installation section in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
frol authored Feb 26, 2024
1 parent 5839bd3 commit 7a3eaa0
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,44 @@

## Installation

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

```sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh
```
</details>

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

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

### Install prebuilt binaries into your npm project
<details>
<summary>Install prebuilt binaries into your Node.js application</summary>

```sh
npm install cargo-near
```
</details>

### Compile latest released version from source code
<details>
<summary>Compile and install from source code (Cargo)</summary>

```console
```sh
cargo install cargo-near
```

### Compile latest development version from source code
or, install the most recent version from git repository:

```console
```sh
$ git clone https://github.com/near/cargo-near
$ cargo install --path cargo-near
```
</details>

## Usage

Expand Down

0 comments on commit 7a3eaa0

Please sign in to comment.