Skip to content
Sébastien Andreatta edited this page Apr 27, 2026 · 2 revisions

odev clone

clone demo

Clone a GitHub repository locally, under the path managed by odev. A database name can be passed insteadof a repository address to find and clone the repository linked to that database.

Usage

odev clone [-v {CRITICAL,ERROR,WARNING,INFO,DEBUG,DEBUG_SQL,NOTSET}] [-h] [-f] [-p {saas,paas}] [-b BRANCH] [database] [repository]

Aliases

No aliases

Arguments

Positional Arguments:

Argument Description
database The database to target.
repository GitHub URL or name of a repository.

Optional Arguments:

Argument Description
-v, --log-level Set logging verbosity for the execution of odev.
-h, --help Show help for the current command.
-f, --force Bypass confirmation prompts and assume a default value to all, use with caution!
-p, --platform Force searching for the database on the specified platform, useful when different databases have the same name on different hosting (usually one local database being a copy of a remote one). One of saas or paas.
-b, --branch Branch to checkout after cloning the repository.

Examples

Show help

odev clone --help

Clone an Odoo repository

odev clone odoo-ps/custom-util

Clone a specific branch

odev clone -b master odoo-ps/custom-util

Clone this wiki locally