Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,12 @@ ic-wasm --version
## Create a project

```bash
icp new my-project --subfolder hello-world \
--define backend_type=motoko \
--define frontend_type=react \
--define network_type=Default && cd my-project
icp new hello-icp --subfolder hello-world --silent && cd hello-icp
```

This creates a fullstack project from the `hello-world` template with a Motoko backend and React frontend. The `--define` flags skip interactive prompts. Without them, `icp new` asks you to choose a template, language, and network type.
This creates a fullstack project from the [`hello-world` template](https://github.com/dfinity/icp-cli-templates/tree/main/hello-world) with a Motoko backend and React frontend. `--silent` skips the interactive prompt and applies the template's default values. To use different values, add `--define <placeholder>=<value>` (for example, `--define backend_type=rust`). See the [template placeholders](https://github.com/dfinity/icp-cli-templates/blob/main/hello-world/cargo-generate.toml) for all available options.

> **Prefer Rust?** Use `--define backend_type=rust` instead. You'll need Rust installed with the WASM target: `rustup target add wasm32-unknown-unknown`.
> **Prefer Rust?** Add `--define backend_type=rust` to the command. You'll also need Rust installed with the WASM target: `rustup target add wasm32-unknown-unknown`.

> **Backend only?** Use a language-specific template instead: `--subfolder rust` or `--subfolder motoko`. These templates have no frontend.

Expand Down
Loading