Title: CLI command shows error: invalid email address
Last modified: August 24, 2016

---

# CLI command shows error: invalid email address

 *  Resolved [phantom21](https://wordpress.org/support/users/phantom21/)
 * (@phantom21)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cli-command-shows-error-invalid-email-address/)
 * I’ve been trying to install wordpress through the CLI and managed to everything
   up to the following
 * wp core install
 * with the parameters –url –title –admin_user –admin_email
 * The problem is it keeps giving me this
 * Error: The ‘{EMAIL ADDRESS}’ email address is invalid
 * I’ve tried several different ways to enter the email address, which is a legitimate
   email address, but can’t get out of this. What is wrong?
 * Using the most recent wp-cli version and everything up to this point seems to
   work.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Tim Nash](https://wordpress.org/support/users/tnash/)
 * (@tnash)
 * Spam hunter
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cli-command-shows-error-invalid-email-address/#post-5978997)
 * so it should be something like:
 *     ```
       wp core install --url=http://example.com --title="Just another test site" ----admin_name=myadmin admin_email=hello@example.com --admin_password=mypassword
       ```
   
 * There shouldn’t be a need to use back ticks or similar, if this is not working
   did you copy and paste the email, if you did consider typing it just to make 
   sure you haven’t accidentally copied some weird character set.
 * If that doesn’t work what OS are you using
 *  Thread Starter [phantom21](https://wordpress.org/support/users/phantom21/)
 * (@phantom21)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cli-command-shows-error-invalid-email-address/#post-5979016)
 * Thank you. I’ve been putting my responses to those questions in curly brakets,
   didn’t realize I had to replace those with quotes. I now have it installed, but
   I’m getting the following error when I try to browwse to the page
 * Your PHP installation appears to be missing the MySQL extension which is required
   by WordPress.
 * I have installed the php5-mysql package, and I have configured it for a MySQL
   remote access. So I don’t understand the problem. Can you help me here?
 * Thanks
 *  Thread Starter [phantom21](https://wordpress.org/support/users/phantom21/)
 * (@phantom21)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cli-command-shows-error-invalid-email-address/#post-5979019)
 * OK, solved. Needed to restart Apache2. Man I feel dumb.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CLI command shows error: invalid email address’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [phantom21](https://wordpress.org/support/users/phantom21/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/cli-command-shows-error-invalid-email-address/#post-5979019)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
