Manage workspaces from the CLI
Spin workspaces up and down without leaving your terminal. Useful for scripted demos, CI integration tests, and quick sanity checks.
List workspaces#
bash
easyenv workspace list
# JSON output for scripts
easyenv workspace list --output jsonCreate#
you@laptop: ~/work
# From a templateyou@laptop:~/work$ easyenv workspace create --template python_devenv --name review-pr-1284 --ttl 8hProvisioning workspace review-pr-1284 ...dev-1 [provisioning] cloud-init ........ okdev-1 [provisioning] ansible run ....... ok✓ review-pr-1284 is running (1 machine, 38s)open https://dashboard.easyenv.io/acme/workspaces/review-pr-1284# From individual recipesyou@laptop:~/work$ easyenv workspace create --name api-stack \--recipe node_devenv:medium --recipe postgres:small --recipe redis:small
Inspect#
bash
easyenv workspace get <id>
easyenv workspace get <id> --output jsonThe output includes the machine list, their statuses, and the public URLs for any exposed ports.
Stop and resume#
bash
easyenv workspace stop <id>
easyenv workspace resume <id>Delete#
bash
# With confirmation
easyenv workspace delete <id>
# Skip the prompt (use carefully in scripts)
easyenv workspace delete <id> --yesSSH into a machine#
The CLI can drop you into a shell over the EasyEnv mesh:
bash
# Default: pick the first machine in the workspace
easyenv workspace ssh <workspace-id>
# Explicit machine by hostname
easyenv workspace ssh <workspace-id> --machine <hostname>