The Symfony CLI allows you to interact with your project from the command line.
It wraps the Upsun CLI with added features related to Symfony.
So when using Symfony, you can replace upsun <command> by symfony upsun:<command> in all of your commands.
Useful Symfony CLI commands
-
Open the web administration console:
-
Open the URL of the current environment:
-
Open an SSH connection to your environment:
-
Configure a project for Upsun:
symfony project:init --upsun
-
Get a list of all the domains:
-
Create a new environment:
symfony upsun:branch new-branch
-
Get a list of all the environments:
symfony upsun:environments
-
Push code to the current environment:
-
Get a list of all the active projects:
-
Add a user to the project:
-
List variables:
Useful commands when using Symfony with a database
-
Create a local dump of the remote database:
symfony upsun:db:dump --relationship database
-
Run an SQL query on the remote database:
symfony upsun:sql 'SHOW TABLES'
-
Import a local SQL file into a remote database:
symfony upsun:sql < my_database_backup.sql
Last modified on March 10, 2026