Skip to content

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):

Terminal window
charly cp my-app ./config.toml :/etc/app/config.toml # host -> container
charly cp my-app :/var/log/app.log ./app.log # container -> host
charly cp my-app :/etc/x ./x --sidecar tailscale # target a sidecar container
  • -i <instance> — a named instance.
  • --sidecar <name> — target the named SIDECAR container instead of the app.