3 ===============================
4 Command-line interface: oodo.py
5 ===============================
7 .. _reference/cmdline/server:
14 .. option:: -d <database>, --database=<database>
16 database used when installing or updating modules.
18 .. option:: -i <modules>, --init=<modules>
20 comma-separated list of modules to :ref:`install
21 <reference/module/lifecycle/install>` before running the server.
23 .. option:: -u <modules>, --update=<modules>
25 comma-separated list of modules to :ref:`update
26 <reference/module/lifecycle/update>` before running the server.
28 .. option:: --addons-path <directories>
30 comma-separated list of directories in which modules are stored. These
31 directories are scanned for modules (nb: when and why?)
33 .. option:: -c <config>, --config <config>
35 provide an alternate configuration file
37 .. option:: -s, --save
39 saves the server configuration to the current configuration file
40 (:file:`{$HOME}/.openerp_serverrc` by default, overridable using
43 .. _reference/cmdline/scaffold:
48 .. program:: odoo.py scaffold
50 Scaffolding is the automated creation of a skeleton structure to simplify
51 bootstrapping (of new modules, in the case of Odoo). While not necessary it
52 avoids the tedium of setting up basic structures and looking up what all
53 starting requirements are.
55 Scaffolding is available via the :command:`odoo.py scaffold` subcommand.
57 .. option:: -t <template>
59 a template directory, files are passed through jinja2_ then copied to
60 the :option:`destination` directory
64 the name of the module to create, may munged in various manners to
65 generate programmatic names (e.g. module directory name, model names, …)
67 .. option:: destination
69 directory in which to create the new module, defaults to the current
72 .. _reference/cmdline/config:
77 Most of the command-line options can also be specified via a configuration
80 The default configuration file is :file:`{$HOME}/.openerp_serverrc` which
81 can be overridden using :option:`--config <odoo.py -c>`. Specifying
82 :option:`--save <odoo.py -s>` will save the current configuration state back
85 .. _jinja2: http://jinja.pocoo.org