Skip to content

Instantly share code, notes, and snippets.

@Starraider
Last active August 27, 2020 02:16
Show Gist options
  • Save Starraider/740b09f7fe6b87206e24c255d0e89a57 to your computer and use it in GitHub Desktop.
Save Starraider/740b09f7fe6b87206e24c255d0e89a57 to your computer and use it in GitHub Desktop.
Usefull TYPO3 console commands

Usefull TYPO3 console commands

TYPO3-Console documentation

Make an alias for the bash:

If you don't want to use /vendor/bin/ in front of typo3cms:

mcedit ~/etc/bash/profile

alias "typo3cms=~/html/vendor/bin/typo3cms"

or

alias "typo3cms=~/html/typo3/vendor/bin/typo3cms"

console commands

Flush all caches:

typo3cms cache:flush

Fix the folder structure:

typo3cms install:fixfolderstructure

Update DB schema:

typo3cms database:updateschema

typo3cms database:updateschema safe

Generate package states:

typo3cms install:generatepackagestates

Update languages files:

typo3cms language:update

Create new Backend Admin:

TYPO3 v9 and below:

typo3cms backend:createadmin -username myname -password mypass123

TYPO3 v10 and above:

typo3cms backend:createadmin myname mypass123

Create a DB dump:

typo3cms database:export -c Default -e 'cf_*' -e 'cache_*' -e '[bf]e_sessions' -e sys_log > dbDump.sql

Import the DB dump:

typo3cms database:import < dbDump.sql

Execute the Upgrade Wizards:

TYPO3 v9 and below:

typo3cms upgrade:all

typo3cms upgrade:all -n -a=compatibility8Extension[install]=0

TYPO3 v10 and above:

typo3cms upgrade:prepare

typo3cms upgrade:run all --confirm all --deny typo3DbLegacyExtension --deny funcExtension --deny rsaauthExtension --deny feeditExtension --deny taskcenterExtension --deny sysActionExtension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment