Title: wp theme mod
Published: February 5, 2018
Last modified: April 13, 2026

---

# 󠀁[wp theme mod <command>](https://developer.wordpress.org/cli/commands/theme/mod/)󠁿

Sets, gets, and removes theme mods.

## In this article

 * [Examples](https://developer.wordpress.org/cli/commands/theme/mod/?output_format=md#examples)
 * [Subcommands](https://developer.wordpress.org/cli/commands/theme/mod/?output_format=md#subcommands)

[ Back to top](https://developer.wordpress.org/cli/commands/theme/mod/?output_format=md#wp--skip-link--target)

 [ ⌊GitHub⌉ ](https://github.com/wp-cli/extension-command)

 [ View Open Issues (0) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Atheme-mod+sort%3Aupdated-desc+org%3Awp-cli+is%3Aopen)
[ View Closed Issues (9) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Atheme-mod+sort%3Aupdated-desc+org%3Awp-cli+is%3Aclosed)
[Create New Issue](https://github.com/wp-cli/extension-command/issues/new)

### 󠀁[Examples](https://developer.wordpress.org/cli/commands/theme/mod/?output_format=md#examples)󠁿

    ```
    # Set the 'background_color' theme mod to '000000'.
    $ wp theme mod set background_color 000000
    Success: Theme mod background_color set to 000000.

    # Get single theme mod in JSON format.
    $ wp theme mod get background_color --format=json
    [{"key":"background_color","value":"dd3333"}]

    # Remove all theme mods.
    $ wp theme mod remove --all
    Success: Theme mods removed.
    ```

### 󠀁[Subcommands](https://developer.wordpress.org/cli/commands/theme/mod/?output_format=md#subcommands)󠁿

| Name | Description | 
| [wp theme mod get](https://developer.wordpress.org/cli/commands/theme/mod/get/) |

Gets one or more theme mods.

  | 
| [wp theme mod list](https://developer.wordpress.org/cli/commands/theme/mod/list/) |

Gets a list of theme mods.

  | 
| [wp theme mod remove](https://developer.wordpress.org/cli/commands/theme/mod/remove/) |

Removes one or more theme mods.

  | 
| [wp theme mod set](https://developer.wordpress.org/cli/commands/theme/mod/set/) |

Sets the value of a theme mod.

  |

 _Command documentation is regenerated at every release. To add or update an example,
please submit a pull request against the corresponding part of the codebase._