skip to content
ccdocs
Commandscc project

cc project cloc

Count lines of code across modules in a project using Odoo's built-in cloc tool.

Usage

cc project cloc [name] [flags]

Arguments

ArgumentDescription
nameProject to scan. Omit to scan the active project.

Flags

FlagDescription
-a, --activeCount only the environment's active modules (skip the picker)

Without -a, cc opens an interactive checkbox picker of every module in the project. Use the fuzzy filter to narrow it down, Space to toggle, Enter to confirm. Selecting Select all scans every module.

Examples

cc project cloc           # pick modules in the active project
cc project cloc acme      # pick modules in project 'acme'
cc project cloc -a        # scan the active environment's active modules
CLOC Report (2 modules)
───────────────────────────────────────────────────────────────
Module                                               Code Lines
───────────────────────────────────────────────────────────────
acme_approvals                                              269
acme_base                                                   142
───────────────────────────────────────────────────────────────
TOTAL                                                       411
───────────────────────────────────────────────────────────────

On this page