Multi-Site Deployment
Agencies and teams use BF Blocks' export/import system to maintain a standard block library and deploy it consistently across client sites.
Recommended Agency Workflow
- Maintain a master library site. A private WordPress staging install where your agency's block library lives. All new blocks are built here first.
- Export the full library. Run
wp bf-blocks export --all --output=./blocks/from the master site. - Commit block JSON to Git. The
./blocks/directory lives in your agency's starter theme or project scaffold. - Deploy to client site. On a new client site, run
wp bf-blocks import ./blocks/ --forceduring the site setup script. - Customise per client. Modify, rename, or extend individual blocks on the client site without affecting the master library.
Deployment Script Example
#!/usr/bin/env bash # deploy-blocks.sh — run after WP install WP_PATH="/var/www/client-site" BLOCKS_PATH="./blocks" echo "Installing BF Blocks plugin..." wp plugin install bf-blocks.zip --activate --path="$WP_PATH" echo "Activating licence..." wp bf-blocks licence activate "$BF_BLOCKS_LICENCE_KEY" --path="$WP_PATH" echo "Importing block library..." wp bf-blocks import "$BLOCKS_PATH" --force --path="$WP_PATH" echo "Done. Blocks imported:" wp bf-blocks list --path="$WP_PATH"
Current Licence Requirements
BF Blocks is currently available as a free download, so the portal and licence slot system are disabled for now.
Local environments (localhost, *.local, *.test) can be used freely during development.
Need deployment help?
Contact us and tell us about your WordPress setup.