> For the complete documentation index, see [llms.txt](https://docs.seldon.ai/seldon-core-2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seldon.ai/seldon-core-2/resources/apis/cli.md). Agents can also search and read this documentation through its [MCP server](https://docs.seldon.ai/seldon-core-2/~gitbook/mcp).

# Seldon CLI

Learn how to install and use the Seldon CLI tool for managing Seldon Core 2 resources in non-Kubernetes environments.

{% hint style="info" %}
**Note**: The Seldon CLI allows you to view information about underlying Seldon resources and make changes to them through the scheduler in non-Kubernetes environments. However, it cannot modify underlying manifests within a Kubernetes cluster. Therefore, using the Seldon CLI for control plane operations in a Kubernetes environment is not recommended. For more details, see [Seldon CLI](https://docs.seldon.ai/seldon-core-2/resources/apis/cli.md).
{% endhint %}

## Installing Seldon CLI

To install Seldon CLI using prebuild binaries or build them locally.

{% tabs %}
{% tab title="Linux binary" %}

1. Download from a recent release from `https://github.com/SeldonIO/seldon-core/releases`.\
   It is dynamically linked and will require and \*nix architecture and glibc 2.25+.
2. Move to the `seldon` folder and provide the permissions.

   ```
   mv seldon-linux-amd64 seldon
   chmod u+x seldon
   ```
3. Add the folder to your PATH.
   {% endtab %}

{% tab title="Local build" %}

1. Install Go version `1.21.1`
2. Clone and make the build.

   ```bash
   git clone https://github.com/SeldonIO/seldon-core --branch=v2
   cd seldon-core/operator
   make build-seldon
   ```
3. Add `<project-root>/operator/bin` to your PATH.
   {% endtab %}

{% tab title="macOS ARM build" %}

1. Install dependencies.\
   `brew install go librdkafka`
2. Clone the repository and make the build.

   ```
   git clone https://github.com/SeldonIO/seldon-core --branch=v2
   cd seldon-core/operator
   make build-seldon-arm
   ```
3. Add `<project-root>/operator/bin` to your PATH.
4. Open your terminal and open up your `.bashrc` or `.zshrc` file and add the following line:\
   `export PATH=$PATH:<project-root>/operator/bin`
   {% endtab %}
   {% endtabs %}

## Usage

```sh
seldon --help
```
