-
Notifications
You must be signed in to change notification settings - Fork 15
run
Sébastien Andreatta edited this page Apr 27, 2026
·
2 revisions

Run the odoo-bin process for the selected database locally. The process is run in a python virtual environment depending on the database's odoo version (as definedby the installed base module). The command takes care of installing and updating python requirements withinthe virtual environment and fetching the latest sources in the odoo standard repositories, cloning themif necessary. All odoo-bin arguments are passed to the odoo-bin process.
odev run [-v {CRITICAL,ERROR,WARNING,INFO,DEBUG,DEBUG_SQL,NOTSET}] [-h] [-f] [-c] [-V VERSION] [--venv VENV] [-w WORKTREE] [--no-pretty] [-t FROM_TEMPLATE] database [addons]No aliases
| Argument | Description |
|---|---|
database |
The database to target. |
addons |
Comma-separated list of additional addon paths. The standard Odoo addons paths are automatically added to the odoo-bin command (including enterprise if any enterprise module is installed). If this command is run from within an Odoo addons directory and no additional addons are specified, the current directory will be added to the list of addons. |
| Argument | Description |
|---|---|
-v, --log-level |
Set logging verbosity for the execution of odev. |
-h, --help |
Show help for the current command. |
-f, --force |
Bypass confirmation prompts and assume a default value to all, use with caution! |
-c, --community |
Force running the database without enterprise addons. |
-V, --version |
The Odoo version to use for running the database. If not specified, defaults to the latest version of the base module installed in the database. |
--venv |
Name of the Python virtual environment to use when running this database. If not specified, defaults to the common virtual environment for the current Odoo version. |
-w, --worktree |
Name of the worktree to use when running this database. If not specified, defaults to the common worktree for the current Odoo version. |
--no-pretty |
Do not pretty print the output of odoo-bin but rather display logs as output by the subprocess. |
-t, --from-template |
Name of an existing PostgreSQL database to copy before running. If passed without a value, search for a template database with the same name as the new database. |
odev run --helpodev run demo_19odev run demo_19 -i website,sale_management -u baseodev run demo_19 -- --xmlrpc-port=8070 --log-level=debug_sqlodev run demo_19 -i website --stop-after-init