> ## Documentation Index
> Fetch the complete documentation index at: https://docs.near.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an Account

> Understand how to create a NEAR account using a wallet and the NEAR CLI

To start developing applications in NEAR you will need a NEAR `testnet` account. This account will allow you to deploy and test your applications without spending any real money.

You can create a `testnet` NEAR account through one of the following methods:

* [Using one of the wallets listed in wallet.near.org](#using-a-wallet)
* [Using the command line interface (CLI)](#through-the-cli)

<Tip>
  If you already have a NEAR account, you can import it into another wallet or the CLI. See [Importing Existing Accounts](#importing-existing-accounts) below.
</Tip>

***

## Using a Wallet

Go to [wallet.near.org](https://wallet.near.org/) and choose one of the wallets listed there. Do not worry, the list has been curated, so you can be sure that all wallets listed there are safe to use.

In general, all wallets will offer similar functionality, so in theory you can choose any of them. However, know that some wallets will readily allow you to create [named accounts](/protocol/accounts-contracts/account-id#named-address) (e.g. `alice.testnet`), which are easier to remember.

Remember to write down the seed phrase, as it is the only way to access your account!

<Warning>
  **Testnet**
  Make sure to create a `testnet` account (ending with `.testnet`, e.g. `alice.testnet`), and not a `mainnet` account (ending with `.near`).

  NEAR `testnet` is a separate network that allows you to test your applications without spending real money.
</Warning>

<Tip>
  **Funding the Wallet**

  Need `testnet` funds? try using one of our [faucets](/getting-started/faucet)
</Tip>

***

## Through the CLI

When developing smart contracts you will expend lots of time interacting with the NEAR blockchain through the command line interface (CLI).

First, you will need to install the [NEAR CLI](/tools/cli#installation):

<Tabs>
  <Tab title="npm">
    ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
    npm install -g near-cli-rs@latest
    ```
  </Tab>

  <Tab title="Cargo">
    ```
    $ cargo install near-cli-rs
    ```
  </Tab>

  <Tab title="Mac and Linux (binaries)">
    ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
    curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh
    ```
  </Tab>

  <Tab title="Windows (binaries)">
    ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
    irm https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.ps1 | iex
    ```
  </Tab>
</Tabs>

Once you have the CLI installed, you can create a new account using the following command:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
near create-account <account.testnet> --useFaucet
```

This command will create a new account with the name `<account.testnet>` and fund it using the `testnet` faucet. Make sure to replace `<account.testnet>` with your desired account name.

***

## Importing Existing Accounts

If you want to use an existing NEAR account in another wallet or in the CLI, you can import it using your seed phrase or private key.

<Accordion title="1. Export your seed phrase or private key">
  From your current wallet, use its account backup/export flow.

  If the account was created with the CLI, run:

  ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
  near account export-account <account.testnet>
  ```
</Accordion>

<Accordion title="2. Import into a wallet">
  In your destination wallet, choose the account import/restore option and provide your seed phrase.
</Accordion>

<Accordion title="3. Import into the CLI">
  Run:

  ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
  near account import-account
  ```

  Then follow the prompts to enter your seed phrase or private key.
</Accordion>

<Warning>
  Keep your seed phrase and private key secure. Anyone with access to them can control your account.
</Warning>

***

## Next Steps

Now that you have created a NEAR account, you can start developing applications on the NEAR Protocol.

Here are some resources to help you get started:

* Fund the wallet through one of our [faucets](/getting-started/faucet)
* Create your [first smart contract](/smart-contracts/quickstart)
* Build a [Web3 Application](/web3-apps/quickstart)
* Learn how to build an [Auction App from end-to-end](/web3-apps/tutorials/mastering-near/0-intro)
