Developers
Console Commands
Patrol includes console commands you can run from your Craft project’s directory.
Access Tokens
Prints a new random 32-character token for maintenance mode access. Add it to maintenanceModeAccessTokens and send the link to the person who needs access. The command only prints the token, so nothing changes until you add it to your configuration. This is also the default action, so php craft patrol/access-token runs it. Access Tokens explains how the link works.
php craft patrol/access-token/generate
Last updated: Nov 13, 2026, 3:19:15 PM