A command-line tool to install Odoo with various configuration options.
Before you begin, ensure that you have the following:
- An Ubuntu 22.04 or 24.04 server.
- Node.js version 18.18.0 or higher, along with npm.
If Node.js and npm are not installed on your server, you can install them using the following command:
sudo apt install nodejs npm -y
You can easily install Odoo using the following command:
npx install-odoo
When you run npx install-odoo
, you will be prompted to provide various configuration options. Here’s what you can expect:
-
Select Odoo Version
Choose the version of Odoo you wish to install. Options include:- Odoo 18.0
- Odoo 17.0
-
Install Odoo Enterprise
Do you want to install the Odoo Enterprise version?- Yes: You will be prompted to enter your GitHub access token.
- No: Proceed to the next option.
-
GitHub Access Token
If you choose to install the Enterprise version, you will need to provide your GitHub access token. This token must have access to the Odoo Enterprise repository. -
Odoo Home Path
Specify the path where Odoo will be installed (default is/odoo
). Ensure that this path does not already exist. -
System User for Odoo Enter the name of the system user that will be used to run Odoo (default is
odoo
). -
Generate Strong Odoo Super Admin Password
Would you like to generate a random strong password for the Odoo super admin account?- Yes: A strong password will be generated.
- No: You can provide a password in the next step.
-
Odoo Super Admin Password
Enter your desired password for the Odoo super admin account if you choose toNo
inGenerate Strong Odoo Super Admin Password
. -
Odoo HTTP Port
Set the default HTTP port for Odoo (default is8069
). -
Odoo Gevent Port
Set the default WebSocket port for Odoo (default is8072
). -
Install PostgreSQL
Would you like to install PostgreSQL 16?- Yes: You will be prompted for the PostgreSQL user and password.
- No: Skip to the next option.
-
PostgreSQL Host
Enter the hostname or IP address of the PostgreSQL server (default islocalhost
). -
PostgreSQL Port
Enter the port for the PostgreSQL server (default is5432
). -
PostgreSQL User
If PostgreSQL is being installed, enter the name of the PostgreSQL user (default is the same as the Odoo user). -
PostgreSQL Password
Enter the password for the PostgreSQL user. -
Install WKHTMLTOPDF
Would you like to install WKHTMLTOPDF for PDF rendering?- Yes: WKHTMLTOPDF will be installed.
- No: Proceed to the end of the installation.
-
Install Nginx
Would you like to install Nginx?- Yes: You will be asked to enter a website name.
- No: Proceed to the next option.
-
Website Name
Enter the name of the website to be configured with Nginx. -
Enable SSL
Do you want to enable SSL for your website?- Yes: You will be prompted to enter an admin email for SSL certificates.
- No: Proceed to the next option.
-
Admin Email
Enter the email address that will be used for SSL certificate registration. -
PostgreSQL User
If PostgreSQL is being installed, enter the name of the PostgreSQL user (default is the same as the Odoo user). -
PostgreSQL Password
Enter the password for the PostgreSQL user.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any problems or have suggestions for improvements, please submit an issue on our GitHub repository. Your feedback is valuable to us!
Heliconia Solution Pvt. Ltd.
Odoo Partner and Implementor
Specializes in end-to-end Odoo implementation, development, integration, customization, and support. We ensure seamless onboarding, agile development, and reliable post-implementation support, empowering businesses worldwide to optimize operations and drive growth with tailored ERP solutions across industries.