diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index 8150a4df6..33f172119 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -695,10 +695,16 @@ interaction with the :ref:`orm ` and its functionalities. By default, the shell is running in transaction mode. This means that any change made to the database is rolled back when exiting the shell. To commit changes, use `env.cr.commit()`. + +.. option:: --shell-file + + Specify a Python script to be run after the start of the shell. Overrides the environment + variable `PYTHONSTARTUP`. + .. option:: --shell-interface (ipython|ptpython|bpython|python) - Specify a preferred REPL to use in shell mode. This shell is started with the `env` variable - already initialized to be able to access the ORM and other Odoo modules. + Specify a preferred `REPL` to use in shell mode. This shell is started with the `env` variable + already initialized to be able to access the `ORM` and other Odoo modules. .. seealso:: :ref:`reference/orm/environment`