cli-anything-kdenlive
Original:🇺🇸 English
Translated
Command-line interface for Kdenlive - A stateful command-line interface for video editing, following the same patterns as the Blender CLI ...
5installs
Sourcehkuds/cli-anything
Added on
NPX Install
npx skill4agent add hkuds/cli-anything cli-anything-kdenliveTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →cli-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:
bash
pip install cli-anything-kdenlivePrerequisites:
- Python 3.10+
- kdenlive must be installed on your system
Usage
Basic Commands
bash
# 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.jsonREPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
bash
cli-anything-kdenlive
# Enter commands interactively with tab-completion and historyCommand 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.
bash
cli-anything-kdenlive project new -o myproject.json
# Or with JSON output for programmatic use
cli-anything-kdenlive --json project new -o myproject.jsonInteractive REPL Session
Start an interactive session with undo/redo support.
bash
cli-anything-kdenlive
# Enter commands interactively
# Use 'help' to see available commands
# Use 'undo' and 'redo' for history navigationExport Project
Export the project to a final output format.
bash
cli-anything-kdenlive --project myproject.json export render output.pdf --overwriteState 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
bash
# Human output
cli-anything-kdenlive project info -p project.json
# JSON output for agents
cli-anything-kdenlive --json project info -p project.jsonFor 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