Plugkit is a CLI tool designed for rapid WordPress plugin development. It streamlines the process using a modern tech stack, helping you build plugins faster and more efficiently.
plugkit.mp4
/bin/bash -c "$(curl -fsSL dub.sh/plugkit/mac)"
/bin/bash -c "$(curl -fsSL dub.sh/plugkit/linux)"
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://dub.sh/plugkit/windows'))
Plugkit provides several commands to help you develop WordPress plugins:
plugkit create my-plugin
This command will create a new WordPress plugin with the given name. It will prompt you for additional configuration details like plugin description, version, author information, etc.
plugkit serve my-plugin
# or
plugkit serve
This command runs the plugin in development mode, starting the development server.
plugkit version
Shows the current version of Plugkit.
plugkit build
Builds the plugin for production.
After creating a new plugin, you'll need to:
- Navigate to the plugin directory:
cd my-plugin
- Install dependencies:
npm install
- Install PHP dependencies:
composer install
- Start development:
npm run dev