The Odoo CLI streamlines common development tasks, allowing you to:
- Start the Odoo server quickly.
- Initialize and manage configuration files.
- Switch between Odoo versions with ease.
- Pull the latest code updates.
- Drop and recreate the database as needed.
This tool is designed to make your Odoo development workflow faster and more efficient.
-
Install Dependencies
pip install -r requirements.txt
-
Add an alias to make the CLI accessible from anywhere:
echo 'alias alias-name="bash /home/odoo/odoo/tools/odoo-cli/run.sh"' >> ~/.bashrc source ~/.bashrc
Note: Adjust the alias name and path as needed for your environment or shell.
-
If you use the Fish shell, add a alias to your Fish configuration: Open your fish config file:
nano ~/.config/fish/config.fishAdd the following to
config.fish:function alias-name bash /home/odoo/odoo/tools/odoo-cli/run.sh $argv end
Reload the config: Then reload your Fish configuration:
source ~/.config/fish/config.fish
-
Initialize the configuration file: Run the CLI:
alias-name
Choose option
2. Initialize configuration, then follow the prompts to complete setup.