Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions crates/icp-cli/src/commands/cycles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ pub(crate) mod mint;

#[derive(Subcommand, Debug)]
pub(crate) enum Command {
/// Display the cycles balance
Balance(token::balance::BalanceArgs),

/// Convert icp to cycles
Mint(mint::MintArgs),
}
1 change: 1 addition & 0 deletions crates/icp-cli/src/commands/environment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ pub(crate) mod list;

#[derive(Subcommand, Debug)]
pub(crate) enum Command {
/// Display a list of enviroments
List(list::ListArgs),
}
9 changes: 9 additions & 0 deletions crates/icp-cli/src/commands/identity/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@ pub(crate) mod principal;

#[derive(Debug, Subcommand)]
pub(crate) enum Command {
/// Display the currently selected identity
Default(default::DefaultArgs),

/// Import a new identity
Import(import::ImportArgs),

/// List the identities
List(list::ListArgs),

/// Create a new identity
New(new::NewArgs),

/// Display the principal for the current identity
Principal(principal::PrincipalArgs),
}
32 changes: 24 additions & 8 deletions docs/cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,15 @@ Mint and manage cycles

###### **Subcommands:**

* `balance` —
* `mint` —
* `balance` — Display the cycles balance
* `mint` — Convert icp to cycles



## `icp-cli cycles balance`

Display the cycles balance

**Usage:** `icp-cli cycles balance [OPTIONS]`

###### **Options:**
Expand All @@ -443,6 +445,8 @@ Mint and manage cycles

## `icp-cli cycles mint`

Convert icp to cycles

**Usage:** `icp-cli cycles mint [OPTIONS]`

###### **Options:**
Expand Down Expand Up @@ -492,12 +496,14 @@ Show information about the current project environments

###### **Subcommands:**

* `list` —
* `list` — Display a list of enviroments



## `icp-cli environment list`

Display a list of enviroments

**Usage:** `icp-cli environment list`


Expand All @@ -510,16 +516,18 @@ Manage your identities

###### **Subcommands:**

* `default` —
* `import` —
* `list` —
* `new` —
* `principal` —
* `default` — Display the currently selected identity
* `import` — Import a new identity
* `list` — List the identities
* `new` — Create a new identity
* `principal` — Display the principal for the current identity



## `icp-cli identity default`

Display the currently selected identity

**Usage:** `icp-cli identity default [NAME]`

###### **Arguments:**
Expand All @@ -530,6 +538,8 @@ Manage your identities

## `icp-cli identity import`

Import a new identity

**Usage:** `icp-cli identity import [OPTIONS] <--from-pem <FILE>|--read-seed-phrase|--from-seed-file <FILE>> <NAME>`

###### **Arguments:**
Expand All @@ -548,12 +558,16 @@ Manage your identities

## `icp-cli identity list`

List the identities

**Usage:** `icp-cli identity list`



## `icp-cli identity new`

Create a new identity

**Usage:** `icp-cli identity new [OPTIONS] <NAME>`

###### **Arguments:**
Expand All @@ -568,6 +582,8 @@ Manage your identities

## `icp-cli identity principal`

Display the principal for the current identity

**Usage:** `icp-cli identity principal [OPTIONS]`

###### **Options:**
Expand Down