A complete guide to all available plb CLI commands, their usage, arguments, and options.
Commands for initializing a project and managing its integrity.
Initializes a new Prompt Lockbox project in the specified directory. This command creates the prompts/
and .plb/
directories, along with the plb.toml
and .plb.lock
configuration files.
The directory to initialize the project in. Defaults to the current directory.
Displays a table showing the lock status and integrity of all prompts in the project. The output shows whether prompts are Locked, Unlocked, TAMPERED, or MISSING.
Validates and locks a prompt to ensure its integrity. This records the prompt’s secure hash in the .plb.lock
file.
The name, ID, or file path of the prompt to lock.
Unlocks a previously locked prompt, allowing it to be edited. This removes its entry from the .plb.lock
file.
The name, ID, or file path of the prompt to unlock.
Verifies the integrity of all locked prompts against the lockfile. Ideal for use in CI/CD pipelines.
This command will exit with a non-zero status code if any locked prompt is found to be tampered with or missing, causing a CI/CD job to fail.
Validates all prompts in the project for schema compliance, correct syntax, and consistency.
Commands for creating, viewing, and managing individual prompts.
Lists all prompts in a table format.
Displays a wider table with more details, including intended model and default inputs.
Displays the full metadata and template content for a single prompt.
The name, ID, or file path of the prompt to display.
Interactively creates a new prompt file, or creates template files in bulk.
If specified, creates a number of blank prompt template files non-interactively.
When run without options, plb create
starts an interactive wizard to guide you through creating a single, detailed prompt.
Renders a prompt with provided parameters and displays the final output.
The name, ID, or path of the prompt to run.
Options:
Pre-sets a template variable. Can be used multiple times.
Opens your system’s default text editor to fill in all required prompt inputs.
After rendering, sends the prompt to the configured AI provider and displays the response.
Creates a new, version-bumped copy of a prompt. Defaults to a minor bump.
Displays a hierarchical tree of prompts based on their namespace.
Commands for building search indexes and finding prompts.
Builds a search index for all prompts to enable advanced search methods.
The indexing method to use. Choices are hybrid or splade.
A command group for searching prompts using different methods.
Subcommands (METHOD)
fuzzy
: Lightweight search. No index required.hybrid
: Balanced keyword and semantic search.splade
: State-of-the-art sparse vector search.AI-powered commands for automating prompt engineering tasks.
Automatically generates a description and tags for one or more prompts using an AI.
One or more prompt names, IDs, or paths to document.
Options:
Document all prompts in the project. Overrides any specific identifiers.
Gets an AI-powered critique and suggested improvements for a prompt.
This concludes the CLI command reference for plb. For additional help, use plb <command> --help
, or explore related guides in our documentation to deepen your understanding and streamline your workflow.