CLI Reference
Overview

CLI Overview

CLDPM provides a powerful CLI for managing Claude Code mono repos. For programmatic usage, see the Python SDK or TypeScript SDK.

Installation

pip install cldpm

Commands

CommandDescription
cldpm initInitialize a new mono repo
cldpm createCreate projects or shared components
cldpm addAdd a shared component to a project
cldpm removeRemove a shared component from a project
cldpm linkLink dependencies between shared components
cldpm unlinkRemove dependencies between shared components
cldpm getGet project info, download with dependencies (local/remote)
cldpm syncRegenerate symlinks for shared components
cldpm infoShow CLDPM information banner

Global Options

cldpm --help     # Show help
cldpm --version  # Show version

Environment Variables

VariableDescription
GITHUB_TOKENGitHub personal access token for private repos
GH_TOKENAlternative to GITHUB_TOKEN (GitHub CLI compatible)

Exit Codes

CodeDescription
0Success
1Error (invalid arguments, missing files, etc.)

Examples

Create a complete mono repo

# Initialize
cldpm init my-monorepo
cd my-monorepo
 
# Create projects
cldpm create project web-app -d "Web application"
cldpm create project api-server -d "API server"
 
# Create shared skill
mkdir -p shared/skills/logging
echo "# Logging Skill" > shared/skills/logging/SKILL.md
 
# Add to projects
cldpm add skill:logging --to web-app
cldpm add skill:logging --to api-server
 
# Verify
cldpm get web-app
cldpm get api-server

Work with remote repositories

# View remote project
cldpm get my-project -r owner/repo
 
# Download remote project
cldpm get my-project -r owner/repo --download
 
# Download to specific directory
cldpm get my-project -r owner/repo -d -o ./local-copy

Python vs TypeScript CLI

Both the Python and TypeScript SDKs provide the same CLI commands with identical behavior. Choose based on your project's ecosystem:

PythonTypeScript
Installpip install cldpmnpm install -g cldpm
Run without installpipx run cldpmnpx cldpm
Best forPython projects, pipenv/poetryNode.js projects, monorepos
Package managerpip, pipx, poetrynpm, pnpm, yarn
💡

All CLI commands work identically between Python and TypeScript versions. The choice depends on your project's runtime environment and tooling preferences.