Purpose and Use Cases
The CLI enables you to:- Authenticate with your Better Skills account using device-code flow
- Sync skills to local AI agent directories (OpenCode, Claude Code, Cursor, etc.)
- Search and discover skills from your vaults
- Create and update skills from local directories
- Clone skills for local editing and version control
- Validate and rewrite skill links before publishing
- Backup local skills for migration or recovery
Built with @clack/prompts
The CLI uses@clack/prompts for interactive terminal prompts and picocolors for colorful output. Commands provide both interactive and non-interactive modes for CI/CD workflows.
Installation
The CLI is installed as part of the Better Skills package. See the Installation guide for setup instructions. Once installed, the CLI is available as:Command Categories
The CLI organizes commands into several categories:Authentication
Manage your Better Skills session:login- Authenticate with device-code flowlogout- Sign out and clear local sessionwhoami- Display current session info
Skill Management
Work with skills in your vaults:list- List skills with optional searchsearch- Full-text search across skillsget- Fetch and display a skillclone- Clone a skill to a local directorycreate- Create a new skill from a local directoryupdate- Update an existing skill from local changesdelete- Delete a skill (with confirmation)references- Show which skills reference a specific skill
Sync and Deployment
Install skills to AI agents:sync- Sync all skills to configured agent directoriesconfig- Configure which agents to sync toget-unmanaged-skills- Find local skills not managed by Better Skills
Validation and Maintenance
Ensure skill quality before publishing:validate- Validate skill folder structure and linksrewrite-links- Rewrite local file paths to UUID-based resource linksbackup- Copy local skills to a backup directory
Utilities
health- Check server connectivitydisable- Disable a vault (enterprise feature)
Help and Version Flags
Every command supports standard help flags:Environment Configuration
The CLI respects these environment variables:SERVER_URL- Better Skills server URL (defaults tohttp://localhost:3000)XDG_CONFIG_HOME- Config directory for session and agent configurationCODEX_HOME- Custom Codex skills directoryCLAUDE_CONFIG_DIR- Custom Claude Code skills directory
Session Storage
Authentication sessions are stored in:Next Steps
Authentication
Learn how to authenticate with the CLI
Skill Commands
Explore all skill management commands
Sync Workflow
Set up automatic skill syncing