GridPane CLI Cheatsheet

GridPane CLI Cheatsheet

This page has had its content updated on August 20, 2025 EDT by Jordan

Content Error or Suggest an Edit

Notice a grammatical error or technical inaccuracy? Let us know; we will give you credit!

GridPane Knowledge Base CLI Reference

At the time of this original writing May 13th 2021 there was no documented CLI from GridPane. So I created this page, and then they released it at some point. So You can find the following cli refences on the GridPane Knowledge Base.

GridPane GP-CLI Quick Reference

cropped GridPane Self Managed WordPress Hosting
GP-CLI Quick Reference | GridPane
This article details all of the available GP CLI commands that you can run on your GridPane servers. It’s rapid-fire, and so doesn’t go into any in-depth…
Gridpane Favicongridpane.com

GridPane CLI Service Management: Nginx

cropped GridPane Self Managed WordPress Hosting
Service Management: Nginx | GridPane
Nginx Configuration Check Run either of these commands after making configuration changes to find issues before reloading or restarting the Nginx. Stop/
Gridpane Favicongridpane.com

GridPane CLI Service Management: PHP

cropped GridPane Self Managed WordPress Hosting
Service Management: PHP | GridPane
Stop/Start PHP These commands stop and start PHP. Run them separately. You have to designate the version in the command. For example: Restart PHP The restart…
Gridpane Favicongridpane.com

GridPane Configure Monit Service Management and Notifications with GP-CLI

cropped GridPane Self Managed WordPress Hosting
Configure Monit Service Management and Notifications with GP-CLI | GridPane
GridPane uses Monit to manage services and restart them if they start misbehaving. Sometimes you might wish to adjust these settings yourself – for example…
Gridpane Favicongridpane.com

How to Use GP WP-CLI and Regular WP-CLI on GridPane Servers

cropped GridPane Self Managed WordPress Hosting
How to Use GP WP-CLI and Regular WP-CLI on GridPane Servers | GridPane
This article digs into how to use WP-CLI commands on your GridPane servers. By default, WP-CLI is installed on all GridPane servers out of the box and you…
Gridpane Favicongridpane.com

GridPane CLI Commands

I’ve scrapped all of these commands and put them into a table for easy searching and filtering.

