WP-CLI provides a command-line interface for many actions you might perform in the WordPress admin.
From the host via
fin wp --version
From with the cli container (
fin bash) wp can be called directly:
Unless globally accessible site aliases are used, wp-cli must be run inside the WordPress document root to be able to detect the WordPress instance and read the DB connection settings.
Was this page helpful?
Thanks for the feedback. If you have a specific, answerable question about how to use Docksal, ask it in Discussions on GitHub. Open an issue if you want to report a problem or suggest an improvement. You can also contribute changes to this page using the link in the top right corner.