premiere-cli
Drive Adobe Premiere Pro from the command line.
premiere-cli pairs a zero-dependency Python CLI (premiere-cli,
premiere-log) with a bundled CEP panel ("Premiere Bridge") that runs a
local HTTP server (port 47823) inside Premiere Pro and exposes its
ExtendScript / QE scripting APIs as ~230 JSON-in/JSON-out commands —
reading project/sequence/clip state, editing the timeline, applying
effects, managing markers and bins, exporting media and frames, and more.
The Claude Code skill for driving this CLI lives in the separate premiere-ai-skills plugin, alongside the AI-assisted workflow skills — install that plugin to give Claude the skill.
Install
# 1. The CLI (isolated, no dependencies)
pipx install premiere-cli
# or: uv tool install premiere-cli
# 2. The CEP panel (copies it into Adobe's extensions dir + enables PlayerDebugMode)
premiere-cli install-panel
# 3. Restart Premiere Pro, open Window > Extensions > Premiere Bridge
# 4. Verify the whole chain
premiere-cli doctor
premiere-cli init-project <name> --base-dir <path> scaffolds a fresh,
empty .prproj from a bundled template — no Premiere Pro session needed,
so it works before step 3.
Supported: macOS and Windows (CEP does not exist on Linux). The panel targets Premiere Pro 2020+ (CEP 10-12); the API behavior notes in docs/BUILD_FINDINGS.md were live-calibrated on Premiere Pro 26.3.0 (macOS) — Premiere's undocumented QE APIs vary by build, so re-verify build-sensitive commands on other versions.
macOS desktop automation (optional)
Generic UI-automation primitives for driving Premiere's native UI directly
(Accessibility API + synthetic key/mouse events) — for actions ExtendScript
can't do on this build: desktop-take-screenshot, desktop-press-key,
desktop-enter-text, desktop-enter-text-with-validate,
desktop-move-mouse, desktop-click-mouse — plus a persistent on-screen
notification (desktop-notify / desktop-dismiss-notifications)
independent of any one command's own process. All confirm Premiere is
frontmost before sending input. macOS only; needs a separate extra so the
base CLI stays zero-dependency:
pip install "premiere-cli[macos-desktop]"
The terminal (or whatever process runs the CLI) needs the Accessibility
permission: System Settings > Privacy & Security > Accessibility. Grant it
to the actual process running premiere-cli (Terminal, iTerm, etc.), not
Premiere Pro.
This command posts real keyboard input to whatever app is frontmost — keep Premiere Pro active and hands off the keyboard/mouse while it runs, or the input lands in the wrong app. It refuses to run if it can't confirm Premiere is frontmost, or if more than one clip is selected (driving the LUT picker with multiple clips selected applies the change to all of them). See docs/DESKTOP_DRIVER_NOTES.md for the full set of findings behind how this works.
Use from the command line
premiere-cli get-premiere-state
premiere-cli get-active-sequence
premiere-cli add-marker --seconds 12.5 --name "Chapter 1"
premiere-cli export-frame --output /tmp/frame.png --timecode 00:12:05
premiere-log "rendering pass 2/3 started" # shows up in the panel's log view
Every command prints a JSON object: {"ok": true, "result": ...} or
{"ok": false, "error": "..."} (exit code 1). Full command reference:
docs/COMMANDS.md.
Use from Claude Code
/plugin marketplace add stefanwebb/premiere-ai-skills
/plugin install premiere-ai-skills@premiere-ai-skills
This gives Claude the premiere-cli skill — a complete, behavior-annotated
catalog of the panel's commands (including which ones are verified working,
build-sensitive, or destructive). You still need steps 1-4 above so the
premiere-cli binary and panel exist on the machine.
How it works
premiere-cli ──HTTP──> CEP panel (Node server, port 47823)
│ csInterface.evalScript
▼
ppb_dispatch() ──$.evalFile──> host/commands/<name>.jsx
│
▼
Premiere DOM (app.project...) + QE DOM (qe.project...)
- Each command is one ExtendScript file under
src/premiere_cli/panel/host/commands/, lazily loaded on first use. - Mutating commands verify their own effect with read-backs (clip counts, property values, undo-stack index) — never by trusting an API's return value, since several Premiere APIs "succeed" without doing anything.
docs/carries the hard-won API findings: which Premiere scripting APIs are broken, which lie, and the calibrated signatures that actually work (BUILD_FINDINGS.md, PREMIERE_API_NOTES.md, QE_DOM_NOTES.md).
Scope
This package deliberately contains only the machinery to drive Premiere Pro's APIs. AI-assisted workflows built on top of it (transcription with word-level timestamps, silence removal, etc.) live separately and depend on this package.
Development
git clone https://github.com/stefanwebb/premiere-cli
cd premiere-cli
pip install -e ".[dev]"
premiere-cli install-panel --symlink # panel edits apply on next panel reload
pytest
Adding a panel command means three edits: the new
host/commands/<name>.jsx, its registration in host/index.jsx
(PPB_COMMANDS), and the allowlist in js/main.js (ALLOWED_COMMANDS) —
plus a CLI subparser in src/premiere_cli/cli.py and a row in
docs/COMMANDS.md. Bump the version in pyproject.toml,
premiere_cli/__init__.py, and PANEL_VERSION in js/main.js
together (premiere-cli doctor flags mismatches).
License
Metadata
Release files for premiere-cli 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| premiere_cli-0.4.1.tar.gz | 300.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| premiere_cli-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 789.1 kB
Release files / premiere_cli-0.4.1.tar.gz
| Download URL | premiere_cli-0.4.1.tar.gz |
|---|---|
| Size | 300.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84723c30856f36b5afd8aead2366afe41dad929c010c7b13d377d22878fb0b34
|
|
BLAKE2b-256 checksum How to use checksums |
d0c49740df4ba2d2919ada85dedd0557504661b6baf37f2db6ab53f25fc4083a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency logRelease files / premiere_cli-0.4.1-py3-none-any.whl
| Download URL | premiere_cli-0.4.1-py3-none-any.whl |
|---|---|
| Size | 489.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e078ec3f6cd86e124baf630379da7ac0047730a9da80c8853802d29859a95c02
|
|
BLAKE2b-256 checksum How to use checksums |
1c8dfb4abec3789ac112cf3c607f41e063d4bd87766d0e6018abc9a9bae3ef63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.
Transparency log