Skip to content

Usage

clo [REQUISITES] [MODIFIERS] [PERIPHERALS] ACTION ...

Requisites

Required—either by flag or environment variable (if supported)—to connect, authenticate, and perform operations.

‑‑model NAME

‑m NAME

The Odoo model to perform an action on. Run explain models [-v] for available options.

Default: "res.users"

‑‑inst URL

‑‑instance URL

The address of the Odoo instance. See Requisites below for details.

‑‑db NAME

‑‑database NAME

The application database to perform operations on. See Requisites below for details.

‑‑user NAME

The user to perform operations as. See Requisites below for details.

Modifiers

Customizations that apply to any ACTION.

‑‑env FILE

Path to a .clorc file. See Requisites below for details.

Default: ".clorc"

‑‑out FILE

Where to stream the output.

‑‑log LEVEL

The level (OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE) of logs to produce.

Choices:

  • "OFF"
  • "FATAL"
  • "ERROR"
  • "WARN"
  • "INFO"
  • "DEBUG"
  • "TRACE"

Default: "WARN"

‑‑dry‑run

Perform a "practice" run of the action; implies --log=DEBUG.

Default: false

Peripherals

Supportive, non-operational functions.

‑‑demo [FILE]

Generate a demo instance from Odoo Cloud and save the connection properties to FILE.

Default: ".clorc"

‑‑help

‑h

Show this help message and exit.

‑‑version

Show version of this program.

Actions

The Odoo instance is queried, or operated on, using ACTIONS. Each ACTION has it's own set of arguements; run clo ACTION --help for specific details.