odoocli command reference
Generated from odoocli docs export --json: 121 commands, 92 of which run against a remote server and 29 of
which must run on the server itself.
Pass --server <name|url> to choose a stored connection or an API endpoint, or --local to
act on the host you are on. Every command also accepts the global options listed in
Configuration files, which are omitted from the tables below.
Connections
odoocli talks to a remote server by default. Connections are stored once and then named, so day-to-day commands do not repeat a URL and an API key.
odoocli connection add
Store a new management-API connection.
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
-n, --name | No | Name of the connection. |
-u, --url | No | Base URL of the management API (e.g. http://server:5210). |
-k, --api-key | No | API key for the management API. Prompted for when omitted. |
--default | No | Make this connection the default. The first stored connection is the default automatically. |
# odoocli connection addodoocli connection default
Show or set the default management-API connection.
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
-n, --name | No | Name of the connection. |
# odoocli connection defaultodoocli connection list
List the stored management-API connections.
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
--show-secrets | No | Reveal secrets (passwords, tokens) instead of masking them. |
# odoocli connection listodoocli connection remove
Remove a stored management-API connection.
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
-n, --name | No | Name of the connection. |
# odoocli connection removeServer
Installing, configuring and maintaining the host itself: the managed containers, the endpoints the management API and Web UI listen on, the API key, mail, intrusion prevention and PostgreSQL.
odoocli server apikey- Manage the management API key shared by the API and Web containers.odoocli server config- Manage the Odoo server configuration.odoocli server cron- Manage the Odoo server scheduled tasks.odoocli server database- Manage the Odoo server database.odoocli server datastore- Manage the Odoo server datastore.odoocli server fail2ban- Manage Fail2Ban for the Odoo server.odoocli server fail2ban config- Manage the Odoo server Fail2Ban configuration.odoocli server postgres- Manage PostgreSQL for the Odoo server.odoocli server postgres image- Manage the PostgreSQL image.
odoocli server apikey rotate
Rotate the management API key and redeploy the API and Web containers (local repair command).
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
-y, --yes | No | Assume 'yes' to all prompts and run non-interactively. |
# odoocli server apikey rotateodoocli server config create
Create the Odoo server configuration.
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
-p, --preset | Yes | Odoo server configuration preset (Development or Production). |
# odoocli server config createodoocli server config edit
Edit the Odoo server configuration.
This command has no remote form. Run it on the server itself.
# odoocli server config editodoocli server config endpoints
Show or change the management API and Web ports and bind addresses (local command).
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
--api-port | No | Port the management API listens on (default 5210). |
--api-bind | No | Address the management API binds to: '*' (all addresses), an IP address, or 'localhost'. |
--web-port | No | Port the management Web UI listens on (default 5220). |
--web-bind | No | Address the management Web UI binds to: '*' (all addresses), an IP address, or 'localhost'. |
--web-https | No | Serve the management Web UI over HTTPS with a self-signed certificate (on by default; required for passkeys, which browsers only allow in a secure context). |
# odoocli server config endpointsodoocli server config import
Import the Odoo server configuration.
| Option | Required | Description |
|---|---|---|
-p, --preset | Yes | Odoo server configuration preset (Development or Production). |
--keep-guid | No | Keep the server GUID from the imported configuration instead of regenerating it. |
-j, --json | Yes | Odoo server JSON configuration file path. |
-y, --yes | No | Assume 'yes' to all prompts and run non-interactively. |
# odoocli server config importodoocli server config rebuild
rebuilds an Odoo server configuration.
# odoocli server config rebuildodoocli server config update
Update the Odoo server configuration.
This command has no remote form. Run it on the server itself.
# odoocli server config updateodoocli server config validate-dns
Validate the Odoo instance DNS record(s).
# odoocli server config validate-dnsodoocli server cron create
Create the Odoo server scheduled tasks.
This command has no remote form. Run it on the server itself.
# odoocli server cron createodoocli server cron remove
Remove the Odoo server scheduled tasks.
This command has no remote form. Run it on the server itself.
# odoocli server cron removeodoocli server database list
List databases.
This command has no remote form. Run it on the server itself.
# odoocli server database listodoocli server datastore migrate
Migrate the Odoo server datastore.
# odoocli server datastore migrateodoocli server fail2ban ban
Manually ban an IP address on the Odoo server.
| Argument | Required | Description |
|---|---|---|
<ip> | Yes | The IPv4 or IPv6 address to ban. |
<jail> | Yes | The fail2ban jail to ban the address in, for example 'odoo-login'. |
# odoocli server fail2ban banodoocli server fail2ban config install
Install the Odoo server Fail2Ban filter and jail configuration.
# odoocli server fail2ban config installodoocli server fail2ban config remove
Remove the Odoo server Fail2Ban filter and jail configuration.
# odoocli server fail2ban config removeodoocli server fail2ban install
Install the Fail2Ban service.
# odoocli server fail2ban installodoocli server fail2ban list
List the Odoo server ban(s).
| Option | Required | Description |
|---|---|---|
-A, --all | No | Lists every ban record, expired and active. |
# odoocli server fail2ban listodoocli server fail2ban remove
Remove the Fail2Ban service.
# odoocli server fail2ban removeodoocli server fail2ban unban
Unban an IP address on the Odoo server.
| Option | Required | Description |
|---|---|---|
-A, --all | No | Lists every ban record, expired and active. |
# odoocli server fail2ban unbanodoocli server info
Show the Odoo server information (URLs, ports, credentials).
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
--show-secrets | No | Reveal secrets (passwords, tokens) instead of masking them. |
# odoocli server infoodoocli server install
Install the Odoo server.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
# odoocli server installodoocli server postgres image build
Build the PostgreSQL image.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
# odoocli server postgres image buildodoocli server postgres image list
List PostgreSQL images.
# odoocli server postgres image listodoocli server postgres image remove
Remove unused PostgreSQL images.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
# odoocli server postgres image removeodoocli server postgres reindex
Rebuild all indexes across all PostgreSQL databases (concurrently).
| Option | Required | Description |
|---|---|---|
--jobs | No | Number of parallel maintenance jobs (0 = auto). |
# odoocli server postgres reindexodoocli server postgres shell
Open a shell to the PostgreSQL server.
This command has no remote form. Run it on the server itself.
# odoocli server postgres shellodoocli server postgres vacuum
Run VACUUM + ANALYZE across all PostgreSQL databases.
| Option | Required | Description |
|---|---|---|
--jobs | No | Number of parallel maintenance jobs (0 = auto). |
--full | No | Run VACUUM FULL (rewrites tables; takes exclusive locks - use with care). |
# odoocli server postgres vacuumodoocli server update
Check for newer Docker images and host apt package updates for the Odoo server.
This command has no remote form. Run it on the server itself.
# odoocli server updateodoocli server upgrade
Upgrade the Odoo server: apply newer Docker images and host apt package updates.
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
-y, --yes | No | Assume 'yes' to all prompts and run non-interactively. |
# odoocli server upgradeInstances
Creating and running Odoo instances: their configuration, containers, images, certificates, Git-backed addons, databases and backups.
odoocli instance backup-config- Manage the Odoo instance backup configuration.odoocli instance certificate- Manage the Odoo instance certificate(s).odoocli instance config- Manage the Odoo instance configuration.odoocli instance config database- Manage the Odoo instance configuration in the database.odoocli instance container- Manage the container(s) of the Odoo instance.odoocli instance cron- Manage the Odoo instance scheduled tasks.odoocli instance database- Manage the database(s) of the Odoo instance.odoocli instance database comment- Get or set the Odoo instance database comment.odoocli instance database sysadmin- Manage the Odoo instance database sysadmin(s).odoocli instance database user- Manage the Odoo instance database user(s).odoocli instance image- Manage the Odoo instance image(s).odoocli instance modules- Manage the Odoo instance modules.odoocli instance nginx- Manage Nginx for the Odoo instance.odoocli instance nginx config- Manage the Odoo instance Nginx configuration.odoocli instance odoo- Manage Odoo Community and Enterprise addon modules for the instance.odoocli instance repair- Repair an Odoo instance.odoocli instance restore-config- Manage the Odoo instance restore configuration.
odoocli instance backup
Backup an Odoo instance.
| Option | Required | Description |
|---|---|---|
--backup-format | No | Backup format. |
--backup-provider | No | Backup provider(s). |
--backup-destination | No | Backup destination. |
# odoocli instance backupodoocli instance backup-config set
Set the Odoo instance backup mode and storage providers.
| Option | Required | Description |
|---|---|---|
--mode | No | Mode: Disabled, Manual or Automatic. Omit to keep the current mode. |
--provider | No | Provider type to add or update: Lfs, Ftp, S3 or AzureBlob. |
--name | No | Name of the provider entry to add or update (required with --provider). |
--enable | No | Enable the provider entry. |
--disable | No | Disable the provider entry. |
--remote-path | No | Remote path (Lfs, Ftp). |
--hostname | No | FTP host name. |
--port | No | FTP port. |
--username | No | FTP user name. |
--password | No | FTP password. Omit to be prompted (or to keep the stored one with --no-prompt); pass an empty string to clear it. |
--encryption | No | FTP encryption mode: None, Implicit, Explicit or Auto. |
--bucket | No | S3 bucket name. |
--access-key | No | S3 access key id, or the Azure storage key/SAS token (the Azure value is a secret). |
--secret-key | No | S3 secret key. Omit to be prompted (or to keep the stored one with --no-prompt); pass an empty string to clear it. |
--region | No | S3 region. |
--service-url | No | S3 endpoint for S3-compatible storage (e.g. MinIO), or the Azure service URI. |
--storage-account | No | Azure storage account name. |
--container | No | Azure blob container. |
--prefix | No | Object prefix (S3, AzureBlob). |
--no-prompt | No | Never prompt for a secret; leave the stored one unchanged. |
# odoocli instance backup-config setodoocli instance backup-config show
Show the Odoo instance backup configuration.
# odoocli instance backup-config showodoocli instance certificate list
List the Odoo instance certificates.
# odoocli instance certificate listodoocli instance certificate renew
Renew the Odoo instance certificate when it is missing, invalid, or nearing expiry.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
# odoocli instance certificate renewodoocli instance certificate request
Request the Odoo instance certificate.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
# odoocli instance certificate requestodoocli instance config apply
Apply pending configuration changes to the running Odoo instance(s).
| Option | Required | Description |
|---|---|---|
--force | No | Apply the full plan (config rewrite, nginx rebuild, restart) even when no changes are pending. |
--record-only | No | Record the stored configuration as applied without touching the running system (baseline for instances that predate change tracking). |
# odoocli instance config applyodoocli instance config create
Create an Odoo instance configuration.
This command has no remote form. Run it on the server itself.
# odoocli instance config createodoocli instance config database export
Export the Odoo instance configuration(s) from the database to JSON files.
| Option | Required | Description |
|---|---|---|
-e, --export-path | No | Directory path to export to. Defaults to the Odoo instance configuration directory. |
-y, --yes | No | Assume 'yes' to all prompts and run non-interactively. |
# odoocli instance config database exportodoocli instance config database import
Import the Odoo instance configuration(s) from the JSON configuration files into the application database.
# odoocli instance config database importodoocli instance config edit
Edit the Odoo instance configuration.
This command has no remote form. Run it on the server itself.
# odoocli instance config editodoocli instance config export
Export the Odoo instance(s) configuration.
| Option | Required | Description |
|---|---|---|
-e, --export-path | Yes | Directory path to export to. |
--skip-existing-files | No | Skip existing files. |
# odoocli instance config exportodoocli instance config import
Import an Odoo instance from a configuration file.
| Option | Required | Description |
|---|---|---|
-j, --json | Yes | Odoo instance JSON configuration file path. |
-p, --preset | Yes | Odoo instance environment preset (dev, test, staging, dr, prod). |
--keep-guid | No | Keep the instance GUID from the imported configuration instead of regenerating it. |
# odoocli instance config importodoocli instance config preset
Manage the Odoo instance configuration presets.
| Option | Required | Description |
|---|---|---|
-p, --preset | Yes | Odoo instance environment preset (dev, test, staging, dr, prod). |
-y, --yes | No | Assume 'yes' to all prompts and run non-interactively. |
# odoocli instance config presetodoocli instance config rebuild
rebuilds an Odoo instance configuration.
# odoocli instance config rebuildodoocli instance config source
Show or set the primary source for the Odoo instance configurations (Json or Database).
| Argument | Required | Description |
|---|---|---|
<source> | No | The primary source to switch to (Json or Database). Omit to show the current value. |
# odoocli instance config sourceodoocli instance config status
Show pending (unapplied) configuration changes of the Odoo instance(s).
# odoocli instance config statusodoocli instance config update
updates an Odoo instance configuration.
This command has no remote form. Run it on the server itself.
# odoocli instance config updateodoocli instance config validate-dns
Validate the Odoo instance DNS record(s).
# odoocli instance config validate-dnsodoocli instance container restart
Restart the Odoo container.
# odoocli instance container restartodoocli instance container shell
Open an interactive shell session inside the Odoo container.
This command has no remote form. Run it on the server itself.
# odoocli instance container shellodoocli instance container start
Start the Odoo container.
# odoocli instance container startodoocli instance container stop
Stop the Odoo container.
# odoocli instance container stopodoocli instance cron backup
Scheduled backup of Odoo instances based on the instance manifest.
# odoocli instance cron backupodoocli instance cron certificate
Scheduled renewal of Odoo instance SSL certificates (Let's Encrypt and self-signed).
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
# odoocli instance cron certificateodoocli instance cron restore
Scheduled restore of Odoo instances based on the instance manifest.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
# odoocli instance cron restoreodoocli instance database activate
Activate an Odoo instance database.
# odoocli instance database activateodoocli instance database backup
Backup an Odoo instance database.
| Option | Required | Description |
|---|---|---|
--backup-format | No | Database backup format. |
--backup-destination | No | Backup destination. |
-o, --overwrite | No | Overwrite the destination if it already exists. |
# odoocli instance database backupodoocli instance database cloc
Count the lines of code for the installed Odoo instance database addons.
# odoocli instance database clocodoocli instance database clone
Clone an Odoo instance database.
| Option | Required | Description |
|---|---|---|
-n, --name | No | Odoo database name. |
-p, --preset | Yes | Odoo instance environment preset (dev, test, staging, dr, prod). |
--neutralize | No | Neutralize the Odoo instance database. |
--activate | No | Activate the Odoo instance database. |
# odoocli instance database cloneodoocli instance database comment get
Get the Odoo instance database comment.
# odoocli instance database comment getodoocli instance database comment set
Set the Odoo instance database comment.
| Option | Required | Description |
|---|---|---|
--schema-version | No | Schema version for the database comment. |
--customer | No | Customer or tenant identifier. |
--restored-from-instance | No | Source Odoo instance identifier. |
--restored-from-name | No | Source database name at the origin instance. |
--restored-datetime-utc | No | Restore UTC timestamp (ISO-8601). |
--active | No | Mark the database as active. |
--clear | No | Clear the database comment instead of setting it. |
# odoocli instance database comment setodoocli instance database create
Create an Odoo instance database.
| Option | Required | Description |
|---|---|---|
-n, --name | No | Odoo database name. |
--no-init | No | Do not initialize the Odoo database. |
-c, --country | Yes | Two-letter ISO country code used to initialize the Odoo database (e.g. BE, NL, FR). |
--location | No | Odoo instance database filestore location. |
--activate | No | Activate the Odoo instance database. |
-p, --preset | Yes | Odoo instance environment preset (dev, test, staging, dr, prod). |
# odoocli instance database createodoocli instance database dump
Dump an Odoo instance database to a file using the custom format.
| Option | Required | Description |
|---|---|---|
--backup-destination | Yes | Backup destination. |
-o, --overwrite | No | Overwrite the destination if it already exists. |
# odoocli instance database dumpodoocli instance database init
Initialize an Odoo instance database.
| Option | Required | Description |
|---|---|---|
-c, --country | Yes | Two-letter ISO country code used to initialize the Odoo database (e.g. BE, NL, FR). |
--activate | No | Activate the Odoo instance database. |
# odoocli instance database initodoocli instance database list
List the Odoo instance database(s).
# odoocli instance database listodoocli instance database load
Load an Odoo instance database from a custom dump format.
| Option | Required | Description |
|---|---|---|
-a, --archive | Yes | Archive to restore the database from (e.g. /backups/odoo-2025-10-28.zip). |
-p, --preset | Yes | Odoo instance environment preset (dev, test, staging, dr, prod). |
# odoocli instance database loadodoocli instance database migrate-filestore
Migrate an Odoo instance database filestore.
| Option | Required | Description |
|---|---|---|
-y, --yes | No | Assume 'yes' to all prompts and run non-interactively. |
--location | Yes | Odoo instance database filestore location. |
-b, --batch-size | No | Number of records processed in each migration batch. |
# odoocli instance database migrate-filestoreodoocli instance database modules
Manage the Odoo instance database modules.
| Argument | Required | Description |
|---|---|---|
<ModuleAction> | Yes | Odoo instance database module action. |
| Option | Required | Description |
|---|---|---|
-m, --modules | No | Odoo instance database modules (comma- or semicolon-separated). |
# odoocli instance database modulesodoocli instance database options
Process the Odoo instance database restore options.
| Option | Required | Description |
|---|---|---|
-p, --preset | Yes | Odoo instance environment preset (dev, test, staging, dr, prod). |
# odoocli instance database optionsodoocli instance database postgres
Launch the Odoo instance database PostgreSQL shell.
This command has no remote form. Run it on the server itself.
# odoocli instance database postgresodoocli instance database recaptcha
Enable or disable the Odoo instance database reCAPTCHA.
| Option | Required | Description |
|---|---|---|
--enable | Yes | Enable or disable. |
# odoocli instance database recaptchaodoocli instance database reindex
Rebuild all indexes on a specific Odoo instance database (concurrently).
| Option | Required | Description |
|---|---|---|
--jobs | No | Number of parallel maintenance jobs (0 = auto). |
# odoocli instance database reindexodoocli instance database remove
Remove an Odoo instance database.
# odoocli instance database removeodoocli instance database rename
Rename an Odoo instance database.
| Option | Required | Description |
|---|---|---|
-n, --name | No | Odoo database name. |
# odoocli instance database renameodoocli instance database reset-permissions
Repair the Odoo instance database permissions.
# odoocli instance database reset-permissionsodoocli instance database restore
Restore an Odoo instance database.
| Option | Required | Description |
|---|---|---|
-a, --archive | Yes | Archive to restore the database from (e.g. /backups/odoo-2025-10-28.zip). |
-n, --name | No | Odoo database name, or leave empty to use the name from the archive. |
-p, --preset | Yes | Odoo instance environment preset (dev, test, staging, dr, prod). |
-o, --overwrite | No | Overwrite the destination if it already exists. |
--restore-filestore | No | Restore the Odoo filestore from the archive. |
--keep-guid | No | Keep the Odoo database UUID from the backup instead of regenerating it. |
# odoocli instance database restoreodoocli instance database shell
Launch the Odoo instance database shell.
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
--limit-request | No | Number of requests a worker will process before being recycled and restarted. |
--limit-memory-soft | No | Maximum allowed virtual memory per worker in bytes. If the limit is exceeded, the worker is killed and recycled at the end of the current request. |
--limit-memory-hard | No | Hard limit on virtual memory in bytes. Any worker exceeding the limit will be immediately killed without waiting for the end of the current request processing. |
--limit-time-cpu | No | Number of CPU seconds the worker is allowed to use for each request. |
--limit-time-real | No | Number of seconds the worker can process a request. |
# odoocli instance database shellodoocli instance database size
Show the size of an Odoo instance database (PostgreSQL + filestore).
# odoocli instance database sizeodoocli instance database sysadmin create
Create an Odoo instance database sysadmin.
# odoocli instance database sysadmin createodoocli instance database sysadmin remove
Remove an Odoo instance database sysadmin.
# odoocli instance database sysadmin removeodoocli instance database user list
List Odoo instance database users.
# odoocli instance database user listodoocli instance database user password-reset
Reset an Odoo instance database user password.
# odoocli instance database user password-resetodoocli instance database user totp-disable
Disable an Odoo instance database user's TOTP (multi-factor authentication).
# odoocli instance database user totp-disableodoocli instance database user totp-reset
Reset an Odoo instance database user's TOTP (multi-factor authentication).
# odoocli instance database user totp-resetodoocli instance database user totp-token
Generate the current TOTP token for an Odoo instance database user.
# odoocli instance database user totp-tokenodoocli instance database vacuum
Run VACUUM + ANALYZE on a specific Odoo instance database.
| Option | Required | Description |
|---|---|---|
--jobs | No | Number of parallel maintenance jobs (0 = auto). |
--full | No | Run VACUUM FULL (rewrites tables; takes exclusive locks - use with care). |
# odoocli instance database vacuumodoocli instance image activate
Activate an Odoo instance image.
| Option | Required | Description |
|---|---|---|
-t, --image-tag | No | Odoo Docker image tag to use. |
# odoocli instance image activateodoocli instance image build
Build an Odoo instance image.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
-t, --image-tag | No | Odoo Docker image tag to use. |
# odoocli instance image buildodoocli instance image list
List Odoo instance images.
| Option | Required | Description |
|---|---|---|
-l, --limit | No | Maximum number of results to return. |
# odoocli instance image listodoocli instance image remove
Remove an Odoo instance image.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
# odoocli instance image removeodoocli instance import
Import the Odoo instance from a backup archive.
| Option | Required | Description |
|---|---|---|
-a, --archive | No | Odoo instance backup archive. |
-p, --preset | Yes | Odoo instance environment preset (dev, test, staging, dr, prod). |
--fqdn | No | One or more Fully Qualified Domain Names (FQDNs) for the Odoo instance. The first FQDN serves as the primary or master domain for the Odoo instance. |
-g, --github-token | No | GitHub access token. |
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
# odoocli instance importodoocli instance info
Show the Odoo instance information (URLs, paths, credentials).
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
--show-secrets | No | Reveal secrets (passwords, tokens) instead of masking them. |
# odoocli instance infoodoocli instance install
Install an Odoo instance.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
-t, --image-tag | No | Odoo Docker image tag to use. |
# odoocli instance installodoocli instance list
List configured Odoo instance(s).
# odoocli instance listodoocli instance modules install
Install selected Odoo instance modules.
| Option | Required | Description |
|---|---|---|
-m, --modules | No | Odoo instance modules (comma- or semicolon-separated). |
--latest | No | Update to the latest module versions. |
# odoocli instance modules installodoocli instance modules select
Select available Odoo instance modules for installation.
# odoocli instance modules selectodoocli instance nginx config rebuild
Rebuild an Odoo instance Nginx configuration and reload Nginx.
# odoocli instance nginx config rebuildodoocli instance nginx install
Install the Odoo instance Nginx configuration.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
# odoocli instance nginx installodoocli instance odoo install
Install or update Odoo Community and Enterprise addon modules for the instance.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
--latest | No | Update to the latest module versions. |
# odoocli instance odoo installodoocli instance remove
Remove an Odoo instance.
| Option | Required | Description |
|---|---|---|
--delete-config | No | Also delete the instance configuration file and its backups. By default they are preserved. |
# odoocli instance removeodoocli instance repair filesystem
Repair Odoo instance filesystem permissions.
# odoocli instance repair filesystemodoocli instance restore
Restore the Odoo instance from a backup archive.
| Option | Required | Description |
|---|---|---|
-f, --force | No | Force the command to execute, ignoring errors or conflicts. |
-a, --archive | No | Odoo instance backup archive. |
# odoocli instance restoreodoocli instance restore-config set
Set the Odoo instance restore mode and storage providers.
| Option | Required | Description |
|---|---|---|
--mode | No | Mode: Disabled, Manual or Automatic. Omit to keep the current mode. |
--provider | No | Provider type to add or update: Lfs, Ftp, S3 or AzureBlob. |
--name | No | Name of the provider entry to add or update (required with --provider). |
--enable | No | Enable the provider entry. |
--disable | No | Disable the provider entry. |
--remote-path | No | Remote path (Lfs, Ftp). |
--hostname | No | FTP host name. |
--port | No | FTP port. |
--username | No | FTP user name. |
--password | No | FTP password. Omit to be prompted (or to keep the stored one with --no-prompt); pass an empty string to clear it. |
--encryption | No | FTP encryption mode: None, Implicit, Explicit or Auto. |
--bucket | No | S3 bucket name. |
--access-key | No | S3 access key id, or the Azure storage key/SAS token (the Azure value is a secret). |
--secret-key | No | S3 secret key. Omit to be prompted (or to keep the stored one with --no-prompt); pass an empty string to clear it. |
--region | No | S3 region. |
--service-url | No | S3 endpoint for S3-compatible storage (e.g. MinIO), or the Azure service URI. |
--storage-account | No | Azure storage account name. |
--container | No | Azure blob container. |
--prefix | No | Object prefix (S3, AzureBlob). |
--no-prompt | No | Never prompt for a secret; leave the stored one unchanged. |
# odoocli instance restore-config setodoocli instance restore-config show
Show the Odoo instance restore configuration.
# odoocli instance restore-config showodoocli instance size
Show the aggregate size of an Odoo instance (databases + directory tree).
# odoocli instance sizeUsers
Break-glass repair of the management console accounts, from the host.
odoocli user list
List the management-UI user accounts.
# odoocli user listodoocli user password-reset
Reset an account password to a generated one (break-glass).
| Argument | Required | Description |
|---|---|---|
<username> | Yes | The login name of the account. |
# odoocli user password-resetodoocli user totp-disable
Disable MFA for an account (break-glass).
| Argument | Required | Description |
|---|---|---|
<username> | Yes | The login name of the account. |
# odoocli user totp-disableodoocli user unlock
Clear the lockout and re-enable an account (break-glass).
| Argument | Required | Description |
|---|---|---|
<username> | Yes | The login name of the account. |
# odoocli user unlockLicence
The licence agreement.
odoocli license agreement- Manage the license agreement.
odoocli license agreement show
Show license agreement.
This command has no remote form. Run it on the server itself.
# odoocli license agreement showSystem
The master database provider and host housekeeping.
odoocli system database- Manage the application ("master") database.
odoocli system assemblies
list loaded assemblies and their versions.
This command has no remote form. Run it on the server itself.
# odoocli system assembliesodoocli system commands
List all available commands and their descriptions.
This command has no remote form. Run it on the server itself.
| Argument | Required | Description |
|---|---|---|
<filter> | No | Optional filter: only commands whose full name contains this value are listed. |
# odoocli system commandsodoocli system database migrate
Migrate the application database between providers (drops and re-imports the destination).
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
--from | No | Source database provider. Defaults to the active provider. |
--to | No | Destination database provider. Defaults to PostgreSQL from a SQLite source and to SQLite from a PostgreSQL one; a SqlServer source needs it explicitly. |
-y, --yes | No | Assume 'yes' to all prompts and run non-interactively. |
# odoocli system database migrateodoocli system database provider
Show or set the database provider for the application database (SQLite, PostgreSQL or SqlServer).
This command has no remote form. Run it on the server itself.
| Argument | Required | Description |
|---|---|---|
<provider> | No | The database provider to switch to (SQLite, PostgreSQL or SqlServer). Omit to show the current value. |
# odoocli system database providerodoocli system database reset
Reset (clean) the application database: drop and recreate it with an empty, current schema.
This command has no remote form. Run it on the server itself.
| Option | Required | Description |
|---|---|---|
--provider | No | Database provider to reset (SQLite, PostgreSQL or SqlServer). Defaults to the active provider. |
-y, --yes | No | Assume 'yes' to all prompts and run non-interactively. |
# odoocli system database resetodoocli system maintenance
Vacuum the systemd journal, remove stale temporary files and expire old log files.
| Option | Required | Description |
|---|---|---|
--journal-days | No | Systemd journal retention window in days (0 = skip). |
--temp-age-days | No | Maximum age in days of temporary files to remove from /tmp and /var/tmp (0 = skip). |
--log-age-days | No | Maximum age in days of timestamped Odoo log files to remove (0 = skip). |
# odoocli system maintenanceRelease notes
What changed in this build.
odoocli release-notes
Show the release notes for this build.
| Option | Required | Description |
|---|---|---|
--all | No | Show every version in the changelog instead of only the running one. |
--release | No | Show the notes for one specific version, for example '0.9.1'. |
# odoocli release-notes