Skip to main content

mngr-file

Read, write, and list files on agents and hosts.

A plugin for mngr that adds the mngr file command with get, put, and list subcommands.

Usage

# Read a file from an agent (prints to stdout)
mngr file get my-agent config.toml

# Read a file and save locally
mngr file get my-agent config.toml --output local-config.toml

# Write a file to an agent from a local file
mngr file put my-agent config.toml --input local-config.toml

# Write stdin to a file on an agent
echo "hello" | mngr file put my-agent greeting.txt

# List files in an agent's work directory
mngr file list my-agent

# List files recursively
mngr file list my-agent -R

# List files in a specific subdirectory
mngr file list my-agent src/

# Use absolute paths (bypasses --relative-to)
mngr file get my-agent /etc/hostname

Target

TARGET is either an agent or a host, decided from the text you type rather than by looking it up:

  • @NAME (or @NAME.PROVIDER) always means a host.
  • A host ID (host-<hex>), or any name containing a dot, is read as a host.
  • Anything else is read as an agent.

A host whose name is a plain word -- no host- prefix, no dot -- is therefore only reachable in the @ form. Write mngr file list @my-host, not mngr file list my-host; the bare form is read as an agent name and fails to resolve.

Path resolution

Paths can be absolute or relative. Relative paths are resolved against a base directory that depends on the target type:

Agent targets use --relative-to to select the base directory:

  • work (default): the agent's working directory
  • state: the agent's state directory ($MNGR_AGENT_STATE_DIR)
  • host: the host directory ($MNGR_HOST_DIR)

Host targets always resolve relative paths against the host directory ($MNGR_HOST_DIR).

Options

Output format

All subcommands accept the standard mngr --format option: human (the default), json, or jsonl.

list and put additionally accept a format template, like the other record-emitting mngr commands, and render one line per record:

mngr file list my-agent --format '{name} {size}'
echo hello | mngr file put my-agent greeting.txt --format '{path} {size}'

For list, a template can address any field an entry carries -- not just the displayed columns -- using the field names listed under Field selection below. For put, the fields are path and size. size renders the same way in both.

get does not accept a template: its outcome is the file's own bytes, and a template would replace the content asked for rather than describe it.

get streams the file's bytes to stdout in human format, and reports them base64-encoded as content_base64 in json/jsonl. With --output, the bytes go to the named local file instead, and the report carries output_path and the size in place of the content.

list on a directory that does not exist is an error. An empty listing means the directory exists and holds nothing.

Field selection (list only)

  • --fields name,size,modified -- select which columns to display
  • Available fields: name, path, file_type, size, modified, permissions

File options (put only)

  • --mode 0644 -- set file permissions on the remote file

Metadata

Release files for imbue-mngr-file 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for imbue-mngr-file 0.2.0
File Interpreter ABI Platform Actions
imbue_mngr_file-0.2.0-py3-none-any.whl Python 3 none any Details for imbue_mngr_file-0.2.0-py3-none-any.whl

Release files / imbue_mngr_file-0.2.0-py3-none-any.whl

Download URL imbue_mngr_file-0.2.0-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc075fed1e5235d1de4716a19c63f25a5823d4dc23eda4408573d8db5a925982
BLAKE2b-256 checksum
How to use checksums
2909b82ebc21fad13a304d6f3ca5a91f86acaf81bc70635e4511e0a3fa378101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for imbue-mngr-file 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for imbue_mngr_file-0.2.0-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page