cp
Recipe card from the charly-pod-verbs plugin (Commands — runtime CLI verbs).
charly cp — copy a file between the host and a container
Section titled “charly cp — copy a file between the host and a container”charly cp <box> <src> <dst> copies a file between the host and a running
container (app or sidecar). It is served by candy/plugin-pod (a command:cp
plugin) and is the charly-native replacement for ad-hoc podman cp.
Exactly one of <src>/<dst> carries the : prefix marking the CONTAINER side
(the same convention as cp/podman cp):
charly cp my-app ./config.toml :/etc/app/config.toml # host -> containercharly cp my-app :/var/log/app.log ./app.log # container -> hostcharly cp my-app :/etc/x ./x --sidecar tailscale # target a sidecar containerOptions
Section titled “Options”-i <instance>— a named instance.--sidecar <name>— target the named SIDECAR container instead of the app.
Cross-References
Section titled “Cross-References”/charly-core:shell— interactive shell in the same container./charly-automation:sidecar— the sidecar-container model.