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:

pip install pieces-cli

Copied

brew install pieces-cli

Copied

conda install pieces-cli

Copied

List Your Assets, Applications, and Models

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.

Install Pieces for CLI

Install Pieces for CLI

Install Pieces for CLI

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.

  • VSCode
  • Visual Studio
  • Jet Brains
  • Jupyter
  • Obsidian
  • CLI
  • Teams
  • Chrome
  • Edge
  • Braze
  • Azure
  • VSCode
  • Visual Studio
  • Jet Brains
  • Jupyter
  • Obsidian
  • CLI
  • Teams
  • Chrome
  • Edge
  • Braze
  • Azure
  • VSCode
  • Visual Studio
  • Jet Brains
  • Jupyter
  • Obsidian
  • CLI
  • Teams
  • Chrome
  • Edge
  • Braze
  • Azure

Pieces Now Integrated with Neovim!