@sysprompthub/cli
v1.0.0
Published
CLI for syncing system prompts from SysPromptHub
Maintainers
Readme
@sysprompthub/cli
Command-line interface for syncing system prompts from SysPromptHub to your projects.
For programmatic usage, see @sysprompthub/sdk.
Installation
npm install -g @sysprompthub/cliCLI Usage
Init Command
Initialize SysPromptHub configuration for your project:
sysprompthub initThis interactive command will:
- Prompt for your API key (stored in
~/.sysprompthub/config.json) - Let you search and select a prompt pack
- Let you select your AI assistants (Copilot, Claude, or custom path)
- Save workspace configuration to
.sysprompthub.json
Sync Command
Sync prompts from your configured pack:
sysprompthub syncOptions:
-e, --environment <ENV>- API environment to use (local, development, staging, production)
Configuration
User-level Config (~/.sysprompthub/config.json)
Stores your API key:
{
"apiKey": "your-40-character-api-key"
}Workspace-level Config (.sysprompthub.json)
Stores project-specific settings:
{
"packName": "owner/pack/latest",
"assistants": ["copilot", "claude"],
"environment": "production"
}You can also use a custom path instead of assistants:
{
"packName": "owner/pack/latest",
"path": "prompts/system-prompt.md"
}Workflow
- First time setup: Run
sysprompthub initto configure your API key and project - Sync prompts: Run
sysprompthub syncto download and install prompts - Update: Run
sysprompthub initagain to change configuration
Contributing
See CONTRIBUTING.md for development instructions.
License
ISC
