Manage machines from the CLI
Targeted commands for individual machines inside a workspace: status, restart, port forwarding, file copy.
List machines in a workspace#
bash
easyenv machine list --workspace <workspace-id>Restart a machine#
bash
easyenv machine restart <machine-id>Logs#
Stream the machine's cloud-init and Ansible boot logs:
bash
easyenv machine logs <machine-id>
easyenv machine logs <machine-id> --followPort forward to localhost#
Bring a remote port to your laptop. Useful for hitting a dev server in your local browser without exposing it publicly:
bash
# Forward remote 8080 to local 8080
easyenv machine forward <machine-id> 8080
# Forward to a different local port
easyenv machine forward <machine-id> 8080:9000Copy files#
bash
# Push a local file to the machine
easyenv machine cp ./fixtures.sql <machine-id>:/tmp/fixtures.sql
# Pull a file off the machine
easyenv machine cp <machine-id>:/var/log/app.log ./app.log