CLI Commands

Baander ships a set of console commands for managing users, libraries, notifications, and more. All commands run inside the app container.

# Run any command
make exec cmd="php bin/console <command>"

# Example
make exec cmd="php bin/console app:user:create --help"

Auth

Command Description
app:auth:rotate-secrets Rotate OAuth keys and invalidate all tokens
app:auth:setup-clients Create OAuth2 password clients for the SPA and Electron app
app:user:create Create a new user account

Library

Command Description
app:albums:extract-covers Extract embedded cover art for albums missing one
app:library:create Register a new media library
app:library:scan Scan a media library for new files

Notifications

Command Description
app:generate-vapid-keys Generate VAPID keys for push notifications

Development

Command Description
app:export-openapi-spec Export the OpenAPI spec to a file
app:watch-files Watch directories for filesystem changes

System

Command Description
app:config:validate Validate application configuration and check for misconfigurations
app:health:check Check the health of all system components