Haystack CLI

CLI for Haystack Agentic AI Framework

Description

Haystack CLI

A community-maintained CLI for the Haystack Agentic AI Framework.


Installation


Install uv

Unix: curl -LsSf https://astral.sh/uv/install.sh | sh

Windows: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

From PyPI:

uv add haystack-cli

From source:

git clone https://github.com/srini047/haystack-cli.git
cd haystack-cli
uv sync

Why need CLI?

Let me list down as points as to why we need CLIs:

  • This blog by Justin Poehnelt explains the importance of CLI in the era of AI Agents.

  • Haystack documentation has become very vast over the time with tons of components and integrations. It is very hard to keep track of all the components and their configurations. A handy tool without the need for a Google search is the cherry on top.

  • The Haystack ecosystem is improving significantly and quickly as well. We need to adapt to the latest changes in APIs and components. A CLI tries to keep that layer abstracted and provide a consistent interface to the user.

  • --help flag is your first best friend, more than any AI assistant.

  • Since the inception of Haystack, we didn't have a CLI, and it's better late than never. It's high time to adopt to the CLI ecosystem so that we are not left behind in the race.


Quick Start

After successful installation, you can run the CLI using the following command to verify successful installation:

➜ haystack -v
haystack-cli - 0.1.0
haystack-ai  - 2.26.1