---
name: "lxc.config.set"
section: "1"
platform: "linux"
package: "lxd-client"
version: "5.0.2+git20231211.1364ae4-9+deb13u7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lxc.config.set"
---

# lxc.config.set(1)

Set instance or server configuration keys

## NAME

lxc-config-set - Set instance or server configuration keys

## SYNOPSIS

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

## DESCRIPTION

Description:\
   Set instance or server configuration keys

For backward compatibility, a single configuration key may still be set with:\
       lxc config set \[:\]\[\]

## OPTIONS

**-p**, **--property**\[=false\]\
 	Set the key as an instance property

**--target**=""\
 	Cluster member name\`\`

## OPTIONS INHERITED FROM PARENT COMMANDS

**--debug**\[=false\]\
 	Show all debug messages

**--force-local**\[=false\]\
 	Force using the local unix socket

**-h**, **--help**\[=false\]\
 	Print help

**--project**=""\
 	Override the source project\`\`

**-q**, **--quiet**\[=false\]\
 	Don't show progress information

**--sub-commands**\[=false\]\
 	Use with help or --help to view sub-commands

**-v**, **--verbose**\[=false\]\
 	Show all information messages

**--version**\[=false\]\
 	Print version number

## EXAMPLE

```
  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.
```

## SEE ALSO

**[lxc-config(1)](/lxc-config/1.md)**

## HISTORY

27-Jun-2026 Auto generated by spf13/cobra
