Prerequisites
- Go 1.25.0 or higher (for
go installor building from source) - Git (for cloning the repository)
Installation Methods
Using go install
The quickest way to install the CLI if you have Go installed:This installs the binary as
cli in your $GOPATH/bin directory. Make sure $GOPATH/bin is in your PATH.Build from source
Clone the repository and build the CLI binary:The
make build-cli command creates a binary at ./bin/prompt. The make install-cli command installs it to your $GOPATH/bin.See the Makefile for the exact build commands used.
Verify Installation
Confirm the CLI is installed correctly:Configuration
The CLI stores configuration in~/.prompts/:
~/.prompts/config.json- Authentication tokens~/.prompts/[package-name]/- Installed prompt packages
The config directory is created automatically on first run (see main.go:364-370).
Environment Variables
Configure the CLI behavior with environment variables:The base URL for the Prompts.dev API server.
.env files from the current directory or any parent directory (see main.go:60-82).
Next Steps
CLI Commands
Learn about all available commands and their options
Workflow Guide
Follow an end-to-end example of creating and publishing prompts