Console commands
Single commands
vendor/bin/typo3 cache:flush
-
vendor/bin/typo3 cache:flush -
Flush TYPO3 caches.Usage
vendor/bin/typo3 cache:flush [-g|--group [GROUP]]Copied!
language:update
-
language:update -
Update the language files of all activated extensionsUsage
language:update [--no-progress] [--fail-on-warnings] [--skip-extension SKIP-EXTENSION] [--] [<locales>...]Copied!Argumentslocales
HelpUpdate the language files of all activated extensions
bin/typo3 setup
-
bin/typo3 setup -
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.