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: add screencast and new commands into read.me #1234

30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,26 +268,50 @@ Help is also available for each individual command with a `--help` flag, e.g. `c
cargo near
```

Starts interactive mode that will allow to explore all the available commands.
Starts interactive mode that will allow you to explore all the available commands.

```sh
cargo test
```

Runs the tests for your Rust contract.

```sh
cargo near build
```

Builds a NEAR smart contract along with its [ABI](https://github.com/near/abi) (while in the directory containing contract's Cargo.toml).
Builds a NEAR smart contract along with its [ABI](https://github.com/near/abi) (while in the directory containing the contract's Cargo.toml).

```sh
cargo near create-dev-account
```

Guides you through creation of a new NEAR account on [testnet](https://explorer.testnet.near.org).
Guides you through the creation of a new NEAR account on [testnet](https://explorer.testnet.near.org).

```sh
cargo near deploy
```

Builds the smart contract (equivalent to `cargo near build`) and guides you to deploy it to the blockchain.

```sh
cargo install near-cli-rs
```

Installs the NEAR CLI. To update the NEAR CLI, use the following command:

```sh
near extensions self-update
```

```sh
near
```

Selects the contract and calls a function.

For a more detailed visualization of building a Rust contract, you can watch this [video tutorial](https://www.youtube.com/watch?v=W-DkRHYk40k)

### Using cargo build

```sh
Expand Down
Loading