@dresspress/wp-studio-utils
v1.1.16
Published
A lightweight CLI wrapper for WordPress Studio that simplifies plugin development by linking project directories and automating site access.
Downloads
86
Maintainers
Readme
@dresspress/wp-studio-utils
A lightweight CLI wrapper for WordPress Studio that simplifies plugin development by linking project directories and automating site access.
Installation
npm install -g @dresspress/wp-studio-utilsQuick Start
1. Link a project
Run this inside your plugin's root directory:
dp-studio linkIt creates a symlink to your Studio site's plugin folder and saves environment metadata to wp-studio-env.json.
2. Auto-detect environment
Any standard studio command run from your project root will automatically target the linked site:
dp-studio site status # No need to pass --path
dp-studio wp plugin list3. Open site
dp-studio open # Opens WP Admin in default browser
dp-studio open site # Opens site frontend4. Sync environment
dp-studio env # Refreshes local wp-studio-env.json with latest site statusAlias (Recommended)
To use dp-studio as a drop-in replacement for studio, add this to your .zshrc:
alias studio="dp-studio"Development
git clone https://github.com/dresspress/wp-studio-utils.git
cd wp-studio-utils
npm install
npm linkLicense
MIT © DressPress
