Get started with the Pieces CLI tool
Manage code, chat with an LLM, and more with the power of Pieces just a command away.
Installation via CLI
• Ensure Pieces OS is installed and running on your system.
• Run one of these commands:
View your recent assets, registered applications, and accessible AI models using the pieces list command for quick organization and access.
Open an asset quickly
Open any asset from a list or search by its index with pieces open [ITEM_INDEX] to access your code swiftly.
Save, create, edit, and delete assets
Manage your assets efficiently by saving, creating, editing, or deleting them with simple commands like pieces save, pieces create, pieces edit, and pieces delete.
Search and query code snippets
Perform Fuzzy Search, Neural Code Search, or Full Text Search with pieces search commands to find your code snippets accurately and efficiently.
Customize your Intelligence
Switch between over 20 local and cloud-based LLMs for the ask command using pieces change_model [MODEL_INDEX] to tailor your AI assistant.
Ask questions to your Copilot
Ask the Pieces Copilot for coding assistance with pieces ask "your question" to enhance your productivity.
Commit directly to GitHub
Auto-commit your code to GitHub with pieces commit -p for streamlined version control and issue tracking.
Use Pieces across your workflow
Experience the power of our “tool in-between tools” throughout your day-to-day projects. Pieces deeply integrates with all of your favorite tools, evolving your interactions with code snippets from end-to-end.