Skip to main content

Interactive console

Open an SSH session directly inside a running sandbox:
Aliases: shell, ssh, s
The console auto-reconnects if the connection drops. Press Ctrl+D or type exit to close.
The sandbox must be running before you can open a console. Use pocketenv start my-sandbox first if it’s stopped.

Execute a single command

Run a command non-interactively and get the output back:
Multi-word commands need quotes:

Copy files

Transfer files between your local machine and a sandbox using pocketenv copy (alias: cp):

Clone a repository on start

Pass --repo when starting a sandbox to automatically clone a git repository:
You can also do it at creation time:
The --ssh flag opens a console immediately after the sandbox starts.

Keep-alive

By default, idle sandboxes stop automatically after a period of inactivity. Use --keep-alive to prevent that:
Keep-alive sandboxes accrue compute costs continuously. Remember to stop them manually when done.

SDK