WP-CLI provides a command-line interface for many actions you might perform in the WordPress admin.
Please refer to wp-cli.org or the official WP-CLI Handbook for usage details.
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.