Global commands
| Command | Description |
|---|---|
bin/typo3 list |
List commands |
bin/typo3 setup |
Setup TYPO3 via CLI using environment variables, CLI options or interactive |
bin/typo3 list
-
bin/typo3 listBack to list -
List commandsUsage
bin/typo3 list [--raw] [--format FORMAT] [--short] [--] [<namespace>]Copied!HelpThe
listcommand lists all commands:bin/typo3 listCopied!You can also display the commands for a specific namespace:
bin/typo3 list testCopied!You can also output the information in other formats by using the --format option:
bin/typo3 list --format=xmlCopied!It's also possible to get raw list of commands (useful for embedding command runner):
bin/typo3 list --rawCopied!
bin/typo3 setup
-
bin/typo3 setupBack to list -
Setup TYPO3 via CLI using environment variables, CLI options or interactiveUsage
bin/typo3 setup [--driver [DRIVER]] [--host HOST] [--port [PORT]] [--dbname DBNAME] [--username USERNAME] [--password PASSWORD] [--admin-username [ADMIN-USERNAME]] [--admin-user-password ADMIN-USER-PASSWORD] [--admin-email ADMIN-EMAIL] [--project-name PROJECT-NAME] [--create-site [CREATE-SITE]] [--server-type [SERVER-TYPE]] [--force] [-n|--no-interaction]Copied!Help- The command offers 3 ways to setup TYPO3:
-
- environment variables
- commandline options
- interactive guided walk-through
All values are validated no matter where it was set. If a value is missing, the user will be asked for it.
Setup using environment variables
TYPO3_DB_DRIVER=mysqli \ TYPO3_DB_USERNAME=db \ TYPO3_DB_PORT=3306 \ TYPO3_DB_HOST=db \ TYPO3_DB_DBNAME=db \ TYPO3_SETUP_ADMIN_EMAIL=admin@example.com \ TYPO3_SETUP_ADMIN_USERNAME=admin \ TYPO3_SETUP_CREATE_SITE="https://your-typo3-site.com/" \ TYPO3_PROJECT_NAME="Automated Setup" \ TYPO3_SERVER_TYPE="apache" \ ./bin/typo3 setup --forceCopied!Warning
Variable
TYPO3_(optionDB_ PASSWORD --) can be used to provide a password for the database andpassword TYPO3_(optionSETUP_ ADMIN_ PASSWORD --) for the admin user password. Using this can be a security risk since the password may end up in shell history files. Prefer the interactive mode. Additionally, writing a command to shell history can be suppressed by prefixing the command with a space when usingadmin- user- password bashorzsh.