Working With Environments

The base zendev entity is the environment. An environment represents:

The path to the current environment is always readily accessible:

# Prints path to the root of the environment
zendev root

Creating an Environment

# Create a new zendev environment at $PWD/ENVIRONMENT
zendev init ENVIRONMENT

Listing Environments

# List all environments. The current one will be indicated with an
# asterisk.
zendev ls

Using an Environment

# Switch to the environment named ENVIRONMENT
zendev use ENVIRONMENT

Using an environment will:

  • Set GOPATH to $(zendev root)/src/golang
  • Set PATH to $(zendev root)/src/golang/bin:${PATH}
  • Set ZENHOME to $(zendev root)/zenhome

Deleting an Environment

# Delete an environment from zendev config, but leave files
zendev drop ENVIRONMENT

# Delete an environment and all files
zendev drop --purge ENVIRONMENT