The Symfony CLI Tool supports an API Token authentication option to allow it to be used from CI services, automation tools, and directly from application containers.
API tokens are managed on symfony.com.
The Symfony CLI Tool read the API token from the
When running commands from any automated system, use the
to avoid blocking the process. When running a command in a SymfonyCloud cron
task, always use the
Using the CLI Tool on Application Containers¶
A common use case for API tokens is to allow the Symfony CLI Tool to be run on application containers.
SYMFONY_TOKEN environment variable first:
$ symfony var:set SYMFONY_TOKEN=API_KEY_VALUE --sensitive --env=master
You can now run a command from within the shell on the application container, or via a cron hook (the project and the environment are auto-detected).
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.