A DDEV add-on that provides a command to set TYPO3 backend user passwords.
TYPO3’s CLI lacks a command to change an existing backend user’s password. The available options all have limitations:
| Option | Limitation |
|---|---|
ddev typo3 backend:resetpassword |
Requires email delivery to be configured |
ddev typo3 backend:createadmin |
Creates new user, can’t update existing |
Manual DB update via ddev mysql |
Error-prone, requires knowledge of password hashing |
Additionally, ddev exec passes commands through two shells (host + container), which mangles special characters like !, $, ` in passwords. This command avoids the issue by passing the password via PHP’s $argv instead of string interpolation.
ddev add-on get dkd-dobberkau/ddev-typo3-password
ddev restart
# Interactive (recommended - prompts for password with confirmation)
ddev typo3-password admin
# With argument
ddev typo3-password admin 'NewPass2024#'
# Non-existent user shows helpful error with available users
ddev typo3-password unknown
Set password interactively:
$ ddev typo3-password admin
New password:
Confirm password:
Password for 'admin' updated successfully.
User not found:
$ ddev typo3-password unknown
Error: Backend user 'unknown' not found.
Available users:
+-----+----------+-------------------+-------+--------+
| uid | username | email | admin | status |
+-----+----------+-------------------+-------+--------+
| 1 | admin | [email protected] | yes | active |
+-----+----------+-------------------+-------+--------+
password_hash() with PASSWORD_ARGON2ID (TYPO3’s default algorithm)$argv to avoid shell escaping issuesApache License 2.0