• 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. The rb-site Tool
  • Home
  • General Index
  • Release Notes
  • This documentation covers Review Board 1.0. You can select a version above or view the latest documentation.

    The rb-site Tool¶

    Overview¶

    Most of the work of installing and managing a Review Board site is done for you by a tool bundled with Review Board called rb-site.

    rb-site has three main commands:

    • install
    • upgrade
    • manage

    These will be discussed in detail in the following sections.

    rb-site always requires a command as the first argument and a site directory as the second. Some commands may accept additional arguments.

    Global Options¶

    --version¶

    Shows the version number and exits.

    -h, --help¶

    Shows the help for the program and exits.

    --console¶

    Forces use of the console UI for any interaction.

    -d, --debug¶

    Displays debug output in the console.

    rb-site install¶

    Installs a new Review Board site. This will ask a series of questions and will populate a tree for the website, as well as generate configuration files.

    If rb-site is run in an X11 environment with GTK+, then this will present a graphical wizard for the questions. Otherwise, this will ask in the console.

    This takes a directory as the first parameter. For example:

    $ rb-site install /path/to/site

    See creating-sites for more information.

    Options¶

    --copy-media¶

    Copies media files to the site directory. By default, media files and directories are symlinked. This option is implied on Windows.

    --noinput¶

    Runs non-interactively, using configuration provided through command line options.

    --domain-name=<DOMAIN_NAME>¶

    The full domain name of the site, excluding the http:// port or path. For example, reviews.example.com

    --site-root=<SITE_ROOT>¶

    The path of the site, relative to the domain. This should end with a trailing /. For example, / or /reviews/.

    --media-url=<MEDIA_URL>¶

    The URL containing the media files. This should end with a trailing /. For example, /media/ or http://media.example.com/.

    --db-type=<DB_TYPE>¶

    The database type. This should be one of:

    • mysql
    • postgresql
    • sqlite3
    --db-name=<DB_NAME>¶

    The database name (not used for sqlite3).

    --db-user=<DB_USER>¶

    The username used for connecting to the database (not used for sqlite3).

    --db-pass=<DB_PASS>¶

    The password used for connecting to the database (not used for sqlite3).

    --cache-type=<CACHE_TYPE>¶

    The cache server type. This should be one of:

    • memcached
    • file
    --cache-info=<CACHE_INFO>¶

    The detailed cache information. This is dependent on the cache type used.

    For memcached, this should be a connection string (such as memcached://localhost:11211/.

    For file, this should be the path to a cache directory that the web server can write to.

    --web-server-type=<WEB_SERVER_TYPE>¶

    The type of web server that will run the site. This should be one of:

    • apache
    • lighttpd
    --python-loader=<PYTHON_LOADER>¶

    The type of Python loader. This should be one of:

    • modpython
    • fastcgi

    For lighttpd, the only choice is fastcgi.

    --admin-user=<ADMIN_USER>¶

    The username for the new site administrator account.

    --admin-password=<ADMIN_PASSWORD>¶

    The password for the new site administrator account.

    --admin-email=<ADMIN_EMAIL>¶

    The e-mail address for the new site administrator account.

    rb-site upgrade¶

    Upgrades an existing site installation. This will update the media trees and upgrade the database.

    This must be performed every time Review Board is upgraded.

    This takes a directory as the first parameter. For example:

    $ rb-site upgrade /path/to/site

    See upgrading-sites for more information.

    Options¶

    --no-db-upgrade¶

    Prevents an upgrade and evolution of the database.

    rb-site manage¶

    Performs management commands on a site.

    This is an advanced command that wraps the Django manage.py command. It takes a path to the site, a manage subcommand, and optional parameters (following a --).

    For example:

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

    You can see the list of manage subcommands by running:

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

    For more information, and some useful subcommands, see Management Commands.

    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]
    • Overview
    • Global Options
    • rb-site install
      • Options
    • rb-site upgrade
      • Options
    • rb-site manage