CommandActionGroup
gp ngx -tTest Nginx configuration syntaxnginx
gp ngx -statusShow Nginx service statusnginx
gp ngx -stopStop Nginx servicenginx
gp ngx -startStart Nginx servicenginx
gp ngx -reloadReload Nginx configuration without full restartnginx
gp ngx -restartRestart Nginx (stop + start)nginx
gp stack nginx geoip -on {account.id}:{license.key}Enable GeoIP2 module with licensenginx
gp stack nginx geoip -offDisable GeoIP2 modulenginx
gp stack nginx worker -connections {integer}Configure worker connectionsnginx
gp stack nginx limits -client-body-timeout {integer}Set client body timeoutnginx
gp php {version} -stopStop PHP service (specific version)php
gp php {version} -startStart PHP service (specific version)php
gp php {version} -reloadReload PHP configurationphp
gp php {version} -restartRestart PHP service (specific version)php
gp stack php {version} -max-exec-time {integer}Set max execution timephp
gp mysql -stopStop MySQL servicemysql
gp mysql -startStart MySQL servicemysql
gp mysql -restartRestart MySQL servicemysql
gp stack mysql -max-connections {value}Set maximum database connectionsmysql
gp redis -stopStop Redis serviceredis
gp redis -startStart Redis serviceredis
gp redis -restartRestart Redis serviceredis
gp stack redis -max-memory {integer}Set maximum Redis memoryredis
gp ngx -tTest Nginx configuration syntaxnginx
gp ngx -statusShow Nginx statusnginx
gp ngx -stopStop Nginx servicenginx
gp ngx -startStart Nginx servicenginx
gp ngx -reloadReload Nginx configurationnginx
gp ngx -restartRestart Nginx servicenginx
gp stack nginx geoip -on {account.id}:{license.key}Enable GeoIP2 with licensenginx
gp stack nginx geoip -offDisable GeoIP2nginx
gp stack nginx geoip -update {iso.code}:{yes.no}Update GeoIP2 country settingsnginx
gp stack nginx geoip -remove {iso.code}Remove GeoIP2 country entriesnginx
gp stack nginx worker -connections {integer}Set worker connectionsnginx
gp stack nginx worker -rlimit-nofile {integer}Set worker file descriptor limitnginx
gp stack nginx server-name -in-redirect {value}Configure server name redirectnginx
gp stack nginx server-name -hash-bucket-size {int}Configure server name hash bucket sizenginx
gp stack nginx limits -client-body-buffer-size {int}Set client body buffer sizenginx
gp stack nginx limits -client-body-timeout {int}Set client body timeoutnginx
gp stack nginx limits -keepalive-timeout {int}Set keepalive timeoutnginx
gp stack nginx open-file-cache -max {elements} -inactive {timeout}Configure open file cachenginx
gp stack nginx fastcgi -buffering {value}Enable/disable FastCGI bufferingnginx
gp stack nginx fastcgi -buffers {quantity} {size}Set FastCGI buffer sizesnginx
gp stack nginx proxy -buffering on/offToggle proxy bufferingnginx
gp stack nginx proxy -cache-background-update on/offToggle proxy cache background updatenginx
gp site {site.url} -disable-xmlrpcDisable XML-RPCsite
gp site {site.url} -enable-xmlrpcEnable XML-RPCsite
gp site {site.url} -block-wp-content.phpBlock access to wp-content.phpsite
gp php {version} -stopStop PHP service (specific version)php
gp php {version} -startStart PHP service (specific version)php
gp php {version} -reloadReload PHP servicephp
gp php {version} -restartRestart PHP servicephp
gp stack php {version} -max-exec-time {int}Set max PHP execution timephp
gp stack php {version} -mem-limit {int}Set PHP memory limitphp
gp stack php {version} -upload-max-filesize {int}Set upload max filesizephp
gp stack php {version} -opcache-enableEnable PHP Opcachephp
gp stack php {version} -opcache-disableDisable PHP Opcachephp
gp stack php -site-max-exec-time {int} {site.url}Set site PHP execution timephp
gp stack php -site-mem-limit {int} {site.url}Set site PHP memory limitphp
gp stack php -site-pm {value} {site.url}Configure PHP process managerphp
gp site {site.url} -switch-php {version}Switch site PHP versionsite
gp mysql -stopStop MySQLmysql
gp mysql -startStart MySQLmysql
gp mysql -reloadReload MySQLmysql
gp mysql -restartRestart MySQLmysql
gp stack mysql -max-connections {int}Set max MySQL connectionsmysql
gp stack mysql -innodb-buffer-pool-size {int}Set InnoDB buffer pool sizemysql
gp redis -stopStop Redisredis
gp redis -startStart Redisredis
gp redis -reloadReload Redisredis
gp redis -restartRestart Redisredis
gp stack redis -max-memory {int}Set Redis max memoryredis
gp stack redis -enable-persistenceEnable Redis persistenceredis
gp stack redis -disable-persistenceDisable Redis persistenceredis
gp site {site.url} -route-domain-wwwForce www domainsite
gp site {site.url} -route-domain-rootForce root domainsite
gp site {site.url} -route-domain-offDisable domain routingsite
gp site {site.url} -redis-cache -ttl {seconds}Enable Redis page cachesite
gp site {site.url} -fastcgi-cache -ttl {seconds}Enable FastCGI cachesite
gp site {site.url} -cache-offDisable cachingsite
gp site {site.url} -redis-object-caching on/offToggle Redis object cachesite
gp fix cached {site.url}Clear all caches for sitesite
gp fix cachedClear all caches on servernginx
gp site {site.url} -6g-onEnable 6G WAFsite
gp site {site.url} -6g-offDisable 6G WAFsite
gp site {site.url} -7g-onEnable 7G WAFsite
gp site {site.url} -7g-offDisable 7G WAFsite
gp site {site.url} -modsec-onEnable ModSec WAFsite
gp site {site.url} -modsec-offDisable ModSec WAFsite
gp site {site.url} -modsec -paranoia-level {1-4}Set ModSec paranoia levelsite
gp site {site.url} -enable-wp-fail2banEnable Fail2Ban for WordPresssite
gp site {site.url} -disable-wp-fail2banDisable Fail2Ban for WordPresssite
gpbup {site.url} -purge {storage} {date.from} {date.to}Purge backups from storagebackup
gpbup -update-gridpane-backups-systemUpdate backups systembackup
gpbup {site.url} -remote-bup-on/offEnable/disable remote backupsbackup
gpbup all-sites -set-backup-schedule …Schedule backups for all sitesbackup
gpbup all-sites -set-prune-schedule …Set prune schedule for all sitesbackup
gp site {site.url} -wp-debug-on/offToggle WP debug modesite
gp site {site.url} -gpcron-on {interval}Enable GP-Cron with intervalsite
gp site {site.url} -gpcron-offDisable GP-Cronsite
gp site {site.url} -brotli-on/offToggle Brotli compressionsite
gp site {site.url} -http-authEnable HTTP authenticationsite
gp site {site.url} -http-auth-offDisable HTTP authenticationsite
gp site {site.url} -csp-header-on/offToggle CSP headerssite
gp site {site.url} -suspendSuspend a sitesite
gp site {site.url} -unsuspendUnsuspend a sitesite
gp site {site.url} -suspend -use-server-customSuspend with server custom templatesite
gp wp {site.url} {wp.cli.command}Run WP-CLI command on sitesite
gp site all-sites sync-php-settingsSync PHP settings across all sitesphp
gp site all-sites sync-6g-settingsSync 6G WAF settingssite
gp site all-sites sync-7g-settingsSync 7G WAF settingssite
gp site all-sites sync-modsec-settingsSync ModSec WAF settingssite
gp site all-sites sync-wpf2b-settingsSync Fail2Ban settingssite
gp site all-sites sync-nginx-cache-settingsSync Nginx cache settingsnginx
gp site all-sites sync-object-cache-settingsSync Redis object cache settingsredis
gpmonit {service} -cpu-warning-percent {int} -cpu-warning-cycles {int} -cpu-restart-percent {int} -cpu-restart-cycles {int} -mem-high-mb {int} -mem-high-cycles {int} -mem-restart-mb {int} -mem-restart-cycles {int}Configure thresholds for a servicemonit
gpmonit {service} –debugShow debug informationmonit
gpmonit {service} –no-reloadDo not reload Monitmonit
gpmonit nginx -cpu-warning-percent 50 -cpu-warning-cycles 5 -cpu-restart-percent 70 -cpu-restart-cycles 5 -mem-high-mb 800 -mem-high-cycles 10 -mem-restart-mb 900 -mem-restart-cycles 10Set Nginx CPU/memory thresholdsmonit
gpmonit mysql -cpu-warning-percent 120 -cpu-warning-cycles 10 -cpu-restart-percent 180 -cpu-restart-cycles 5 -mem-high-mb 2692 -mem-high-cycles 10 -mem-restart-mb 3365 -mem-restart-cycles 10Set MySQL CPU/memory thresholdsmonit
gpmonit mysql -mem-high-mb 800 -mem-restart-mb 900Increase MySQL memory limitsmonit
gpmonit mysql -cpu-warning-percent {int}Set MySQL CPU warning percentmonit
gpmonit redis -cpu-warning-percent 120 -cpu-warning-cycles 10 -cpu-restart-percent 160 -cpu-restart-cycles 5 -mem-high-mb 907 -mem-high-cycles 10 -mem-restart-mb 1207 -mem-restart-cycles 10Set Redis CPU/memory thresholdsmonit
gpmonit redis -mem-high-mb 800 -mem-restart-mb 900Increase Redis memory limitsmonit
gpmonit redis -mem-high-mb {int}Adjust Redis memory high limitmonit
gpmonit nginx -cpu-warning-percent 100 -cpu-warning-cycles 5 -cpu-restart-percent 120 -cpu-restart-cycles 5 -mem-high-mb 1615 -mem-high-cycles 10 -mem-restart-mb 2826 -mem-restart-cycles 10Set Nginx CPU/memory thresholds (alt)monit
gpmonit openlitespeed -cpu-warning-percent 100 -cpu-warning-cycles 5 -cpu-restart-percent 120 -cpu-restart-cycles 5 -mem-high-mb 1615 -mem-high-cycles 10 -mem-restart-mb 2826 -mem-restart-cycles 10Set OLS CPU/memory thresholdsmonit
gpmonit php71 / php72 / php73 / php74Select PHP version for Monitmonit
gpmonit php7{x} -cpu-warning-percent 120 -cpu-warning-cycles 10 -cpu-restart-percent 180 -cpu-restart-cycles 5 -mem-high-mb 2692 -mem-high-cycles 10 -mem-restart-mb 3365 -mem-restart-cycles 10Set PHP CPU/memory thresholdsmonit
gp server -update-monitUpdate Monit settingsmonit
gpols site {site.url}Generate site vhconf and restart OpenLiteSpeedsite
gpols httpdGenerate server conf and restart OpenLiteSpeed servicenginx
gpols log {site.url}View last 500 lines of site error logsite
gpols log {site.url} -fFollow site error log in real-timesite
gpols log {site.url} -aView site access logsite
gpols log httpdView server error lognginx
gpols log httpd -fFollow server error log in real-timenginx
gpols log httpd -aView server access lognginx

GridPane Undocummented CLI Commands

These commands are not documented by GridPane.

CommandActionGroup
gpupdateUpdated GridPane scriptscore
cat /usr/local/bin/lib/ols/versionsShow available openlitespeed versions that GridPane allowsols

Changelog

  • 08-20-2025 – Added GridPane CLI references from their knowledge base, added some unknown commands.
0 Shares:

You May Also Like

WebWhim Peer Review

Background There is a blog post that has been floating around various WordPress groups from a site called…