LXC.CONFIG.SET(1)

πŸ“¦
version 5.21.6 Β· 3 versions
, in opensuse-leap 16.0

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to lxc-config-set β€” the lil command that sets instance or server configuration keys for LXD, the command line client. yes that's the whole job. one job. iconic. ✨


🌸 SYNOPSIS 🌸

lxc config set [:][] =... [flags]

no cap, that is literally how it's printed in the source β€” the angle brackets ghosted us 🫠 we're copying it verbatim because that's the rules.


πŸ’– DESCRIPTION πŸ’–

Description: set instance or server configuration keys. that's it. that's the vibe check. πŸ‘‘

and for backward compatibility (yes, the old ways still slay), a single configuration key may still be set with:

lxc config set [:][]

so if you're out here setting just one key the ancient way, the command still has your back. 🫢


✨ OPTIONS ✨

  • -p, --property[=false] β€” set the key as an instance property.
  • --target="" β€” cluster member name. (and yes, the source has two rogue backticks dangling off the end of that one β€” `` β€” we are not touching them, they're part of the family now πŸ™ˆ)

πŸ”₯ OPTIONS INHERITED FROM PARENT COMMANDS πŸ”₯

these aren't even ours, we just inherited them like hand-me-downs from the parent command and honestly they eat:

  • --debug[=false] β€” show all the debug messages. every last one. πŸ›
  • --force-local[=false] β€” force using the local unix socket.
  • -h, --help[=false] β€” print help. your bestie when you're lost.
  • --project="" β€” override the source project. (also rocking two stray backticks in the original: `` β€” leaving them exactly as found πŸ’…)
  • -q, --quiet[=false] β€” don't show progress information. shhh. 🀫
  • --sub-commands[=false] β€” use with help or --help to view sub-commands.
  • -v, --verbose[=false] β€” show all information messages. chatty era. πŸ’¬
  • --version[=false] β€” print version number. know your roots. ⭐

πŸ¦‹ EXAMPLE πŸ¦‹

look at these. they ate. 😭

lxc config set [<remote>:]<instance> limits.cpu=2
    Will set a CPU limit of "2" for the instance.

lxc config set core.https_address=[::]:8443
    Will have LXD listen on IPv4 and IPv6 port 8443.

lxc config set core.trust_password=blah
    Will set the server's trust password to blah.

so like: CPU cap of "2" on an instance? done. LXD listening on IPv4 and IPv6 port 8443? slay. server trust password set to blah? okay security queen, whatever you say. πŸ‘‘


🌈 SEE ALSO 🌈

  • lxc-config(1) β€” go read the parent, it's giving main character energy 🧚

πŸ’œ HISTORY πŸ’œ

22-Aug-2026 β€” auto generated by spf13/cobra. not a human, not a vibe, just a generator doing its thing. πŸ’€


and that's the whole page bestie β€” auto generated by spf13/cobra, dated Aug 2026, and it lives inside LXD - Command line client(1). go set some keys, you absolute icon. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from