contree-cli 0.9.4 and ubuntu:latest to save a file in one operation and read it in the next.
1
Install and authenticate
Create an API key and copy the project ID as described in Set up access, then install CLI 0.9.4:The CLI reads these values when registering the profile. Later CLI commands use the saved profile.
contree auth prompts for the API key without echoing it, then for the project ID, and saves a local profile. Values supplied through flags or environment variables skip the corresponding prompt. contree auth ls probes the profile. Continue when its status is ok.For non-interactive profile registration, set the CLI-specific project variable before running auth:2
Find and select an image
List available Ubuntu images and note the immutable UUID in the first column:Select A tag is convenient for discovery, but it can move. Record the resolved image UUID when reproducibility matters.
ubuntu:latest in a unique local session:3
Save and reuse a file
CLI runs retain changes and advance the session unless Expected output from the second command:Each command starts fresh compute. The session carries the selected image, working directory, staged files, and history; it does not keep the previous VM or process running.
-D or --disposable is present. Choose the retained mode by omitting that flag before submitting the first command:4
Verify disposable behavior
Use The second command exits successfully because the previous disposable run did not change the session image.
-D for a command whose filesystem changes must not advance the session: