LXC.FILE.PUSH(1)
π lxc-file-push β the LXD command line client, bestie edition
okay so first things first, the manual name up top is LXD - Command line client(1) β that's the whole vibe of the family this page belongs to. and this specific page? this is lxc file push, the "put my stuff inside the container" command. no cap.
β¨ NAME β¨
lxc-file-push β push files into instances π«Ά
π¦ SYNOPSIS π¦
lxc file push ... [:]/ [flags]
that's the whole shape of it. there's ... in there (very mysterious, very "you know what it is"), then a [:]/ situation, then your [flags]. she's giving flexible. π
πΈ DESCRIPTION πΈ
so like, the actual description, straight up:
Push files into instances.
that's it. that's the whole thing. you have files, you have an instance, and this is the bridge between them. iconic behavior honestly. β¨
π OPTIONS π
these are her options, the ones that belong to lxc file push specifically:
-p,--create-dirs[=false]β makes any directories that need to exist, y'know, exist. like if the path you're pushing to has folders that aren't there yet, this handles it. defaults tofalse, so by default she will not be doing that for you. π--gid=-1β sets the file's gid on push. default is-1.--mode=""β sets the file's perms on push. default is empty (""), i.e. not set.-r,--recursive[=false]β recursively transfer files. whole folders, all the way down. default isfalseβ--uid=-1β sets the file's uid on push. default is-1.
quick heads up bestie: a couple of these come with some stray `` backtick bits in the original text. that's just a formatting artifact, not a secret extra flag. moving on π
π OPTIONS INHERITED FROM PARENT COMMANDS π
these aren't hers, she got them from her parent commands. family traits, iykyk:
--debug[=false]β show all debug messages. defaultfalse.--force-local[=false]β force using the local unix socket. defaultfalse.-h,--help[=false]β print help. defaultfalse(obvi).--project=""β override the source project. default is empty.-q,--quiet[=false]β don't show progress information. defaultfalse.--sub-commands[=false]β use this withhelpor--helpto view sub-commands. defaultfalse.-v,--verbose[=false]β show all information messages. defaultfalse.--version[=false]β print version number. defaultfalse.
π₯ EXAMPLE π₯
this is the one that makes it click, fr fr:
lxc file push /etc/hosts foo/etc/hosts
what's happening here? you're pushing /etc/hosts into the instance called "foo". so /etc/hosts from your machine lands at /etc/hosts inside foo. slay. β
π§ SEE ALSO π§
lxc-file(1)β go read that one too, she's the wholefilesubcommand situation π
π HISTORY π
22-Aug-2026 β Auto generated by spf13/cobra.
not me being literally autogenerated π at least the cobra did a good job.
and that's the page!! π little sign-off as promised: this whole thing is Auto generated by spf13/cobra, dated Aug 2026, and it lives under the banner of LXD - Command line client(1). go push some files, bestie, you got this πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms