PULP

main Alpha — under active development
GitHub

CLI Reference

The pulp CLI wraps common build, test, validation, and shipping operations.

Source: tools/cli/pulp_cli.cpp

Commands

create

Status: usable

Create a new plugin project from templates. Checks environment, scaffolds source files, configures the project, builds the generated test plus the default platform outputs, and runs tests.

Default behavior is product-first:


pulp create "My Gain"                              # effect plugin (default)
pulp create "My Synth" --type instrument           # instrument plugin
pulp create "My App" --type app                    # standalone audio application
pulp create "My Project" --type bare               # minimal skeleton
pulp create "My FX" --manufacturer "Acme Audio"    # custom manufacturer
pulp create "My FX" --output ~/projects/my-fx      # custom output directory
pulp create "Debug Knob" --in-tree                 # add an example under examples/
pulp create "My FX" --no-build                     # scaffold only, skip build
pulp create "My FX" --no-interactive               # CI/scripting mode (no prompts)

Available types: effect (default), instrument, app, bare. Templates are in tools/templates/<type>/.

Default output location resolution:

  1. --output <dir>
  2. PULP_PROJECTS_DIR
  3. ~/.pulp/config.toml with:

[create]
projects_dir = "~/Code/PulpProjects"
  1. If run inside the Pulp repo: create the project next to the repo root
  2. Otherwise: create the project in ./<name>

Set PULP_HOME to move the default ~/.pulp/ home used for SDK/cache/config storage.

This flow is meant to behave the same from a normal terminal, CI, or agent-driven workflows. The CLI prints which mode it selected and why, while --no-interactive, PULP_PROJECTS_DIR, and PULP_HOME make project creation predictable for automation.

Mode truth:

What it does:

  1. Runs pulp doctor checks (fails fast if environment is broken)
  2. In standalone product mode: if run from inside a Pulp checkout, prepares pinned dependencies from that checkout and caches a local SDK install; otherwise downloads and caches the SDK release
  3. Scaffolds source files from templates (processor, format entries, test, CMakeLists.txt)
  4. In in-tree mode: adds the project to examples/CMakeLists.txt
  5. In standalone product mode: generates pulp.toml with pinned SDK version and local SDK hints when created from a checkout
  6. Configures, builds the generated test target plus the default platform outputs, and runs tests
  7. Leaves the project ready for pulp build, which you use for rebuilds, explicit targets, or optional deliverables after changing configuration

Notes:

Default formats are platform-gated:

On macOS and Windows, AAX is optional. pulp create only scaffolds aax_entry.cpp and includes the AAX target when an AAX SDK is already configured via PULP_AAX_SDK_DIR. Linux and Ubuntu do not support AAX.

build

Status: usable

Configure and build the project. Auto-detects when CMake reconfiguration is needed. Works with both repo-based and standalone projects.


pulp build                    # Build all targets
pulp build --target PulpGain_VST3  # Build specific target
pulp build -j8                # Parallel jobs
pulp build --watch            # Build and watch for changes
pulp build --watch --test     # Build, watch, run tests on change

Extra arguments are passed through to cmake --build.

The --watch flag enters a file-watching loop after the initial build. It polls source files every 500ms and rebuilds on changes. Combine with --test to run tests after each successful rebuild and --validate to run quick dlopen checks.

For standalone projects (detected via pulp.toml), automatically sets CMAKE_PREFIX_PATH to the hinted local SDK when available, otherwise to the cached SDK release. On Windows, pulp build also selects a Visual Studio generator automatically when no active MSVC shell is detected on PATH.

test

Status: usable

Run the test suite via CTest. Builds first if no build directory exists. Works with both repo-based and standalone projects.


pulp test                     # Run all tests
pulp test -R Gain             # Run tests matching "Gain"

Extra arguments are passed through to ctest.

status

Status: usable

Show project information for either SDK mode or source-tree mode.


pulp status

pulp status reports which mode you are in so external projects never silently depend on a random checkout and repo/examples never silently pick up a cached SDK. In SDK mode it also reports the pinned SDK version plus the resolved SDK path and checkout hints when present. On macOS and Windows it also reports whether an optional AAX SDK is detected. On Linux and Ubuntu it reports AAX as unsupported.

validate

Status: usable

Run plugin format validators on all built plugins.


pulp validate              # CLAP + VST3 (pluginval) + AU + optional AAX
pulp validate --all        # Also run vstvalidator and full AAX validation if installed
pulp validate --json       # Print JSON report to stdout
pulp validate --report out.json  # Write JSON report to file

Checks:

Flags:

When a validator tool is not installed, the check is reported as SKIPPED with a clear message. The JSON report conforms to docs/contracts/validation-report-v1.schema.json. On Linux and Ubuntu, AAX validation is never attempted because AAX is unsupported there.

Prints a summary with pass/fail/skip counts.

run

Status: usable

Launch a standalone Pulp application from the build directory.


pulp run                    # find and launch first standalone binary
pulp run PulpGain           # launch a specific target
pulp run MyApp -- --arg1    # pass arguments to the launched binary

Searches the active project's build output:

cache

Status: usable

Manage the Pulp SDK and asset cache at ~/.pulp/ by default.


pulp cache                  # Show help
pulp cache status           # Show cached SDKs and assets with sizes
pulp cache fetch skia       # Download Skia GPU rendering binaries
pulp cache clean            # Remove all cached assets

Subcommands:

Subcommand What it does
status List cached SDK versions and downloaded assets
fetch skia Download platform-specific Skia GPU binaries to ~/.pulp/cache/ by default
clean Remove all files from the asset cache

GPU rendering requires Skia binaries. If a standalone project enables GPU features, run pulp cache fetch skia to download them. Set PULP_HOME to relocate the cache, SDK, and config root.

doctor

Status: usable

Diagnose environment issues. Checks C++20 compiler, CMake version, git-lfs, LFS file state, external SDKs (VST3, AudioUnit), platform-specific dependencies, and the expected project mode.


pulp doctor             # show all checks
pulp doctor --fix       # auto-fix issues where possible
pulp doctor --ci        # non-interactive, exit codes only
pulp doctor --dry-run   # show what --fix would do

Checks are platform-gated — only relevant checks run on each OS:

Mode-specific checks:

For AAX-specific setup details and download guidance, see AAX Setup.

Exit code is 0 if all checks pass, 1 if any fail.

ci-local

Status: experimental

Local-first CI control plane for Pulp. This is the shared operator surface for:


pulp ci-local run
pulp ci-local run --smoke
pulp ci-local check 123
pulp ci-local status
pulp ci-local cleanup
pulp ci-local cleanup --dry-run
pulp ci-local cleanup --apply
pulp ci-local cloud workflows
pulp ci-local cloud defaults
pulp ci-local cloud history
pulp ci-local cloud compare build
pulp ci-local cloud recommend build
pulp ci-local cloud run build feature/my-branch
pulp ci-local cloud run build feature/my-branch --provider namespace
pulp ci-local cloud run build feature/my-branch --provider namespace --macos-runner-selector-json '"namespace-profile-big-apple"'
pulp ci-local cloud run build feature/my-branch --provider namespace --macos-runner-selector-json '"nscloud-macos-tahoe-arm64-6x14"'
pulp ci-local cloud run docs-check feature/my-branch --provider namespace --wait
pulp ci-local cloud run docs-check feature/my-branch --provider namespace --runner-selector-json '"namespace-profile-big-apple"'
pulp ci-local cloud namespace doctor
pulp ci-local cloud namespace setup
pulp ci-local cloud status latest --refresh

Local queue commands:

--apply is blocked while jobs are running, and --include-prepared also removes cached build/install state that later reruns will rebuild

Cloud companion commands:

Current cloud scope:

build covers Linux and Windows only so macOS can stay local-first

github_actions.workflows.build.providers.namespace.linux_runner_selector_json and .windows_runner_selector_json, or from the repo variables PULP_NAMESPACE_BUILD_LINUX_RUNS_ON_JSON and PULP_NAMESPACE_BUILD_WINDOWS_RUNS_ON_JSON

--macos-runner-selector-json for a one-off run, or set github_actions.workflows.build.providers.namespace.macos_runner_selector_json locally or PULP_NAMESPACE_BUILD_MACOS_RUNS_ON_JSON if you want an explicit macOS Namespace validation run

"namespace-profile-generouscorp-macos" or a direct machine label like "nscloud-macos-tahoe-arm64-6x14"

labels and matrix names alone do not prove the underlying OS, so a Linux Namespace profile can appear as a macOS leg while actually executing on Linux

and use --macos-runner-selector-json only for one-off cloud validation runs

Pulp shows them separately from tracked-run estimates because they are repo-wide current-period figures

Namespace profile setup note:

GitHub Actions runner-profile creation is still a Namespace dashboard step in this phase

shown as generouscorp-macos is referenced from Pulp as "namespace-profile-generouscorp-macos"

profile, for example "nscloud-macos-tahoe-arm64-6x14"

pulp ci-local cloud run build <branch> --provider namespace --macos-runner-selector-json '"namespace-profile-generouscorp-macos"'

macOS profile should report shape.os = "macos" and shape.machine_arch = "arm64"

ship

Status: experimental

Signing and packaging subcommands.


pulp ship sign --identity "Developer ID Application: ..."
pulp ship sign --identity "..." --entitlements path/to/entitlements.plist
pulp ship package --version 1.0.0
pulp ship check

Subcommands:

Subcommand What it does
sign Code-sign all built plugin bundles (VST3, CLAP, AU)
package Create .pkg installers in artifacts/
check Check signing status of all built plugins

sign requires --identity. The default entitlements file is ship/templates/entitlements.plist.

package creates per-format .pkg files using pkgbuild. macOS only.

docs

Status: usable

Browse local documentation and status manifests. All subcommands read from local files in docs/ only -- no web calls.


pulp docs                         # Show help
pulp docs index                   # List available docs
pulp docs search <query>          # Search docs for a string
pulp docs open <slug>             # Print a doc by slug
pulp docs show support <thing>    # Look up support status
pulp docs show command <name>     # Look up a CLI command
pulp docs show cmake <name>       # Look up a CMake function
pulp docs show style              # Show code style rules
pulp docs check                   # Validate docs consistency

Subcommands:

Subcommand What it does
index Print a readable list of available docs from docs-index.yaml
search <query> Case-insensitive search across all Markdown files in docs/
open <slug> Resolve slug via docs-index.yaml and display the file
show support <thing> Look up platform/format/subsystem support from support-matrix.yaml
show command <name> Look up a CLI command from cli-commands.yaml
show cmake <name> Look up a CMake function from cmake-functions.yaml
show style Display style rules from style-rules.yaml with links to policy docs
check Validate docs consistency: manifest links, index completeness, status vocabulary, module dependencies vs CMake

design

Status: experimental

Launch the local AI-powered design tool used for token, shader, and style iteration.


pulp design
pulp design path/to/design-tool.js
pulp design --script path/to/design-tool.js
pulp design --build-dir /tmp/pulp-design-parity-build

pulp design now configures/builds pulp-design-tool on demand before launch. When run inside a Pulp checkout it loads examples/design-tool/design-tool.js from that checkout and builds into that checkout's build/ directory.

Use --script to point at a different JS entry, and --build-dir when you are working from a nonstandard build tree such as a separate worktree build directory.

When run outside a Pulp checkout, pulp design can currently auto-bind only when the pulp binary itself lives inside a Pulp build tree such as .../build/tools/cli/pulp. Generic PATH-installed or symlinked CLI setups are not fully SDK-mode aware yet; use --build-dir and --script explicitly in split layouts where the project repo and the Pulp SDK live in different directories.

The selected build environment is the authority for supported behavior. pulp design prints the chosen root, build dir, and script path so the provenance is explicit.

The design tool chat now supports provider/model-aware local execution in the UI. The current app exposes a provider selector (Claude, Codex), a model selector, and a reasoning-effort selector for Codex/OpenAI models.

design-debug

Status: experimental

Run the before/after/diff harness for design-chat prompts. This is the automation/debug companion to pulp design.


pulp design-debug --prompt "make the gain knob look like macOS 7" --target k1
pulp design-debug --prompt "design a cyberpunk interface for a modern synth plugin" --target all --provider claude --model claude-sonnet-4-6
pulp design-debug --prompt "make the gain knob look like a precision analyzer control" --target k1 --provider codex --model gpt-5.4 --reasoning-effort xhigh
pulp design-debug --prompt "warm analog EQ" --target all --response-file saved-response.json
pulp design-debug --prompt "make the gain knob look like premium brushed aluminum" --target k1 --capture-backend live-gpu

Artifacts are written by default under build/design-debug/:

The JSON report records:

Useful flags:

Backend behavior:

so widget SkSL is present in the before/after images and the report records render_backend: "skia-headless" with widget_sksl_render_supported: true.

mode, captures before/after images from the actual Skia/Graphite presentation path, and records render_backend: "skia-live-gpu" with sksl_gpu_supported: true.

faithfully render custom widget SkSL.

Remaining limitation:

Use live-gpu when you need proof from the actual design-tool renderer.

import-design

Status: experimental

Import designs from Figma, Stitch, v0, or Pencil source files into generated Pulp UI code.


pulp import-design --from figma --file frame.json
pulp import-design --from figma --url 'https://figma.com/design/...' --frame 'Plugin UI'
pulp import-design --from stitch --file screen.html --screen 'Main'
pulp import-design --from v0 --url 'https://v0.dev/t/abc123' --output ui.js
pulp import-design --from pencil --file ui.json --output ui.js --tokens tokens.json
pulp import-design --from v0 --file card.tsx --dry-run

Supports --url (fetches via curl), --frame (Figma frame selection), and --screen (Stitch screen selection). See Design Import API Reference for the full flag list.

export-tokens

Status: experimental

Export a theme as W3C Design Tokens JSON.


pulp export-tokens --file theme.json --tokens tokens.json
pulp export-tokens --dry-run

ci-local

Status: experimental

Run local CI and desktop automation workflows from the same control plane.


pulp ci-local run
pulp ci-local run --smoke --targets mac
pulp ci-local status
pulp ci-local logs <job-id> --target windows
pulp ci-local evidence feature/my-branch

Core CI subcommands:

Desktop automation subcommands live under pulp ci-local desktop ....


# setup / health
pulp ci-local desktop install mac
pulp ci-local desktop doctor windows --json
pulp ci-local desktop status

# config
pulp ci-local desktop config show
pulp ci-local desktop config set artifact_root ~/Library/Application\\ Support/Pulp/desktop-automation/runs
pulp ci-local desktop config set target.mac.webview_driver true
pulp ci-local desktop config set target.mac.webdriver_url http://127.0.0.1:4444
pulp ci-local desktop config set target.mac.debug_attach true

# inspect / interact
pulp ci-local desktop smoke mac --bundle-id com.apple.TextEdit --label textedit-smoke
pulp ci-local desktop inspect mac --command '/path/to/pulp-ui-preview' --pulp-app-automation
pulp ci-local desktop click mac --command '/path/to/pulp-ui-preview' --click-view-id bypass-toggle --capture-ui-snapshot --pulp-app-automation
pulp ci-local desktop inspect windows --command 'notepad.exe' --label notepad-inspect
pulp ci-local desktop click windows --command 'notepad.exe' --click 885,18 --capture-before --label notepad-maximize

# exact-SHA source mode
pulp ci-local desktop inspect mac \
  --command './build-desktop-automation/examples/ui-preview/pulp-ui-preview' \
  --source-mode exact-sha \
  --sha <commit-sha> \
  --prepare-command 'cmake -S . -B build-desktop-automation && cmake --build build-desktop-automation --target pulp-ui-preview' \
  --pulp-app-automation

# artifact workflows
pulp ci-local desktop recent mac --limit 5
pulp ci-local desktop proof windows --action inspect --source-mode exact-sha --sha <commit-sha>
pulp ci-local desktop publish mac --limit 5 --label mac-gallery
pulp ci-local desktop cleanup mac --older-than-days 14 --keep-last 10

Current desktop subcommands:

Shared desktop source flags for smoke, click, and inspect:

Windows note:

Exact-SHA desktop runs record additive provenance in manifest.json under source.*, and attach artifacts.prepare_log when a fresh prepare step produces a log.

Desktop artifact roots also maintain rolling summaries for agents and status tooling:

desktop proof filters:

desktop status now reports both:

Adapter truth:

upgrade

Status: usable

Update the Pulp CLI binary to the latest (or a specific) version.


pulp upgrade              # upgrade to latest release
pulp upgrade 0.2.0        # install specific version

Downloads the release from GitHub, replaces the current binary, and verifies. Requires curl.

clean

Status: usable

Remove the build directory.


pulp clean

help

Print usage information.


pulp help

version

Status: usable

Show, bump, or check version consistency across all surfaces (CMakeLists.txt, SDK constant, CHANGELOG, AU Info.plist).


pulp version                  # Show current SDK and project versions
pulp version bump patch       # Increment patch version
pulp version bump minor       # Increment minor version
pulp version bump major --plugin  # Bump plugin version (pulp_add_plugin VERSION)
pulp version check            # Verify version consistency

The bump subcommand updates CMakeLists.txt project(VERSION) and adds a CHANGELOG.md entry. The SDK version constant is derived from CMake via configure_file, so a rebuild picks up the change automatically. Use --plugin to bump the pulp_add_plugin(... VERSION ...) line instead.

The check subcommand verifies:

add

Status: usable

Add a third-party package from the Pulp package registry.


pulp add signalsmith-stretch                       # add a package
pulp add rtneural --license-override commercial    # accept a non-standard license
pulp add some-lib --platform-guard                 # add with platform guard
pulp add dr-libs --no-cmake                        # metadata only, skip CMake wiring

Performs license checking, platform compatibility analysis, overlap detection, CMake generation (cmake/pulp-packages.cmake), and updates packages.lock.json, DEPENDENCIES.md, and NOTICE.md.

remove

Status: usable

Remove a previously added package.


pulp remove signalsmith-stretch

Cleans up the lock file, CMake declarations, and metadata entries.

list

Status: usable

Show installed packages.


pulp list              # human-readable table
pulp list --json       # JSON output

Status: usable

Search the package registry.


pulp search "pitch detection"
pulp search dsp
pulp search fft --format json

update

Status: usable

Check for and apply package updates.


pulp update            # dry-run: show available updates
pulp update --apply    # apply updates and regenerate CMake

suggest

Status: usable

Context-aware package recommendations.


pulp suggest --description "pitch shifting"
pulp suggest --analyze src/my_processor.cpp
pulp suggest --alternative pffft

target

Status: usable

Manage project platform targets stored in pulp.toml.


pulp target list                  # show current targets
pulp target add Windows-arm64     # add a target
pulp target remove Linux-x64     # remove a target

Default targets (if none configured): macOS-arm64, Windows-x64, Linux-x64.

audit (package extensions)

The existing pulp audit command now supports package-specific flags:


pulp audit --packages     # verify lock file integrity
pulp audit --platforms    # check package/platform coverage
pulp audit --licenses     # verify license compatibility

These flags are handled natively; without them, pulp audit delegates to the Python audit script as before.

Global Flags

Flag Description
--no-color Disable color output (also respects NO_COLOR env var)

Color output is auto-detected based on TTY. Non-TTY environments (pipes, CI) get plain text automatically.

Caveats