<a id="lxc-config-set-md"></a>

# `lxc config set`

Set instance or server configuration keys

## Synopsis

Description:
Set instance or server configuration keys

For backward compatibility, a single configuration key may still be set with:
lxc config set [<remote>:][<instance>] <key> <value>

```none
lxc config set [<remote>:][<instance>] <key>=<value>... [flags]
```

## Examples

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

## Options

```none
  -p, --property   Set the key as an instance property
      --target     Cluster member name
```

## Options inherited from parent commands

```none
      --debug          Show all debug messages
      --force-local    Force using the local unix socket
  -h, --help           Print help
      --project        Override the source project
  -q, --quiet          Do not show progress information
      --sub-commands   Use with help or --help to view sub-commands
  -v, --verbose        Show all information messages
      --version        Print version number
```

## SEE ALSO

* [lxc config](https://canonical.com/lxd/docs/latest/reference/manpages/lxc/config/index.html.md#lxc-config-md)	 - Manage instance and server configuration options
