From 6afbbdeed7f954c44faabc78d99a3aa7bbc2788b Mon Sep 17 00:00:00 2001 From: Marco Walz Date: Wed, 20 May 2026 14:32:04 +0200 Subject: [PATCH 1/2] docs: simplify icp new command in quickstart Replace the three explicit --define flags with --silent, which applies the template's default values without an interactive prompt. Switch the project name from my-project to hello-icp for a more intentional tutorial narrative. Update callouts to reflect the new command pattern. --- docs/getting-started/quickstart.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index 204e2afa..b99b38e9 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -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 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 =` (for example, `--define backend_type=rust`). -> **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. From a10dc318c3702a727ca5a923235afc177a95d99d Mon Sep 17 00:00:00 2001 From: Marco Walz Date: Wed, 20 May 2026 14:39:32 +0200 Subject: [PATCH 2/2] docs: add template links and use placeholder terminology --- docs/getting-started/quickstart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index b99b38e9..6882701e 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -45,7 +45,7 @@ ic-wasm --version 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. `--silent` skips the interactive prompt and applies the template's default values. To use different values, add `--define =` (for example, `--define backend_type=rust`). +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 =` (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?** Add `--define backend_type=rust` to the command. You'll also need Rust installed with the WASM target: `rustup target add wasm32-unknown-unknown`.