# View a text file
contreecat/etc/os-release
# Pipe to another command
contreecat/var/log/app.log|grepERROR
# Redirect to a local file
contreecat/etc/nginx/nginx.conf>nginx.conf
$ contree cat --helpusage: contree cat [-h] pathShow file content from the session image.Downloads and displays a file from the current session image via the/inspect/ API without spawning an instance. Binary files are refusedwhen stdout is a terminal — use shell redirection or `contree cp` tosave them locally.Results are cached per (image, path) so repeated reads are instant.positional arguments: path Path inside imageoptions: -h, --help show this help message and exitfor coding agents: read-only command (inspect API, no instance spawn) binary output is blocked on interactive TTY; pipe or use cp for binaries --format is ignored; output is raw file contentagent note: Before using this command in an automated workflow, read: contree agent
The file is read directly from the image – no sandbox is started.
Binary files are detected and refused when output is a terminal (to protect
your shell). Redirect to a file or pipe to another command to handle binary
content:
contreecat/usr/bin/curl>curl
For downloading files to a specific local path, use cp instead.