Skip to main content

CLI tool to simplify the management of Odoo

Project description

pipeline status

ociedoo

ociedoo is a cli collection of tools to simplify the management of odoo on a server.

See help for more info.

Installation

ociedoo needs python version >= 3.5. So ensure pip points to a correct version of python. To do this run:

pip --version

It should return something like:

pip xx.y from /path/to/pip (python 3.5)

If pip doesn't run python >=3.5, try running pip3 which is on certain distribution the pip for python >=3.

Dependencies

ociedoo uses external programs via the shell. Be sure they are installed and accessible for the current user.

  • psql
  • createdb
  • dropdb
  • systemctl

Install for a specific user

Installation with pipx (recommended python >= 3.6)

pipx install ociedoo

Installation with pipsi (recommended python < 3.5)

pipsi install ociedoo

Install with pip

pip install --user ociedoo

Install system wide (for all users)

Install with pipx (recommended python >= 3.6)

First install pipx if not already installed:

sudo pip install pipx

Then install ociedoo:

sudo PIPX_HOME=/usr/local PIPX_BIN_DIR=/usr/local/bin pipx install ociedoo

Install with pipsi (recommended python < 3.6)

First install pipsi, if not already installed:

sudo curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | sudo python3 - --bin-dir /usr/local/bin --home /usr/local/venvs --no-modify-path

Then install ociedoo:

sudo pipsi --bin-dir /usr/local/bin --home /usr/local/venvs install ociedoo

Install with pip

sudo pip install ociedoo

Enable bash completion

Bash completion for a specific user

To enable bash completion add the following in your .bashrc:

# ociedoo
# =======
if command -v ociedoo >/dev/null; then
    eval "$(_OCIEDOO_COMPLETE=source ociedoo)"
fi

Or if you use zsh, add this to your .zshrc:

# ociedoo
# =======
if command -v ociedoo >/dev/null; then
    eval "$(_OCIEDOO_COMPLETE=source_zsh ociedoo)"
fi

Bash completion system wide (for all users)

To enable bash completion add the following in /etc/bash.bashrc:

# ociedoo
# =======
if command -v ociedoo >/dev/null; then
    eval "$(_OCIEDOO_COMPLETE=source ociedoo)"
fi

Or if you use zsh, add this to your /etc/zsh/zshrc:

# ociedoo
# =======
if command -v ociedoo >/dev/null; then
    eval "$(_OCIEDOO_COMPLETE=source_zsh ociedoo)"
fi

Upgrade

Upgrade for a specific user

Upgrade with pipx (recommended python >= 3.6)

pipx upgrade ociedoo

Upgrade with pipsi (recommended python < 3.5)

pipsi upgrade ociedoo

Upgrade with pip

pip install --user --upgrade ociedoo

Upgrade system wide (for all users)

Upgrade with pipx (recommended python >= 3.6)

sudo PIPX_HOME=/usr/local PIPX_BIN_DIR=/usr/local/bin pipx upgrade ociedoo

Upgrade with pipsi (recommended python < 3.5)

sudo pipsi --bin-dir /usr/local/bin --home /usr/local/venvs upgrade ociedoo

Upgrade with pip

sudo pip install --upgrade ociedoo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ociedoo-0.7.0.tar.gz (27.0 kB view hashes)

Uploaded Source

Built Distribution

ociedoo-0.7.0-py3-none-any.whl (28.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page