Need a fresh start? The phpkg flush
command clears out all files and directories created during the build process—think of it as a reset button for your builds/
directory. Whether you’re troubleshooting, cleaning up clutter, or prepping for a new build, flush
gets you back to square one fast.
From your project’s root directory, run:
phpkg flush
builds/
—all environment directories like development/
and production/
. builds/
directory is empty, ready for a fresh phpkg build
.Caution: This wipes all built files—back up anything you need before running it!
phpkg build
. Check builds/
after running—it should be empty. Then, rebuild with:
phpkg build # or phpkg build production
builds/
(if any) before flushing—they’ll be gone. flush
then build
for a clean, reliable setup. We believe that PHP has enormous untapped potential, and we are dedicated to creating tools that empower developers to harness its full power and capabilities. We aim to unlock this potential by creating tools that help developers harness PHP's full capabilities and extend its power to new heights. To this end, we developed phpkg, a cutting-edge package manager that simplifies the process of using PHP to its fullest extent. With phpkg, developers can take advantage of all that PHP has to offer and build more efficient, scalable, and powerful applications.