3 description = "BookStack command-line actions"
8 BookStack has some command line actions that can help with maintenance and common operations. There are also many commands available from the underlying Laravel framework. To list all available commands you can simply run `php artisan` from your BookStack install folder. Custom BookStack commands are all under the 'bookstack' namespace.
10 ### BookStack Commands
12 Here's a listing of the BookStack specific commands:
16 # Delete all activity history from the system
17 php artisan bookstack:clear-activity
19 # Delete all page revisions from the system
20 php artisan bookstack:clear-revisions
22 # Delete all page revisions from the system including update drafts
23 php artisan bookstack:clear-revisions -a
25 # Delete all page views from the system
26 php artisan bookstack:clear-views
28 # Generate SQL commands that will upgrade the database to UTF8mb4
29 # See https://www.bookstackapp.com/docs/admin/ut8mb4-support/
30 php artisan bookstack:db-utf8mb4
32 # Rebuild the search index
33 # Useful if manually inserting pages into the system
34 php artisan bookstack:regenerate-search
36 # Regenerate access permissions - Used mostly in development
37 php artisan bookstack:regenerate-permissions