• Get Review Board
  • What's New
  • Products
  • Review Board Code review, image review, and document review
  • Documentation
  • Release Notes
  • Power Pack Enterprise integrations, reports, and enhanced document review
  • Try for 60 Days
  • Purchase
  • RBCommons Review Board as a Service, hosted by us
  • Pricing
  • RBTools Command line tools and Python API for Review Board
  • Documentation
  • Release Notes
  • Review Bot Automated code review, connecting tools you already use
  • Documentation
  • Release Notes
  • RB Gateway Manage Git and Mercurial repositories in your network
  • Documentation
  • Release Notes
  • Learn and Explore
  • What is Code Review?
  • Documentation
  • Frequently Asked Questions
  • Support Options
  • Third-Party Integrations
  • Demo
  • Review Board RBTools Power Pack Review Bot Djblets RB Gateway
    1. Review Board 1.0
    2. Version 7.x
    3. Version 6.x
    4. Version 5.0
    5. Version 4.0
    6. Version 3.0
    7. Version 2.5
    8. Version 2.0
    9. Version 1.7
    10. Version 1.6
    11. Version 1.5
    12. Version 1.0
    13. Administration Guide
    14. Site Maintenance
    15. Management Commands
  • Home
  • General Index
  • Release Notes
  • This documentation covers Review Board 1.0. You can select a version above or view the latest documentation.

    Management Commands¶

    rb-site provides a manage command for certain management tasks. The format for the commands is always:

    $ rb-site manage /path/to/site command-name -- parameters

    The management commands that administrators are most likely to use are explained in detail in the following sections.

    To get a complete list of all management commands, run:

    $ rb-site manage /path/to/site help

    And to retrieve information on a specific management command:

    $ rb-site manage /path/to/site help command-name

    Search Indexing¶

    Review Board installations set up with Lucene search must periodically index the database. This is done through the index management command. There are two indexing methods: incremental and full.

    To perform an incremental index:

    $ rb-site manage /path/to/site index

    To perform a full index:

    $ rb-site manage /path/to/site index -- --full

    These commands should be run periodically in a task scheduler, such as cron on Linux. It is advisable to do an incremental index roughly every 10 minutes, and a full index once a week during off-peak hours.

    A sample crontab entry is available at conf/search-cron.conf under an installed site directory.

    The generated search index will be placed in the search index directory <search-index-directory specified in the General Settings page. By default, this should be the search-index directory in your site directory.

    Creating a Super User¶

    It is possible to create a new super user account without using the website. This can be important if the main super user account is for whatever reason disabled or if the login information is lost.

    To create a new super user account, run:

    $ rb-site manage /path/to/site createsuperuser

    This will prompt for the username and password of the account. You must specify a user that doesn’t already exist in the database. Once this is finished, you should be able to log in under the new account and fix any problems you have.

    Opening a Command Shell¶

    Power users who wish to run Python commands against an installed Review Board server can do so with the shell management command. This can be useful if you’re a developer looking to test some code against Review Board.

    To open a Python command shell, run:

    $ rb-site manage /path/to/site shell

    Keep up with the latest Review Board releases, security updates, and helpful information.

    About
    News
    Demo
    RBCommons Hosting
    Integrations
    Happy Users
    Support Options
    Documentation
    FAQ
    User Manual
    RBTools
    Administration Guide
    Power Pack
    Release Notes
    Downloads
    Review Board
    RBTools
    Djblets
    Power Pack
    Package Store
    PGP Signatures
    Contributing
    Bug Tracker
    Submit Patches
    Development Setup
    Wiki
    Follow Us
    Mailing Lists
    Reddit
    Twitter
    Mastodon
    Facebook
    YouTube

    Copyright © 2006-2025 Beanbag, Inc. All rights reserved.

    Terms of Service — Privacy Policy — AI Ethics Policy — Branding

    On this page

    • [Top]
    • Search Indexing
    • Creating a Super User
    • Opening a Command Shell