Title: $_SERVER is not available from CLI
Last modified: August 20, 2016

---

# $_SERVER is not available from CLI

 *  [Luke Gedeon](https://wordpress.org/support/users/lgedeon/)
 * (@lgedeon)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/_server-is-not-available-from-cli/)
 * I am working on a WP_CLI command and noticed that JetPack is relying on $_SERVER
   throughout the code. Since this info is not available from CLI, I am getting 
   a bunch of Undefined index notices.
 * What is the preferred method for submitting a patch/pull-request for Jetpack?
   Or do you guys want to just take this one. Could almost search for $_SERVER and
   replace with an isset, but you may want to be a little smarter in a few places.
 * Anyway, let me know if I can help.
 * [http://wordpress.org/extend/plugins/jetpack/](http://wordpress.org/extend/plugins/jetpack/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [13 years, 4 months ago](https://wordpress.org/support/topic/_server-is-not-available-from-cli/#post-3314716)
 * You can submit patches through the Plugin trac, here:
    [http://plugins.trac.wordpress.org/newticket?component=jetpack](http://plugins.trac.wordpress.org/newticket?component=jetpack)
 * We’ll be happy to take a look and see if we can add your patch to the next Jetpack
   release!

Viewing 1 replies (of 1 total)

The topic ‘$_SERVER is not available from CLI’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/_server-is-not-available-from-cli/#post-3314716)
 * Status: not resolved