Pieces CLI Commands
Below is a table containing all the commands available for use in the Pieces CLI.
Command Table
You can easily access these commands through the help menu using the command help
within the Pieces CLI. If you’re not within the Pieces CLI, you can use pieces help
.
When you’re within the terminal and use the pieces run
command, you don’t have to prefix the commands with “pieces”.
Command | What it does |
---|---|
| Start the CLI in loop mode—you only need to type flags or commands. |
| List all materials in your Pieces Drive (alias: |
| List all registered applications. |
| List available AI models and switch which one |
| Create a new material from whatever’s on your clipboard. |
| Update the content of the current material. |
| Change the name or classification of the current material. |
| Delete the current (or most recent) material. |
| Run a Pieces bash material. |
| Clear the terminal screen. |
| Show your current Pieces CLI configuration. |
| Set your preferred code editor (e.g. |
| Install the PiecesOS desktop application. |
| Open PiecesOS or its helper Applet. |
| Send a question to the AI. |
| Attach saved items by index (e.g. |
| Attach files or folders (absolute or relative paths). |
| List all your past conversations. |
| Show messages in your current conversation. |
| Switch to and display a specific conversation by its number. |
| Start a new conversation. |
| Delete the conversation you’re currently in. |
| Rename your current conversation (e.g. |
| Fuzzy-search your materials and chats. |
| Use Neural Code Search for your query. |
| Use Full-Text Search for your query. |
| Commit changes to GitHub and auto-generate the message. Add |
| Log in to your Pieces Cloud account. |
| Log out of your Pieces Cloud account. |
| Show versions of PiecesOS and the CLI tool. |
| Display the help message. |
| Walk through the initial setup process. |
| Send feedback directly to the Pieces team. |
| Contribute code or ideas to the CLI project. |