Env
Manage CLI environments.
Available Commands
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.
Last updated
Was this helpful?