// 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> ()