Home › Curriculum › Odoo Developer › odoo-bin and the configuration file
Framework and architecture · 14 min · 17–20odoo-bin and the configuration file
Command-line options and odoo.conf: database, addons path, install/update, dev mode, tests, workers, limits, logging and subcommands.
In this lesson
- Everyday command-line options
- Subcommands
- odoo.conf options
Key points
- -c, -d, -i, -u, --stop-after-init, --addons-path, --dev, --test-tags, --log-handler
- Subcommands: shell, scaffold, neutralize, populate, cloc
- odoo.conf: admin_passwd, db_*, addons_path, data_dir, proxy_mode, workers, limits
- list_db = False and dbfilter in production
Real-world example
A developer ran -u all on production at 2 p.m. to update one module; every module reloaded, the site was slow for 40 minutes and a forgotten view override broke. The team's runbook now says: update only the changed modules, out of hours, after testing the same command on staging.
Questions and answers
What does --dev=xml do?
Reads views from XML files directly so view edits appear without updating the module (development only).
What does dbfilter = ^%d$ do?
Selects the database whose name matches the request's subdomain.