Skip to content

Instantly share code, notes, and snippets.

@getsource
Created March 13, 2012 00:39
Show Gist options
  • Save getsource/2025765 to your computer and use it in GitHub Desktop.
Save getsource/2025765 to your computer and use it in GitHub Desktop.
Make wp-cli work globally with direct file access
/**
* /etc/wp-cli/directFileAccess.php
*/
define( 'FS_METHOD', 'direct' );
# /etc/wp-cli/wp-cli.ini
# ~/.wp-cli/
auto_prepend_file = /etc/wp-cli/directFileAccess.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment