lxc.config.set(1)

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

Section 1 lxd-client bookworm source

Description

LXD - Command line client

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

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

HISTORY

11-Nov-2025 Auto generated by spf13/cobra

See Also