cd¶
Change the working directory for subsequent commands in the current session.
Examples¶
contree cd /app
contree run -- ls # runs in /app
contree cd /etc
contree cat os-release # reads /etc/os-release
contree cd # reset to sandbox default
Help output¶
Behavior¶
cd stores the path in the session state. Subsequent run, ls, cat,
and cp commands resolve relative paths against it.
cd without arguments resets to the sandbox’s default working directory.
Note
cd does not validate that the path exists in the sandbox. Errors
surface only when the next command uses the invalid path.