diff options
Diffstat (limited to 'doc/reference/cmdline.rst')
| -rw-r--r-- | doc/reference/cmdline.rst | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/doc/reference/cmdline.rst b/doc/reference/cmdline.rst index 9e71ce600d6..8e04683bfee 100644 --- a/doc/reference/cmdline.rst +++ b/doc/reference/cmdline.rst @@ -181,31 +181,31 @@ database .. code-block:: bash - odoo-bin --db-filter ^11.*$ + $ odoo-bin --db-filter ^11.*$ Restrict access to databases whose name starts with 11 .. code-block:: bash - odoo-bin --database 11firstdatabase,11seconddatabase + $ odoo-bin --database 11firstdatabase,11seconddatabase Restrict access to only two databases, 11firstdatabase and 11seconddatabase .. code-block:: bash - odoo-bin --database 11firstdatabase,11seconddatabase -u base + $ odoo-bin --database 11firstdatabase,11seconddatabase -u base Restrict access to only two databases, 11firstdatabase and 11seconddatabase, - and update base module on one database: 11firstdatabase + and update base module on one database: 11firstdatabase. If database 11seconddatabase doesn't exist, the database is created and base modules is installed .. code-block:: bash - odoo-bin --db-filter ^11.*$ --database 11firstdatabase,11seconddatabase -u base + $ odoo-bin --db-filter ^11.*$ --database 11firstdatabase,11seconddatabase -u base Restrict access to databases whose name starts with 11, - and update base module on one database: 11firstdatabase + and update base module on one database: 11firstdatabase. If database 11seconddatabase doesn't exist, the database is created and base modules is installed @@ -321,7 +321,7 @@ customize the amount of logging output logs to the ``ir.logging`` model (``ir_logging`` table) of the specified database. The database can be the name of a database in the "current" - PostgreSQL, or `a PostgreSQL URI`_ for e.g. log aggregation + PostgreSQL, or `a PostgreSQL URI`_ for e.g. log aggregation. .. option:: --log-handler <handler-spec> @@ -428,21 +428,27 @@ starting requirements are. Scaffolding is available via the :command:`odoo-bin scaffold` subcommand. -.. option:: -t <template> - - a template directory, files are passed through jinja2_ then copied to - the ``destination`` directory - -.. option:: name +.. option:: name (required) the name of the module to create, may munged in various manners to generate programmatic names (e.g. module directory name, model names, …) -.. option:: destination +.. option:: destination (default=current directory) directory in which to create the new module, defaults to the current directory +.. option:: -t <template> + + a template directory, files are passed through jinja2_ then copied to + the ``destination`` directory + +.. code-block:: console + + $ odoo_bin scaffold my_module /addons/ + +This will create module *my_module* in directory */addons/*. + .. _reference/cmdline/config: Configuration file |
