Title: WP-CLI Network Site Meta Format Question
Last modified: October 18, 2019

---

# WP-CLI Network Site Meta Format Question

 *  Resolved [9ete](https://wordpress.org/support/users/hawkeye126/)
 * (@hawkeye126)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-network-site-meta-format-question/)
 * I accidentally **deleted all my super users** on my wp **multisite**.
    I did 
   this by trying to add a new super user via the command line with the following**
   wp-cli** command:
 * `wp network meta update 1 site_admins exampleuser`
 * This overwrote the entire entry and set it only to “_exampleuser_“. I believe
   I did not pass the value, _exampleuser_, correctly. Previously when I ran
 * `wp network meta get 1 site_admins`
 * The return value was in this format:
 *     ```
       array (
         0 => 'username1',
         0 => 'username2',
       )
       ```
   
 * I feel I can fix this problem if I know how to format the entry correctly
 * `wp network meta update 1 site_admins exampleuser`
 * What do I need to use for the **–format** parameter?
    How to I enter the site
   admin into the site_admin network meta table?

Viewing 1 replies (of 1 total)

 *  Thread Starter [9ete](https://wordpress.org/support/users/hawkeye126/)
 * (@hawkeye126)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-network-site-meta-format-question/#post-5105054)
 * To fix add the following to your **wp-config.php** file:
 * `$super_admins =array( exampleuser' );`

Viewing 1 replies (of 1 total)

The topic ‘WP-CLI Network Site Meta Format Question’ is closed to new replies.

## Tags

 * [format](https://wordpress.org/support/topic-tag/format/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [superadmin](https://wordpress.org/support/topic-tag/superadmin/)
 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [9ete](https://wordpress.org/support/users/hawkeye126/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-network-site-meta-format-question/#post-5105054)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
