Andromeda
ADO LibraryBuild AppsDevelop ADOsCLIWeb Application Docs
Andromeda
Andromeda
  • Platform and Framework
    • Introduction to AndromedaOS
    • ADO Classes
    • Andromeda Messaging Protocol
      • Kernel
      • ADO Database
      • Economics Engine
      • Virtual File System
    • ADO Base
      • AndromedaMsg
      • AndromedaQuery
    • Common Types
    • Deployed Contracts
    • ADO Versions
  • Andromeda Digital Objects
    • Introduction to ADOs
    • Address List
    • Auction
    • App
    • Curve
    • CW20
    • CW20 Staking
    • CW721
    • CW20 Exchange
    • Fixed Amount Splitter
    • Graph
    • Lockdrop
    • Marketplace
    • Merkle-Airdrop
    • Point
    • Primitive
    • Rates
    • Splitter
    • Timelock
    • Validator Staking
    • Vesting
  • Andromeda Apps
    • Introduction to Apps
    • Auctioning App
    • Cw20 Staking App
    • Marketplace App
  • Developing an ADO
    • Getting Started
      • Instantiation
      • Execution
      • Queries
      • Testing
    • Error Handling and Migrate Function
    • CW3 EXAMPLE
      • InstantiateMsg
      • ExecuteMsg
      • QueryMsg
      • Testing
    • ADO Submissions
  • Andromeda CLI
    • Introduction
    • Help and Shortcuts
    • ADO
    • Bank
    • Chain
    • Env
    • Gql
    • Tx
    • OS
    • Wallet
    • Wasm
    • Clearing CLI Data
    • Clear and Exit
  • Chain
    • Running a Node
    • Staking and Rewards
  • Andromeda Dashboard
    • Tokenomics Dashboard
    • Dashboard API
  • Andromeda Changelog
    • Newest Releases
  • Additional Resources
    • GitHub
    • Website
    • White Paper
Powered by GitBook

Additional Resources

  • Github
  • Website

Community

  • Discord
  • Telegram

Socials

  • Twitter
  • Medium
  • Youtube
On this page
  • Available Commands
  • Create
  • List
  • Remove
  • Rename
  • Print
  • Update
  • Use

Was this helpful?

  1. Andromeda CLI

Env

Manage CLI environments.

Available Commands

Command
Description

Create a new environment.

List all available environments.

Deletes one of the environments.

Renames an environment.

Print details about the connected env.

Update one of the env configurations.

Select which env to use.

Create

Creates a new custom environment.

Usage

env create 

Example

// create new env
? @galileo-4> env create
? Env Name:  example-env
? GQL Url:  https://api.andromedaprotocol.io/graphql/testnet
? Schema Url:  (https://api.andromedaprotocol.io/v1/schema) 

// list the available envs now
? @galileo-4> env list
Name        GQL                                              Schema Url                                
devnet      https://api.andromedaprotocol.io/graphql/dev     https://api.andromedaprotocol.io/v1/schema
example-env https://api.andromedaprotocol.io/graphql/testnet https://api.andromedaprotocol.io/v1/schema
mainnet     https://api.andromedaprotocol.io/graphql/mainnet https://api.andromedaprotocol.io/v1/schema
testnet     https://api.andromedaprotocol.io/graphql/testnet https://api.andromedaprotocol.io/v1/schema

List

Lists the available environments.

Usage

env list

Example

? guides@galileo-4> env list

Name    GQL                                              Schema Url                                
devnet  https://api.andromedaprotocol.io/graphql/dev     https://api.andromedaprotocol.io/v1/schema
mainnet https://api.andromedaprotocol.io/graphql/mainnet https://api.andromedaprotocol.io/v1/schema
testnet https://api.andromedaprotocol.io/graphql/testnet https://api.andromedaprotocol.io/v1/schema

Remove

Deletes one of the environments.

You cannot remove the env that you are currently using.

Usage

env remover <env-name>

Example

// list envs
? guides@galileo-4> env list

Name     GQL                                              Schema Url                                
devnet   https://api.andromedaprotocol.io/graphql/dev     https://api.andromedaprotocol.io/v1/schema
mainnnet https://api.andromedaprotocol.io/graphql/mainnet https://api.andromedaprotocol.io/v1/schema
testnet  https://api.andromedaprotocol.io/graphql/testnet https://api.andromedaprotocol.io/v1/schema

// Remove one 
? guides@galileo-4> env remove mainnet
? This action is irreversible! Are you sure you want to remove env mainnet? Yes
Env removed!

// list envs again

? guides@galileo-4> env list
Name    GQL                                              Schema Url                                
devnet  https://api.andromedaprotocol.io/graphql/dev     https://api.andromedaprotocol.io/v1/schema
testnet https://api.andromedaprotocol.io/graphql/testnet https://api.andromedaprotocol.io/v1/schema

Rename

Rename an existing environment.

Usage

env rename <old-name> <new-name>

Example

// rename the env
? guides@galileo-4> () env rename testnet testnet-renamed

// List the envs
? guides@galileo-4> env list

Name            GQL                                              Schema Url                                
devnet          https://api.andromedaprotocol.io/graphql/dev     https://api.andromedaprotocol.io/v1/schema
testnet-renamed https://api.andromedaprotocol.io/graphql/testnet https://api.andromedaprotocol.io/v1/schema

Print

Prints details about the connected environment.

Usage

env print

Example

? cli-testing@galileo-4> env print 
Current env config

name   testnet                                          CLI Env name                   
gql    https://api.andromedaprotocol.io/graphql/testnet Graphql url for this enviroment
schema https://api.andromedaprotocol.io/v1/schema       Schema url for this enviroment 
envs   testnet,mainnet,devnet,legacy                    All available envs             

? cli-testing@galileo-4> () 

Update

Update one of the configurations for the env.

Usage

env update <field> <new value>

Example

env update gql https://api.andromedaprotocol.io/graphql/testnet

This will update the gql url used to the one specified.

Use

Select which env to use.

Usage

env use <env-name>

Example

You can run "env use" and you will get a list of the available environments to select from.

? cli-testing@galileo-4> () env use mainnet

This will switch to use mainnet env.

PreviousChainNextGql

Last updated 5 months ago

Was this helpful?

create
list
remove
rename
print
update
use