vms command line tool to create a sandbox, run a command in it, copy a file, open SSH, and delete the sandbox.
Use a sandbox from the terminal with the vms CLI.
Before you start
- Your workspace needs a plan or a trial. See Choose a plan or start a trial.
- You need the Owner or Admin role in the workspace to sign in with your browser. A member can sign in with an API key. See Sign in.
- You need Homebrew on macOS or Linux. To install without Homebrew, see Install.
1
Install the CLI
2
Sign in
3
Create a sandbox
running, and writes its ID.4
Run a command
5
Copy a file
6
Open a shell
ssh.vms.dev to ~/.ssh/known_hosts. Type exit to close the shell.7
Delete the sandbox
Check the result
Runvms ls. The list does not show agent-42.
Next steps
- See each command and its options in the CLI reference.
- Stop a sandbox and resume it later with its files. See Stop and resume a sandbox.
- Make many copies of one sandbox with
vms fork. See Fork a sandbox. - Use a sandbox from code. See Use a sandbox from TypeScript.