demyx config
<app> #
Description | Usage |
---|---|
Configure a specific app. | demyx config <app> <args> |
all #
Description | Usage |
---|---|
Configures all apps in a loop. | demyx config all <args> |
–auth #
Description | Usage |
---|---|
Enable/disable basic authentication. | demyx config <app> --auth demyx config <app> --auth=<true|false> |
–auth-wp #
Description | Usage |
---|---|
Enable/disable basic authentication for WordPress login. | demyx config <app> --auth-wp demyx config <app> --auth-wp=<true|false> |
–backup #
Description | Usage |
---|---|
Enable/disable app backup. | demyx config <app> --backup demyx config <app> --backup=<true|false> |
–bedrock #
Description | Usage |
---|---|
Configure a Bedrock app’s mode to production/development. | demyx config <app> --bedrock demyx config <app> --bedrock=<production|development> |
–cache #
Description | Usage |
---|---|
Installs and configures cache plugins depending on app’s stack. Supports WP Rocket with rocket-nginx (only for the nginx-php stack). | demyx config <app> --cache demyx config <app> --cache=<true|false|default|rocket> |
–clean #
Description | Usage |
---|---|
Export and imports database with new credentials, force downloads core WordPress files, and refresh salts. | demyx config <app> --clean |
–db-cpu #
Description | Usage |
---|---|
Configure DB container’s CPU limit, --db-cpu=0 to remove limit. | demyx config <app> --db-cpu=.50 |
–db-mem #
Description | Usage |
---|---|
Configure DB container’s memory limit, --db-mem=0 to remove limit. | demyx config <app> --db-mem=256m |
–dev #
Description | Usage |
---|---|
Code-server service will be created and perform various commands to WordPress. Browsersync: http(s)://<app>/demyx/bs/ Code-server: http(s)://<app>/demyx/cs/ | demyx config <app> --dev demyx config <app> --dev=<true|false> |
–healthcheck #
Description | Usage |
---|---|
Enable/disable healthcheck. | demyx config <app> --healthcheck demyx config <app> -- |
–no-compose #
Description | Usage |
---|---|
Prevents executing docker-compose up -d after running a config. | demyx config <app> --no-compose |
–opcache #
Description | Usage |
---|---|
Enable/disable PHP opcache. | demyx config <app> --opcache demyx config <app> --opcache=<true|false> |
–php #
Description | Usage |
---|---|
Switch PHP/LSPHP version. | demyx config <app> --php=<8.1|8.2> |
–php-max-children #
Description | Usage |
---|---|
Update php-fpm max child processes. Only for nginx-php stack. | demyx config <app> --php-max-children=5 |
–php-max-requests #
Description | Usage |
---|---|
Update php-fpm max requests per child process. Only for nginx-php stack. | demyx config <app> --php-max-requests=500 |
–php-max-spare-servers #
Description | Usage |
---|---|
Update php-fpm max idle server processes. Only for nginx-php stack. | demyx config <app> --php-max-spare-servers=4 |
–php-min-spare-servers #
Description | Usage |
---|---|
Update php-fpm minimum idle server processes. Only for nginx-php stack. | demyx config <app> --php-min-spare-servers=1 |
–php-pm #
Description | Usage |
---|---|
Update php-fpm process manager. Only for nginx-php stack. | demyx config <app> --php-pm=<static|ondemand|dynamic> |
–php-pm-calc #
Description | Usage |
---|---|
Automatically adjust php-fpm values based on container’s memory. Reference: https://chrismoore.ca/2018/10/finding-the-correct-pm-max-children-settings-for-php-fpm/ Only for nginx-php stack. | demyx config <app> --php-pm-calc |
–php-process-idle-timeout #
Description | Usage |
---|---|
Update php-fpm duration when killing an idle process. Only for nginx-php stack. | demyx config <app> --php-process-idle-timeout=3s |
–php-start-servers #
Description | Usage |
---|---|
Update php-fpm initial child processes on startup. Only for nginx-php stack. | demyx config <app> --php-start-servers=1 |
–pma #
Description | Usage |
---|---|
Enable/disable phpMyAdmin service. It will be accessible from the URL: http(s)://<app>/demyx/pma/. | demyx config <app> --pma demyx config <app> --pma=<true|false> |
–rate-limit #
Description | Usage |
---|---|
Enable/disable Nginx’s rate limiting for /wp-login.php and /wp-cron.php. | demyx config <app> --rate-limit=<true|false> |
–redis #
Description | Usage |
---|---|
Enable/disable Redis service and configures the proper plugin depending on app’s stack. | demyx config <app> --redis=<true|false> |
–sftp #
Description | Usage |
---|---|
Enable/disable SFTP service. Automatically scans for open port starting with 2222. | demyx config <app> --sftp=<true|false> |
–ssl #
Description | Usage |
---|---|
Enable/disable http or https. Executes wp-cli to search and replace the database. | demyx config <app> --ssl demyx config <app> --ssl=<true|false> |
–ssl-wildcard #
Description | Usage |
---|---|
Enable/disable wildcard for SSL. Executes wp-cli to search and replace the database. | demyx config <app> --ssl-wildcard demyx config <app> --ssl-wildcard=<true|false> |
–stack #
Description | Usage |
---|---|
Switch stack between Nginx/PHP to OpenLiteSpeed and vice versa but cannot switch from Nginx/PHP to Bedrock. The same applies to OpenLiteSpeed to OpenLiteSpeed Bedrock. | demyx config <app> --stack=<bedrock|nginx-php|ols|ols-bedrock> |
–whitelist #
Description | Usage |
---|---|
Enables/disables IP whitelisting site-wide or just WordPress login. DEMYX_IP must be set by running demyx host edit . | demyx config <app> --whitelist demyx config <app> --whitelist=<all|login> |
–wp-cpu #
Description | Usage |
---|---|
Configure WP container’s CPU limit, --wp-cpu=0 to remove limit. | demyx config <app> --wp-cpu=.50 |
–wp-mem #
Description | Usage |
---|---|
Configure WP container’s memory limit, --wp-mem=0 to remove limit. | demyx config <app> --wp-mem=256m |
–wp-update #
Description | Usage |
---|---|
Enable/disable WordPress auto update by wp-cli. Auto updates WordPress core files, plugins, and themes. | demyx config <app> --wp-mem=<true|false> |
–www #
Description | Usage |
---|---|
Converts/reverts top level domain to use/remove www. | demyx config <app> --www demyx config <app> --www=<true|false> |
–xmlrpc #
Description | Usage |
---|---|
Enable/disable /xmlrpc.php file by returning a 404. Disabled by default. | demyx config <app> --xmlrpc demyx config <app> --xmlrpc=<true|false> |