Bookstack | Commands
Usefull commands for bookstack container using php artisan.
folder where php artisan can execute isn't at the same place for the vanilla or linux server version ! (can cause "Could not open input file: artisan" error)
Bookstack vanilla : /var/www/html
Linux server version : /app/www
Create an Admin User
Create a new admin user via the command line. Can offer a good last resort if you ever get locked out the system. Will use the details provided as options otherwise will request them interactively.
# Interactive usage
php artisan bookstack:create-admin
# Non-interactive usage example
php artisan bookstack:create-admin --email="barry@example.com" --name="Bazza" --password="hunter2"
# Defining "External Authentication ID" instead of password for LDAP/SAML2/OIDC environments
php artisan bookstack:create-admin --email="barry.booker@example.com" --name="Bazza" --external-auth-id="bbooker"
Commands
- Create an Admin User
- Copy Shelf Permission
- Update System URL
- Reset User MFA Methods
- Delete All Activity History
- Delete Page Revisions
- Delete Page Views
- Cleanup Unused Images
- Regenerate the Search Index
- Regenerate Access Permissions
- Regenerate Reference Index
- Regenerate Comment Content
- Delete Users
- Generate UTF8mb4 SQL Upgrade Commands