# Deploying a Solana Memecoin using CLI

In this guide, we’ll walk you through the process of creating your own token on Solana, step by step, leveraging the power of the Solana Command Line Interface (CLI) tools and Metaplex.

## . Install Solana CLI Tools <a href="#cf8c" id="cf8c"></a>

First, download the Solana Command Line Interface (CLI) tools with the necessary commands to interact with the Solana blockchain.

Click here: <https://docs.solanalabs.com/cli/install>

<figure><img src="https://miro.medium.com/v2/resize:fit:1400/1*k08dWGatpsgqLLHH2PCHeg.png" alt="" height="388" width="700"><figcaption></figcaption></figure>

For windows you’ll have to run these commands:

```
cmd /c "curl https://release.solana.com/v1.18.4/solana-install-init-x86_64-pc-windows-msvc.exe --output C:\solana-install-tmp\solana-install-init.exe --create-dirs"
```

and

```
C:\solana-install-tmp\solana-install-init.exe v1.18.4
```

## 2. Generate a Wallet <a href="#id-3c74" id="id-3c74"></a>

Then, use `solana-keygen new` to create a new Solana wallet. Remember to fund this wallet with SOL tokens to cover transaction fees.

## 3. Create Your Token <a href="#id-8c16" id="id-8c16"></a>

Execute the token creation command with a specified program ID, typically the Token Program’s ID for standard tokens. Save the output token address.

```
spl-token create-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb
```

## 4. Set Up Your Project <a href="#d275" id="d275"></a>

Download this tool: <https://github.com/webpov/solana_token_metadata> and install dependencies with `npm install`. Prepare your project for token manipulation.

## 5. Configure Your Token <a href="#a068" id="a068"></a>

Create a `.env` file in your project with key details like your token address, coin name, symbol, and metadata URI.

```
KEYPAIR_FILE ="C:\Users\Equipo\.config\solana\id.json"
UMI_RPC_ENDPOINT ="https://api.mainnet-beta.solana.com"


TOKEN_ADDRESS ="8ETRMuisyt8fgtdVFKx2JWSSqtuQxQyCuWEBQJym86Nf"
METADATA_NAME="Test Token"
METADATA_SYMBOL="NEWCOIN"
METADATA_URI="https://coinrace.online/token/metadata.json"
```

## 6. Run the Setup Script <a href="#id-6545" id="id-6545"></a>

Execute thescript, with `ts-node token22`, to execute and finalize your token's setup, including minting and distribution configurations.

## 7. Mint Your Tokens <a href="#id-32de" id="id-32de"></a>

Create a token account with `create-account`, then mint tokens to this account using the `mint` command and the desired initial supply amount.

```
spl-token create-account <token_address>
spl-token mint <token_address> <amount>
```

<figure><img src="https://miro.medium.com/v2/resize:fit:1400/1*Ffu4baGyRqbCtwUmTTe6Lg.png" alt="" height="372" width="700"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://8bit-1.gitbook.io/solibrary/deploying-a-solana-memecoin-using-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
