@andrelauret23 , thank you for your feedback and for outlining this suggestion clearly. Adding WP-CLI support for configuring the Destination URL is indeed a valuable idea, and we’ll definitely consider it for future updates.
If you have any additional suggestions or feedback, feel free to share them.
Hello @staatic, and thank you for your reply. I also believe that adding WP-CLI support for configuring the Destination URL would be a very useful feature.
I’d like to contribute to the project to help develop this functionality or work on other improvements. I came across this GitHub repository: https://github.com/common-repository/staatic, but I’m not entirely sure if this is the correct place to contribute. Could you confirm if this is the main repository for submitting changes, or if you use a different process for managing code contributions?
Thank you in advance for your guidance!
Hi @andrelauret23 , thanks for your enthusiasm and for suggesting improvements to the Staatic plugin! We really appreciate your input. It turns out that configuring the Destination URL via WP-CLI is already possible using the built-in wp option update command.
Here’s how you can do it:
wp option update staatic_destination_url 'https://example.com/'
This command will update the URL directly in your WordPress database. You can find other settings related to Staatic in the wp_options table, usually prefixed with “staatic_”.
As for contributing, we currently don’t have a public GitHub repository. This is mainly due to the complex build process we have in place, which involves scoping vendor dependencies and downgrading PHP 8 code to PHP 7.4 to ensure compatibility across a wide range of environments. We’re actively exploring solutions to manage these challenges, so we can eventually open up the repository for public contributions.
In the meantime, if you have any cool features or improvements, you might consider creating a separate plugin to enhance Staatic’s functionality.
Thanks again for your interest and ideas. We’re excited to see what you come up with!