Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cli.md #1651

Merged
merged 2 commits into from
Jan 9, 2024
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
8 changes: 7 additions & 1 deletion docs/4.tools/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Under the hood, NEAR CLI utilizes the [`NEAR JavaScript API`](https://github.com
:::info

The NEAR CLI also comes with an implementation in Rust called [`near-cli-rs`](https://github.com/near/near-cli-rs).

If you want to use `near-cli` while you have `near-cli-rs` installed, prefix the following commands with `npx`.
:::

## Overview {#overview}
Expand Down Expand Up @@ -551,6 +551,12 @@ near create-account sub-acct.example-acct.testnet --masterAccount example-acct.t
near create-account sub-acct2.example-acct.testnet --masterAccount example-acct.testnet --initialBalance 10
```

**.testnet example:**
To create a `.testnet` (or `.mainnet`) account, you must call the testnet contract to create the account. Here is an example:
```bash
near call testnet create_account '{"new_account_id": "<account-name>.testnet", "new_public_key": "ed25519:<data>"}' --deposit 0.00182 --accountId <account-with-funds>
```

<details>
<summary>**Example Response:**</summary>
<p>
Expand Down
Loading