How can I change my gnome shell theme (user themes extension) using the terminal?

I want to change my gnome shell theme from the user-theme extension using the terminal. I did dconf watch / to check what changing the theme does and the path it gave me was

/org/gnome/shell/extensions/user-theme/name

"Theme-name"

So I try to do gsettings set org.gnome.shell.extensions.user-theme name "Theme name" but it didn't work (Output: No such schema “org.gnome.shell.extensions.user-theme")


The correct command to change your Shell theme using the terminal is:

dconf write /org/gnome/shell/extensions/user-theme/name "'theme_name'"

where theme_name is obviously the name of the theme you want to use.

Note the use of both " and ' for quoting the theme's name. This is because a key's values should be in GVariant format, as you can read in man dconf:

VALUE arguments must be in GVariant format, so e.g. a string must include explicit quotes:
"'foo'". This format is also used when printing out values.