Skip to content

Database (of db)

Database power-tools — create, drop, clone, and inspect databases.

of db create [env] [db]

Create a new database.

Flag Default Description
--json false JSON output

of db rm [env] [db]

Drop a database.

Flag Default Description
--yes, -y false Skip confirmation
--json false JSON output

of db shell [env] [db]

Open an interactive psql session inside the environment's PostgreSQL container.

Argument Default Description
env main Environment name
db odoo Database to connect to

of db cpn [env] [src] [dst]

Copy & Neutralize — clone a database, scrub sensitive data, disable crons.

Argument Default Description
env main Environment name
src odoo Source database
dst postgres Destination database
Flag Default Description
--json false JSON output

of db ls [env]

List databases in an environment (excludes system DBs like postgres and templates).

Flag Default Description
--json false JSON output