Skip to content

In Depth

Generating your theme with WP-CLI

For humans who prefer the command line, and for LLMs that prefer the command line even more

After you install WP-CLI, the following command will install _tw’s WP-CLI package:

wp package install underscoretw/scaffoldCode language: plaintext (plaintext)

Most people will want to use the interactive wizard:

wp scaffold _twCode language: plaintext (plaintext)

If you want to generate themes via command-line arguments, you’ll find all of the details necessary to do so via the --help argument:

wp scaffold _tw --helpCode language: plaintext (plaintext)

You’ll find more details in the corresponding GitHub repository.