Odoo Module Installation/Update using CLI: Install or update Odoo modules via CLI for faster deployment and streamlined module management without accessing the UI.
What is CLI (Command Line Interface)?
The Command Line Interface (CLI) is a powerful way to manage and interact with your Odoo instance.
It allows administrators and developers to perform critical tasks without relying on the web interface, making it ideal for automation, debugging, and batch operations.
Odoo provides a convenient way to manage modules using its command line interface (CLI).
Whether you are installing a new module or updating an existing module, the CLI method is effective, especially for developers and administrators managing multiple environments.
1. Installing Odoo installer/update module using CLI
Add the module to your odoo addons path and run the command below
./odoo-bin -c /etc/odoo-server.conf -d dbname -r username -w password -i module_name --stop-after-init --logfile=/

Here,
./odoo-bin: This command part specifies the path to the Odoo binary executable (odoo-bin). The ./ at the beginning indicates that the executable is located in the current directory.
-c /etc/odoo.conf: The —c flag specifies the configuration file for Odoo, which is located in /etc/odoo.conf.
database name: the name of your database in which you want to install the module
username, password: identifiers of your database
module_name: module name
2. Upgrading the module using the command line interface (CLI)
I) Command to update all modules of all databases
./odoo-bin -c /etc/odoo-server.conf -u all
ii) Command to upgrade all modules of a particular database
./odoo-bin -c /etc/odoo-server.conf -d dbname -u all
iii) Command to upgrade a particular module from a particular database
./odoo-bin -c /etc/odoo-server.conf -d dbname -u module_name

Important note: Run all commands from your odoo-bin path and provide the path to your odoo server configuration file after -c.
Hope this helps in understanding module installation and update using CLI.
Comments are closed, but trackbacks and pingbacks are open.