Terminus is Pantheon’s command line tool. It enables you to do almost everything in a terminal that you can do in the Dashboard, and much more.
Terminus is pre-installed in the cli
container. Note: required docksal/cli
version: 2.1.0+.
Follow the official docs to generate your machine token and then add the token to your global configuration:
fin config set --global SECRET_TERMINUS_TOKEN="XMAG92S9_9gf5Mlhb7-JIEjVwYYhY-MGuKcspAdL0CjkU"
Refresh cli
service configuration with fin project start
. This will inject the token into cli
and authenticate
the container with Pantheon.
Use fin terminus <command>
from the host or terminus <command>
inside cli
.
Please refer to the official docs for usage details.
It is also possible to add/override these values via .docksal/docksal-local.env
at the project level (replace --global
with --env=local
).
Keep in mind, .docksal/docksal-local.env
can be used for local overrides and should be excluded from git.
As such, it is best to use .docksal/docksal-local.env
for any personal keys and tokens configured at the project level.
For easier integration with Pantheon environment use the pull command. This allows you to easily bring your assets (db, files, and code) down to your local environment quickly without manually running through the steps.
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.