Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

DDEV TYPO3 Password

A DDEV add-on that provides a command to set TYPO3 backend user passwords.

Why?

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.

Installation

ddev add-on get dkd-dobberkau/ddev-typo3-password
ddev restart

Usage

# 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

Examples

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 |
+-----+----------+-------------------+-------+--------+

How It Works

Requirements

License

Apache License 2.0