> For the complete documentation index, see [llms.txt](https://docs.andromedaprotocol.io/cli-update/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.andromedaprotocol.io/cli-update/cli-updates.md).

# CLI Updates

The latest update to the CLI is now available, bringing a host of new features, performance enhancements, and critical bug fixes. This release aims to improve the overall user experience, streamline workflows, and provide even more flexibility and power to users.

{% hint style="warning" %}
You can access the full CLI docs [here](https://docs.andromedaprotocol.io/andromeda/andromeda-cli/introduction).
{% endhint %}

## New Features

### UI Improvements

<figure><img src="/files/EnJKZEvgnjbWSzuUbFzI" alt=""><figcaption></figcaption></figure>

* If there is a CLI update, this is now shown to the user.
* Current environment and chain config are now displayed to the user.&#x20;

### Environments

Switching between testnet, mainnet and other environments has never been easier. Each environment has the following:

* **name:** The name of the environment.&#x20;
* **gql:** The gql endpoint used by this environment.
* &#x20;**schema:** The url pointing to the contract schemas used in this environment.

{% hint style="info" %}
There are three default environments (mainnet, testnet, devnet) that cannot be modified. A user is welcome to create additional envs and customize them as they please.
{% endhint %}

The new CLI update includes new **env** commands enabling users to do the following:

* Switch between environments.
* Create new custom environments.
* Remove, rename, and list environments.

### New Wasm Commands

Two new commands have been added to help users get important information about their ADOs:

* **Wasm Info:** Gets general information about an ADO such as the creator, code Id, label and more.
* **Wasm Query Raw:** Queries base information about an ADO such as owner, type, kernel address and more.&#x20;

### GQL

A couple of changes have been made to the GQL command:

* Removed gql url commands as now this is handled in the env commands.
* Added **limit** and **offset** flags to "gql assets" command giving users better control on the results they need.

### Wallet&#x20;

Improvements have been made to wallet management. The following changes have been implemented:

* Command to create a new wallet "**wallet add**" has been renamed to "**wallet generate**".
* The "**-- recover**" flag has been removed, and now "**wallet recover**" is its own command to import an existing wallet to the CLI. Private keys can be used to recover a wallet instead of a mnemonic.&#x20;
* "**wallet rename**" command added allowing users to give an existing wallet a new name.
* "**wallet reveal**" command added allowing users to reveal the mnemonic phrase or private key for the connected wallet. Passphrase is required for this command.
* "**wallet autosave**" command added allowing users to enable/disable storing the wallet password in the keychain. By default, the password is saved. If disabled, then every time the user wants to use the wallet, they need to input the password.
* "**wallet migrate-legacy**" command added to migrate wallets to the new CLI. This command will be disabled eventually when users have completed migration.
* wallets are now created for all chains. A new or imported wallet to one chain can be used on any of the integrated chains (Similar to how for the same Keplr account, you have an address for each chain).

### Bugs and Improvements

* Improved error handling and validation for wallet operations.
* Enhanced file storage and retrieval processes for better organization.

## Migrating to new CLI

As this CLI update has seen major changes and improvements, users using older versions of the CLI are required to migrate their wallets to the new CLI. This process is very simple:

### Update to the new CLI version

Update to new CLI by running the following command in the terminal:

```
npm update -g @andromeda-protocol/cli
```

### Migrate wallets to new CLI

To migrate your old wallets, run the following command:

```
wallet migrate-legacy
```

Then select from the list of wallets the name of the wallet you want to import to the new CLI.

**Example**&#x20;

```
? user-3-renamed@galileo-4> wallet migrate-legacy
? Select wallet to migrate: (Use arrow keys or type to search, tab to autocomplete)
❯ main 
  test1 
  main-star 
  main-andr 
  main-terra 
  user-2 
  keplr 
```

Here I can select from the list of available wallets I had in older CLI versions. Once this is done, you are good to go.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.andromedaprotocol.io/cli-update/cli-updates.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
