diff --git a/docs/cli-reference/dfx-ledger.md b/docs/cli-reference/dfx-ledger.md index f9214517e4..828f5aef69 100644 --- a/docs/cli-reference/dfx-ledger.md +++ b/docs/cli-reference/dfx-ledger.md @@ -29,7 +29,7 @@ To view usage information for a specific subcommand, specify the subcommand and ## dfx ledger account-id -Use the `dfx ledger account-id` command to display the account identifier associated with the currently-active identity. Like the textual representation of your developer identity principal, the account identifier is derived from your private key and used to represent your identity in the ledger canister. +Use the `dfx ledger account-id` command to display the account identifier associated with the currently-active identity. Like the textual representation of your developer identity principal, the account identifier is derived from your private key and used to represent your identity in the ledger canister. The command can also be used to compute the account ids of other principals, canister aliases and subaccounts ### Basic usage @@ -41,10 +41,13 @@ dfx ledger account-id [flag] You can use the following optional flags with the `dfx ledger account-id` command. -| Flag | Description | -|-------------------|-------------------------------| -| `-h`, `--help` | Displays usage information. | -| `-V`, `--version` | Displays version information. | +| Flag | Description | +|------------------------------|--------------------------------------------------------| +| `-h`, `--help` | Displays usage information. | +| `-V`, `--version` | Displays version information. | +| `--of-canister ` | Alias of the canister controlling the account | +| `--of-principal ` | Principal controlling the account | +| `-subaccount ` | Subaccount identifier (64 character long hex string) | ### Examples