Title: About WP-CLI Config Value Type
Last modified: June 24, 2021

---

# About WP-CLI Config Value Type

 *  [西門 正 Code Guy](https://wordpress.org/support/users/simongcc/)
 * (@simongcc)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/about-wp-cli-config-value-type/)
 * Hello! I have just tried WP-CLI to set a core config like
    `wp config set DISALLOW_FILE_MODS
   false`
 * However it gives the follow result
    `define( 'DISALLOW_FILE_MODS', 'false' );`
 * Because it is a string and not `false`, so it actually gives the same result 
   as `true`.
    Is there a way to specify the value data type as boolean in command
   line?

Viewing 1 replies (of 1 total)

 *  [no](https://wordpress.org/support/users/ivancanhelp/)
 * (@ivancanhelp)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/about-wp-cli-config-value-type/#post-14592945)
 * Hello!
 * Give this a try?
 * `wp config set DISALLOW_FILE_MODS false --raw --type=constant`
 * `--raw` will help you prevent it from being a quoted string.
 * Some more info on what `--raw` and `--type=constant` do can be found here: [https://developer.wordpress.org/cli/commands/config/set/](https://developer.wordpress.org/cli/commands/config/set/)
 * Hope that helps!

Viewing 1 replies (of 1 total)

The topic ‘About WP-CLI Config Value Type’ is closed to new replies.

## Tags

 * [data-type](https://wordpress.org/support/topic-tag/data-type/)
 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [no](https://wordpress.org/support/users/ivancanhelp/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/about-wp-cli-config-value-type/#post-14592945)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
