.. _reference/cmdline: =============================== Command-line interface: odoo.py =============================== .. _reference/cmdline/server: Running the server ================== .. program:: odoo.py .. option:: -d , --database= database used when installing or updating modules. .. option:: --db-filter= hides databases that do not match ````. The filter is a `regular expression`_, with the additions that: - ``%h`` is replaced by the whole hostname the request is made on. - ``%d`` is replaced by the subdomain the request is made on, with the exception of ``www`` (so domain ``odoo.com`` and ``www.odoo.com`` both match the database ``odoo``) .. option:: -i , --init= comma-separated list of modules to install before running the server (requires :option:`-d`). .. option:: -u , --update= comma-separated list of modules to update before running the server (requires :option:`-d`). .. option:: --addons-path= comma-separated list of directories in which modules are stored. These directories are scanned for modules (nb: when and why?) .. option:: -c , --config= provide an alternate configuration file .. option:: -s, --save saves the server configuration to the current configuration file (:file:`{$HOME}/.openerp_serverrc` by default, overridable using :option:`-c`) .. option:: --test-enable runs tests after installing modules .. _reference/cmdline/scaffold: Scaffolding =========== .. program:: odoo.py scaffold Scaffolding is the automated creation of a skeleton structure to simplify bootstrapping (of new modules, in the case of Odoo). While not necessary it avoids the tedium of setting up basic structures and looking up what all starting requirements are. Scaffolding is available via the :command:`odoo.py scaffold` subcommand. .. option:: -t