Skip to content

Instantly share code, notes, and snippets.

@w0rldart
Created July 18, 2018 20:13
Show Gist options
  • Save w0rldart/6c5a2e8240b17349d5b1e5a1d676461e to your computer and use it in GitHub Desktop.
Save w0rldart/6c5a2e8240b17349d5b1e5a1d676461e to your computer and use it in GitHub Desktop.
wp cli with increased memory_limit

If you get the following error when running wp command

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12288 bytes) in ....

You can overcome that the following way

php -d memory_limit=256M /usr/bin/wp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment