Skip to content

Commit

Permalink
Updated intro.md commands (#1830)
Browse files Browse the repository at this point in the history
Updated the commands for create-near-app to match the current flag choices
  • Loading branch information
joe-rlo authored Mar 22, 2024
1 parent d2720b7 commit 5a6b835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/sdk/rust/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ rustup target add wasm32-unknown-unknown

## Create a new project

The best way to create a new NEAR app connected with a frontend is through [create-near-app](https://github.com/near/create-near-app). When initializing the project, be sure to include the `--contract=rust` flag to use the Rust SDK. Add `--frontend=react` to use react. Default is vanilla HTML.
The best way to create a new NEAR app connected with a frontend is through [create-near-app](https://github.com/near/create-near-app). When initializing the project, your option are `npx create-near-app <projectName> [--frontend next|vanilla|none] [--contract rs|ts|none --tests rs|ts|none]`.

```bash
npx create-near-app my-project --contract rust --frontend none --tests rust
npx create-near-app my-project --contract rs --frontend none --tests rs
```

If you only wish to develop and deploy a Rust contract, the [status message example](https://github.com/near-examples/rust-status-message) is great to use as a template or through [cargo-generate](https://github.com/cargo-generate/cargo-generate).
Expand Down

0 comments on commit 5a6b835

Please sign in to comment.