]> BookStack Code Mirror - website/blob - content/docs/admin/commands.md
Improved code highlighting using codemirror
[website] / content / docs / admin / commands.md
1 +++
2 title = "Commands"
3 description = "BookStack command-line actions"
4 date = "2017-02-26"
5 type = "admin-docs"
6 +++
7
8 BookStack has some command line actions that can help with maintenence and common operations. There are also many commands available from the undlying 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.
9
10 ### BookStack Commands
11
12 Here's a listing of the BookStack specific commands:
13
14 ```bash
15
16 # Delete all activity history from the system
17 php artisan bookstack:clear-activity
18
19 # Delete all page revisions from the system
20 php artisan bookstack:clear-revisions
21
22 # Delete all page revisions from the system including update drafts
23 php artisan bookstack:clear-revisions -a
24
25 # Delete all page views from the system
26 php artisan bookstack:clear-views
27
28 # Regenerate access permissions - Used mostly in development.
29 php artisan bookstack:regenerate-permissions
30
31 ```