appcrane_cp
Upload files directly to an app's persistent /data volume, bypassing container and GitHub round-trips. Supports large datasets and binary blobs, returns SHA-256 for integrity verification.
Instructions
Copy/upload a file straight into the app's persistent /data volume on the host (aliases: appcrane_upload, appcrane_set_data_blob) — single hop, no container round-trip, no GitHub round-trip, no inline size ceiling. The bytes land at /data/apps///shared/data/, which is the SAME path the running container sees mounted as /data/. Right tool for multi-MB datasets, large fixtures, or anything where appcrane_push_to_managed_app's tool-arg ceiling would force chunking. Returns the SHA-256 + byte count of what was stored so the caller can verify integrity. App-admin or owner of the app required. NEVER returns secrets in the response. Path must be repo-relative, no .., no leading slash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path within /data, e.g. "datasets/threats.json" or "cache/build.tar.gz". No leading slash, no "..". | |
| slug | Yes | App slug. | |
| stage | No | Which env's /data volume to write to. Target stage (legacy alias: env). | sandbox |
| content | Yes | The data to write. utf-8 string or base64-encoded bytes depending on encoding. | |
| encoding | No | Defaults to utf-8. Use base64 for binary blobs. | utf-8 |