CLI-Anything cli-anything-kdenlive
git clone https://github.com/HKUDS/CLI-Anything
T=$(mktemp -d) && git clone --depth=1 https://github.com/HKUDS/CLI-Anything "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/cli-anything-kdenlive" ~/.claude/skills/hkuds-cli-anything-cli-anything-kdenlive && rm -rf "$T"
skills/cli-anything-kdenlive/SKILL.mdcli-anything-kdenlive
A stateful command-line interface for video editing, following the same patterns as the Blender CLI harness. Uses a JSON project format with MLT XML generation for Kdenlive/melt.
Installation
This CLI is installed as part of the cli-anything-kdenlive package:
pip install cli-anything-kdenlive
Prerequisites:
- Python 3.10+
- kdenlive must be installed on your system
Usage
Basic Commands
# Show help cli-anything-kdenlive --help # Start interactive REPL mode cli-anything-kdenlive # Create a new project cli-anything-kdenlive project new -o project.json # Run with JSON output (for agent consumption) cli-anything-kdenlive --json project info -p project.json
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-kdenlive # Enter commands interactively with tab-completion and history
Command Groups
Project
Project management commands.
| Command | Description |
|---|---|
| Create a new project |
| Open an existing project |
| Save the current project |
| Show project information |
| List available video profiles |
| Print raw project JSON |
Bin Group
Media bin management commands.
| Command | Description |
|---|---|
| Import a clip into the media bin |
| Remove a clip from the bin |
| List all clips in the bin |
| Get detailed clip info |
Timeline
Timeline management commands.
| Command | Description |
|---|---|
| Add a track to the timeline |
| Remove a track |
| Add a clip to a track |
| Remove a clip from a track |
| Trim a clip's in/out points |
| Split a clip at a time offset |
| Move a clip to a new position |
| List all tracks |
Filter Group
Filter/effect management commands.
| Command | Description |
|---|---|
| Add a filter to a clip |
| Remove a filter from a clip |
| Set a filter parameter |
| List filters on a clip |
| List all available filters |
Transition
Transition management commands.
| Command | Description |
|---|---|
| Add a transition between tracks |
| Remove a transition |
| Set a transition parameter |
| List all transitions |
Guide
Guide/marker management commands.
| Command | Description |
|---|---|
| Add a guide at a position (seconds) |
| Remove a guide |
| List all guides |
Export
Export and render commands.
| Command | Description |
|---|---|
| Generate Kdenlive/MLT XML |
| List available render presets |
Session
Session management commands.
| Command | Description |
|---|---|
| Show session status |
| Undo the last operation |
| Redo the last undone operation |
| Show undo history |
Examples
Create a New Project
Create a new kdenlive project file.
cli-anything-kdenlive project new -o myproject.json # Or with JSON output for programmatic use cli-anything-kdenlive --json project new -o myproject.json
Interactive REPL Session
Start an interactive session with undo/redo support.
cli-anything-kdenlive # Enter commands interactively # Use 'help' to see available commands # Use 'undo' and 'redo' for history navigation
Export Project
Export the project to a final output format.
cli-anything-kdenlive --project myproject.json export render output.pdf --overwrite
State Management
The CLI maintains session state with:
- Undo/Redo: Up to 50 levels of history
- Project persistence: Save/load project state as JSON
- Session tracking: Track modifications and changes
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
flag): Structured JSON for agent consumption--json
# Human output cli-anything-kdenlive project info -p project.json # JSON output for agents cli-anything-kdenlive --json project info -p project.json
For AI Agents
When using this CLI programmatically:
- Always use
flag for parseable output--json - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Use absolute paths for all file operations
- Verify outputs exist after export operations
More Information
- Full documentation: See README.md in the package
- Test coverage: See TEST.md in the package
- Methodology: See HARNESS.md in the cli-anything-plugin
Version
1.0.0