Browse images
List available images:Sessions
Every command in ConTree runs inside a session — a named workspace that tracks which image you’re on, your working directory, file uploads, and full branch/rollback history.How sessions are picked
You don’t have to create a session manually. When you run any command, ConTree auto-generates a session key from your profile, parent process ID, and terminal (TTY). This means the same terminal window gets the same session — but opening a new terminal creates a new session because the process ID changes. There are three ways to control which session is used (in priority order):-Sflag —contree -S my-session run ...— explicit, survives terminal restartsCONTREE_SESSIONenv var —export CONTREE_SESSION=my-session— stable for the shell session- Auto-generated — derived from profile + PID + TTY (default, tied to current terminal)
Starting a session
The recommended way iseval, which exports the session key so it
survives across commands and is easy to resume later:
eval, contree use still works within the same terminal —
the auto-generated key is stable as long as the terminal stays open:
eval or -S.
Resuming sessions
List existing sessions and resume one:contree shell, you don’t need eval — but the shell still
needs a session. Use -S or CONTREE_SESSION to pin it:
-S, the auto-generated session is used (tied to current terminal).
Run a command
- CLI
- Shell
Check session status
See what image and session you’re working with:contree use without arguments prints the current session info.
Install packages
Commands chain naturally. Each run advances the session image:- CLI
- Shell
curl.
Change working directory
Set a working directory for the session — subsequent commands resolve relative paths against it:Inspect the filesystem
List files and read content without spawning a new sandbox:- CLI
- Shell
Download a file
Copy a file from the sandbox to your local machine:- CLI
- Shell
Disposable mode
Use-D / --disposable when you want to run a command without advancing the
session image. Changes are discarded after execution:
- CLI
- Shell
Your session tracks every command. Next: Interactive Shell.