diff --git a/docs/cli-reference/dfx-build.mdx b/docs/cli-reference/dfx-build.mdx
index 991ff38071..8f640f3311 100644
--- a/docs/cli-reference/dfx-build.mdx
+++ b/docs/cli-reference/dfx-build.mdx
@@ -4,12 +4,12 @@ import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
-Use the `dfx build` command to compile your program into a WebAssembly module that can be deployed on the IC. You can use this command to compile all of the programs that are defined for a project in the project’s `dfx.json` configuration file or a specific canister.
-
-Note that you can only run this command from within the project directory structure. For example, if your project name is `hello_world`, your current working directory must be the `hello_world` top-level project directory or one of its subdirectories.
+Use the `dfx build` command to compile your program into a WebAssembly module that can be deployed on ICP. You can use this command to compile all of the canisters that are defined in the project’s `dfx.json` configuration file or compile only a specific canister.
The `dfx build` command looks for the source code to compile using the information you have configured under the `canisters` section in the `dfx.json` configuration file.
+Note that you can only run this command from within the project directory structure. For example, if your project name is `hello_world`, your current working directory must be the `hello_world` top-level project directory or one of its subdirectories.
+
## Basic usage
``` bash
@@ -22,7 +22,7 @@ You can use the following optional flags with the `dfx build` command.
| Flag | Description |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `--check` | Builds canisters using a temporary, hard-coded, locally-defined canister identifier for testing that your program compiles without connecting to the IC. |
+| `--check` | Builds canisters using a temporary, hard-coded, locally-defined canister ID for testing that the canister compiles without connecting to ICP. |
## Options
@@ -31,7 +31,7 @@ You can specify the following options for the `dfx build` command.
| Option | Description |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--network ` | Specifies the network alias or URL you want to connect to. You can use this option to override the network specified in the `dfx.json` configuration file. |
-| `--output-env-file` | Writes dfx environment variables to a provided path. Overrides the `output_env_file` configuration from `dfx.json` if passed. |
+| `--output-env-file` | Writes `dfx` environment variables to a provided path. Overrides the `output_env_file` configuration from `dfx.json` if passed. |
## Arguments
@@ -39,14 +39,11 @@ You can specify the following arguments for the `dfx build` command.
| Argument | Description |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `--all` | Builds all of the canisters configured in the project’s `dfx.json` file. |
-| `canister_name` | Specifies the name of the canister you want to build. If you are not using the `--all` option, you can continue to use `dfx build` or provide a canister name as an argument (the canister name must match at least one name that you have configured in the `canisters` section of the `dfx.json` configuration file for your project.) |
+| `--all` | Builds all canisters configured in the project’s `dfx.json` file. |
+| `canister_name` | Specifies the name of the canister you want to build. If you are not using the `--all` option, you can continue to use `dfx build` or provide a canister name as an argument. The canister name must match at least one name that you have configured in the `canisters` section of the `dfx.json` configuration file for your project. |
## Examples
-You can use the `dfx build` command to build one or more WebAssembly modules from the programs specified in the `dfx.json` configuration file under the `canisters` key. For example, if your `dfx.json` configuration file defines one `hello_world_backend` canister and one `hello_world_frontend` canister, then running `dfx build` compiles two WebAssembly modules.
-
-Note that the file name and path to the programs on your file system must match the information specified in the `dfx.json` configuration file.
In this example, the `hello_world_backend` canister contains the main program code and the `hello_world_frontend` canister store frontend code and assets. If you want to keep the `hello_world_frontend` canister defined in the `dfx.json` file, but only build the backend program, you could run the following command:
@@ -54,9 +51,9 @@ In this example, the `hello_world_backend` canister contains the main program co
dfx build hello_world_backend
```
-Building a specific canister is useful when you have multiple canisters defined in the dfx.json file, but want to test and debug operations for canisters independently.
+Building a specific canister is useful when you have multiple canisters defined in the `dfx.json` file, but want to test and debug operations for canisters independently.
-To test whether a canister compiles without connecting to the IC or the local development environment, you would run the following command:
+To test whether a canister compiles without connecting to the mainnet or the local development environment, you would run the following command:
``` bash
dfx build --check
@@ -64,4 +61,4 @@ dfx build --check
## Management canister
-If `dfx` detects that your Motoko project is importing the Management Canister (e.g. `import Management "ic:aaaaa-aa";`) it will automatically provide the Candid interface for the Management Canister during the build.
+If `dfx` detects that your Motoko project is importing the management canister (e.g. `import Management "ic:aaaaa-aa";`) it will automatically provide the Candid interface for the management canister during the build.
diff --git a/docs/cli-reference/dfx-cache.mdx b/docs/cli-reference/dfx-cache.mdx
index 6611e89c3e..ea347195be 100644
--- a/docs/cli-reference/dfx-cache.mdx
+++ b/docs/cli-reference/dfx-cache.mdx
@@ -4,7 +4,7 @@ import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
-Use the `dfx cache` command with flags and subcommands to manage the `dfx` version cache.
+Use the `dfx cache` command to manage the `dfx` version cache. When a version of `dfx` is installed, it is added to the version cache.
The basic syntax for running `dfx cache` commands is:
@@ -17,7 +17,7 @@ Depending on the `dfx cache` subcommand you specify, additional arguments, optio
| Command | Description |
|----------------------------|-------------------------------------------------------------------------------|
| [`delete`](#delete) | Deletes the specified version of `dfx` from the local cache. |
-| `help` | Displays usage information message for a specified subcommand. |
+| `help` | Displays usage information message for the `dfx cache` command. |
| [`install`](#install) | Installs the specified version of `dfx` from the local cache. |
| [`list`](#_dfx_cache_list) | Lists the versions of `dfx` currently installed and used in current projects. |
| [`show`](#_dfx_cache_show) | Show the path of the cache used by this version of the `dfx` executable. |
@@ -30,7 +30,7 @@ dfx cache delete --help
## dfx cache delete
-Use the `dfx cache delete` command to delete a specified version of the IC SDK from the version cache on the local computer.
+Use the `dfx cache delete` command to delete a specified version of `dfx` from the version cache on the local computer.
### Basic usage
@@ -46,9 +46,7 @@ You can specify the following argument for the `dfx cache delete` command.
|-----------|--------------------------------------------------------------------|
| `version` | Specifies the version of `dfx` you to delete from the local cache. |
-### Examples
-
-You can use the `dfx cache delete` command to permanently delete versions of the IC SDK that you no longer want to use. For example, you can run the following command to delete the IC SDK version `0.6.2`:
+### Example
``` bash
dfx cache delete 0.6.2
@@ -56,7 +54,7 @@ dfx cache delete 0.6.2
## dfx cache install
-Use the `dfx cache install` command to install the IC SDK using the version currently found in the `dfx` cache.
+Use the `dfx cache install` command to install the latest `dfx` version currently found in the `dfx` cache.
### Basic usage
@@ -64,9 +62,7 @@ Use the `dfx cache install` command to install the IC SDK using the version curr
dfx cache install [flag]
```
-### Examples
-
-You can use the `dfx cache install` command to force the installation of `dfx` from the version in the cache. For example, you can run the following command to install `dfx`:
+### Example
``` bash
dfx cache install
@@ -74,9 +70,9 @@ dfx cache install
## dfx cache list
-Use the `dfx cache list` command to list the IC SDK versions you have currently installed and used in projects.
+Use the `dfx cache list` command to list `dfx` versions you have currently installed and used in projects.
-If you have multiple versions of the IC SDK installed, the cache list displays an asterisk (\*) to indicate the currently active version.
+If you have multiple versions of `dfx` installed, the cache list displays an asterisk (\*) to indicate the currently active version.
### Basic usage
@@ -84,15 +80,13 @@ If you have multiple versions of the IC SDK installed, the cache list displays a
dfx cache list [flag]
```
-### Examples
-
-You can use the `dfx cache list` command to list the IC SDK versions you have currently installed and used in projects. For example, you can run the following command to list versions of the IC SDK found in the cache:
+### Example
``` bash
dfx cache list
```
-This command displays the list of the IC SDK versions found similar to the following:
+This command displays the list of `dfx` versions found similar to the following:
``` bash
0.6.4 *
@@ -102,7 +96,7 @@ This command displays the list of the IC SDK versions found similar to the follo
## dfx cache show
-Use the `dfx cache show` command to display the full path to the cache used by the IC SDK version you are currently using.
+Use the `dfx cache show` command to display the full path to the cache used by the `dfx` version you are currently using.
### Basic usage
@@ -110,9 +104,7 @@ Use the `dfx cache show` command to display the full path to the cache used by t
dfx cache show [flag]
```
-### Examples
-
-You can use the `dfx cache show` command to display the path to the cache used by the IC SDK version you are currently using:
+### Example
``` bash
dfx cache show
diff --git a/docs/cli-reference/dfx-canister.mdx b/docs/cli-reference/dfx-canister.mdx
index a8779f89c3..1eec11466e 100644
--- a/docs/cli-reference/dfx-canister.mdx
+++ b/docs/cli-reference/dfx-canister.mdx
@@ -4,9 +4,7 @@ import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
-Use the `dfx canister` command with options and subcommands to manage canister operations and interaction with the
-Internet Computer or the local development environment. In most cases, you use `dfx canister` subcommands after
-you compile a program to manage the canister lifecycle and to perform key tasks such as calling program functions.
+Use the `dfx canister` command with options and subcommands to manage canister operations and interaction with the ICP mainnet or the local development environment. In most cases, you use `dfx canister` subcommands to manage the canister lifecycle and to perform key tasks such as calling program functions.
The basic syntax for running `dfx canister` commands is:
@@ -27,7 +25,7 @@ For reference information and examples that illustrate using `dfx canister` comm
| Command | Description |
|----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| [`call`](#dfx-canister-call) | Calls a specified method on a deployed canister. |
-| [`create`](#dfx-canister-create) | Creates an empty canister and associates the assigned Canister ID to the canister name. |
+| [`create`](#dfx-canister-create) | Creates an empty canister and assigns a canister ID to the canister name. |
| [`delete`](#dfx-canister-delete) | Deletes a currently stopped canister. |
| [`deposit-cycles`](#dfx-canister-deposit-cycles) | Deposit cycles into the specified canister. |
| `help` | Displays usage information message for a specified subcommand. |
@@ -35,22 +33,22 @@ For reference information and examples that illustrate using `dfx canister` comm
| [`info`](#dfx-canister-info) | Get the hash of a canister’s Wasm module and its current controller. |
| [`install`](#dfx-canister-install) | Installs compiled code in a canister. |
| [`logs`](#dfx-canister-logs) | Returns the logs from a canister. |
-| [`metadata`](#dfx-canister-metadata) | Displays metadata in a canister. |
+| [`metadata`](#dfx-canister-metadata) | Displays metadata of a canister. |
| [`request-status`](#dfx-canister-request-status) | Requests the status of a call to a canister. |
| [`send`](#dfx-canister-send) | Send a previously-signed message. |
| [`set-id`](#dfx-canister-id) | Sets the identifier of a canister. |
-| [`sign`](#dfx-canister-send) | Sign a canister call and generate message file. |
+| [`sign`](#dfx-canister-send) | Sign a canister call and generate a message file. |
| [`start`](#dfx-canister-start) | Starts a stopped canister. |
-| [`status`](#dfx-canister-status) | Returns the current status of a canister as defined [here](https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-canister_status). |
+| [`status`](#dfx-canister-status) | Returns the current status of a canister as [defined](https://internetcomputer.org/docs/references/ic-interface-spec#ic-canister_status). |
| [`stop`](#dfx-canister-stop) | Stops a currently running canister. |
| [`uninstall-code`](#dfx-canister-uninstall-code) | Uninstalls a canister, removing its code and state. Does not delete the canister. |
| [`update-settings`](#dfx-canister-update-settings) | Update one or more of a canister's settings (i.e its controller, compute allocation, or memory allocation.). |
-| [`url`](#dfx-canister-url) | Displays the url of a canister. |
+| [`url`](#dfx-canister-url) | Displays the URL of a canister. |
## Overriding the default deployment environment
By default, `dfx canister` commands run on the local development environment specified in the `dfx.json` file. If
-you want to send a `dfx canister` subcommand to the Internet Computer or a testnet without changing the settings in
+you want to send a `dfx canister` subcommand to the mainnet or the playground without changing the settings in
your `dfx.json` configuration file, you can explicitly specify the URL to connect to using the `--network` option.
For example, to register unique canister identifiers for a project on the local development environment, you can
@@ -60,61 +58,58 @@ run the following command:
dfx canister create --all
```
-If you want to register unique canister identifiers for the same project on the Internet Computer, you can run the
+If you want to register unique canister identifiers for the same project on the mainnet, you can run the
following command:
``` bash
dfx canister create --all --network ic
```
-The SDK comes with an alias of `ic`, which is configured to point to the Internet Computer. You can also pass a URL as a
+`dfx` comes with an alias of `ic`, which is configured to point to the mainnet. You can also pass a URL as a
network option, or you can configure additional aliases in `dfx.json` under the `networks` configuration, or
in `$HOME/.config/dfx/networks.json`.
-To illustrate, you can call a canister and function running on a testnet using a command similar to the following:
+To illustrate, you can call a canister and function running on a local custom network using a command similar to the following:
``` bash
dfx canister call counter get --network http://192.168.3.1:5678
```
-## Performing a call through the wallet
+## Performing a call through a cycles wallet
-By default, most `dfx canister` commands to the Internet Computer are signed by and sent from your own principal. (
-Exceptions are commands that require cycles: `dfx canister create` and `dfx canister deposit-cycles`. Those
-automatically go through the wallet.) Occasionally, you may want to make a call from your wallet, e.g. when only your
-wallet is allowed to call a certain function. To send a call through your wallet, you can use the `--wallet` option.
-You will either specify the wallet's principal, or the name of an identity associated with a wallet.
+By default, most `dfx canister` commands to the mainnet are signed by and sent from your own principal.
-### Specifying a wallet by principal
+Exceptions are commands that require cycles: `dfx canister create` and `dfx canister deposit-cycles`. These automatically go through the cycles wallet. Occasionally, you may want to make a call from the cycles wallet, e.g. when only the wallet is allowed to call a certain function. To send a call through the cycles wallet, you can use the `--wallet` option.
-To specify a wallet by principal, pass the principal directly.
+You will either specify the cycles wallet's principal, or the name of an identity associated with a cycles wallet.
+
+### Specifying a cycles wallet by principal
+
+To specify a cycles wallet by principal, pass the principal directly.
``` bash
dfx canister status --wallet
```
-As a concrete example, if you want to request the status of a canister on the ic that is only controlled by your wallet,
-you would do the following:
+As a concrete example, if you want to request the status of a canister on the mainnet that is only controlled by your wallet,
+you would run the following:
``` bash
dfx identity get-wallet --network ic
```
-This command outputs your wallet's principal (e.g. `22ayq-aiaaa-aaaai-qgmma-cai`) on the `ic` network. Using this id,
-you can then query the status of the canister (let's assume the canister is called `my_canister_name`) as follows:
+This command outputs your wallet's principal (e.g. `22ayq-aiaaa-aaaai-qgmma-cai`) on the `ic` network. Using this ID,
+you can then query the status of the canister as follows:
``` bash
dfx canister status --network ic --wallet 22ayq-aiaaa-aaaai-qgmma-cai
```
-### Specifying a wallet by identity name
+### Specifying a cycles wallet by identity name
-In the previous example, we first looked up the principal of the currently
-selected wallet. We can avoid this step by specifying the name of an identity,
-in which case dfx will look up the wallet's principal for us.
+You can also specify the name of an identity, in which case `dfx` will look up the cycles wallet's principal.
-For example, the following command will query the status of a canister,
-using the wallet associated with the default identity on the ic network:
+For example, the following command will query the status of a canister, using the cycles wallet associated with the default identity on the mainnet:
``` bash
dfx canister status --network ic --wallet default
@@ -145,10 +140,10 @@ You can use the following options with the `dfx canister call` command.
|-----------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `--argument-file ` | Specifies the file from which to read the argument to pass to the method. Stdin may be referred to as `-`. |
| `--async` | Specifies not to wait for the result of the call to be returned by polling the local development environment. Instead return a response ID. |
-| `--candid ` | Provide the .did file with which to decode the response. Overrides value from dfx.json for project canisters. |
+| `--candid ` | Provide the .did file with which to decode the response. Overrides value from `dfx.json` for project canisters. |
| `--impersonate ` | Specifies a principal on behalf of which requests to a local PocketIC instance are sent. |
| `--output