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

Example

Remove

Deletes one of the environments.

Usage

Example

Rename

Rename an existing environment.

Usage

Example

Print

Prints details about the connected environment.

Usage

Example

Update

Update one of the configurations for the env.

Usage

Example

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

Use

Select which env to use.

Usage

Example

This will switch to use mainnet env.

Last updated

Was this helpful?