Skip to content
Sébastien Andreatta edited this page Apr 27, 2026 · 2 revisions

odev create

create demo

Create a new Odoo database locally, or copy an existing database template.

Usage

odev create [-v {CRITICAL,ERROR,WARNING,INFO,DEBUG,DEBUG_SQL,NOTSET}] [-h] [-f] [-c] [-V VERSION] [--venv VENV] [-w WORKTREE] [--no-pretty] [-t FROM_TEMPLATE] [-T] [--no-filestore] [--bare] database [addons]

Aliases

cr

Arguments

Positional Arguments:

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.

Optional Arguments:

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 the new database. If not specified and a template is provided, the version of the template database will be used. Otherwise, the version will default to "master".
--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 instead of initializing a new Odoo database. If passed without a value (empty string), search for a template database with the same name as the new database.
-T, --create-template Create the database as a template to reuse later (append ':template' to its name).
--no-filestore Do not copy the filestore from the template.
--bare Do not initialize the database (create the PostgreSQL database then exit).

Examples

Show help

odev create --help

Create a new Odoo database locally

odev create demo_19

Advanced usage (Create version 18.0 with community only)

odev create -f -V 18.0 --community demo_18 --without-demo

Create as template

odev create -T demo_template

Create from template

odev create demo_new -t demo_template

Create a bare database (PostgreSQL only, no Odoo init)

odev create --bare demo_bare

Clone this wiki locally