Skip to main content
Version: 4.x

WP-CLI Commands

Automatic.css 4.x ships with a full WP-CLI command suite, exposed under the top-level wp acss namespace. You can script everything from settings changes and CSS regeneration to health checks and log inspection — useful for deployments, CI pipelines, staging/production workflows, and debugging remotely over SSH.

Prerequisites

  • WP-CLI installed on the server (most managed WordPress hosts include it by default)
  • Automatic.css 4.x active on the site
  • Shell access with permission to run wp commands as a user that has access to the WordPress installation

CLI commands are only registered when WP-CLI is available, so they won't affect normal web requests.

Command Groups

CommandWhat it does
wp acss settingsGet, set, list, export, import, and reset framework settings
wp acss cssRegenerate the compiled stylesheets
wp acss statusShow plugin version, active builders, CSS file state, flags
wp acss logsTail, clear, and locate the activity and debug logs
wp acss doctorRun diagnostic health checks on the installation
wp acss flagsInspect and override feature flags

Getting Help

WP-CLI's built-in help works on every command and subcommand:

wp help acss
wp help acss settings
wp help acss settings set

The help output lists every option, expected format, and includes usage examples pulled straight from the command definitions.

Common Scripting Patterns

Check status as JSON and pipe into jq:

wp acss status --format=json | jq '.css'

Run a non-interactive settings import in CI:

wp acss settings import ./config/acss-settings.json --yes --skip-css
wp acss css regenerate

Add a health check to a deployment script:

wp acss doctor --format=json > /tmp/acss-health.json

The --format=json flag is available on most read-only commands, making it straightforward to integrate with monitoring or CI tooling.