File command plugin for mngr - read, write, and list files on agents and hosts
Project description
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 can be either an agent name/ID or a host name/ID. If the identifier matches both an agent and a host, an error is raised asking you to use the full ID for disambiguation.
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 directorystate: 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 support standard mngr output options (--output-format, --format).
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imbue_mngr_file-0.1.1.tar.gz.
File metadata
- Download URL: imbue_mngr_file-0.1.1.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b0ce75aef007e451b2ebdb190cd0caac5ebe6672fe4f3c966853461199024eb
|
|
| MD5 |
1e5a7ff94803470c64ddfd9a239ea052
|
|
| BLAKE2b-256 |
092b5e0473e265c6c5c6fc5a024cb10fde0a9a4ff9c6eed7066e642772b07c44
|
Provenance
The following attestation bundles were made for imbue_mngr_file-0.1.1.tar.gz:
Publisher:
publish.yml on imbue-ai/mngr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imbue_mngr_file-0.1.1.tar.gz -
Subject digest:
3b0ce75aef007e451b2ebdb190cd0caac5ebe6672fe4f3c966853461199024eb - Sigstore transparency entry: 1266404443
- Sigstore integration time:
-
Permalink:
imbue-ai/mngr@ad122299f2a4929360f85c4b1ce4266148092f74 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/imbue-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ad122299f2a4929360f85c4b1ce4266148092f74 -
Trigger Event:
push
-
Statement type:
File details
Details for the file imbue_mngr_file-0.1.1-py3-none-any.whl.
File metadata
- Download URL: imbue_mngr_file-0.1.1-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2d5779ae4d4b86533e1fe46529fcbad4f8442e3608a03b34d7d97329318465b
|
|
| MD5 |
8c27a621fe652e6a9b05f3139276523b
|
|
| BLAKE2b-256 |
408541631962052af66d20eb20979319826b80faeda08bc3fda9a87da74f622a
|
Provenance
The following attestation bundles were made for imbue_mngr_file-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on imbue-ai/mngr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imbue_mngr_file-0.1.1-py3-none-any.whl -
Subject digest:
e2d5779ae4d4b86533e1fe46529fcbad4f8442e3608a03b34d7d97329318465b - Sigstore transparency entry: 1266405450
- Sigstore integration time:
-
Permalink:
imbue-ai/mngr@ad122299f2a4929360f85c4b1ce4266148092f74 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/imbue-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ad122299f2a4929360f85c4b1ce4266148092f74 -
Trigger Event:
push
-
Statement type: