odoo_project
Manage Odoo project databases: list active projects, switch configurations, scaffold new ones, import backups, reset to fresh state, or stream remote data via SSH.
Instructions
Manage projects and their databases. action: list (projects + active one) | switch (activate odoo-.conf and restart; also changes the running Odoo 18/19) | new (scaffold a new project) | import (load a backup into the active DB) | fresh (reset the active DB to a fresh one initialized with base, + 'modules') | stream (stream a remote nellika.sh/tcff Odoo db+filestore over SSH into the active project). DESTRUCTIVE: import/fresh/stream drop the active DB; new creates/recreates the named DB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New project name (new) — used for odoo-<name>.conf, the database, and the ./<name> addons symlink | |
| repo | No | Path to symlink ./<name> at (new; default ~/git/<name>) | |
| action | Yes | What to do | |
| dbOnly | No | Restore DB only, skip filestore (import/stream) | |
| modules | No | Comma-separated modules to install (new) or initialize (fresh), e.g. 'sale,account,stock' | |
| noStart | No | Do not start Odoo afterwards (new/import/fresh/stream) | |
| project | No | Project name (switch) | |
| httpPort | No | http_port for a new project (new; default 8069) | |
| remoteDb | No | Override the auto-discovered remote db name (stream) | |
| backupFile | No | Backup file path (import): .zip / .sql / .sql.gz / .dump | |
| enterprise | No | Include enterprise addons (new) | |
| neutralize | No | Neutralize the DB after import/stream (disable mail/crons/payments) | |
| remoteHost | No | Remote SSH host to stream from (stream), e.g. 'nellika_production_odoo' | |
| odooVersion | No | Odoo version for a new project (new) | 18 |
| filestoreOnly | No | Stream the filestore only, skip the database (stream) | |
| remoteDataDir | No | Override the auto-discovered remote data_dir (stream) |