> For the complete documentation index, see [llms.txt](https://docs.hydrosphere.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hydrosphere.io/release-2.4.0/quickstart/installation/cli.md).

# CLI

Hydrosphere CLI, or`hs`, is a command-line interface designed to work with the Hydrosphere platform.

Source code: <https://github.com/Hydrospheredata/hydro-serving-cli>\
PyPI: <https://pypi.org/project/hs/>

## Installation

Use pip to install `hs`:

```bash
pip install hs
```

Check the installation:

```bash
hs --version
```

## Usage

### `hs cluster`

This command lets you operate cluster instances. A cluster points to your Hydrosphere instance. You can use this command to work with different Hydrosphere instances.

See `hs cluster --help` for more information.

### `hs upload`

This command lets you upload models to the Hydrosphere platform. During the upload, `hs` looks for a `serving.yaml` file in the current directory. This file **must** contain a definition of the model ([example](/release-2.4.0/quickstart/how-to/write-definitions.md#kind-model)).

See `hs upload --help` for more information.

### `hs apply`

This command is an extended version of the `hs upload` command, which also allows you to operate applications and host selector resources.

See `hs apply --help` for more information.

### `hs profile`

This command lets you upload your training data to build profiles.

* `$ hs profile push` - upload training data to compute its profiles.&#x20;
* `$ hs profile status` - show profiling status for a given model.

See `hs profile --help` for more information.

### `hs app`

This command provides information about available applications.

* `$ hs app list` - list all existing applications.
* `$ hs app rm` - remove a certain application.

See `hs app --help` - for more information.

### `hs model`

This command provides information about available models.

* `$ hs model list` - list all existing models.
* `$ hs model rm` - remove a certain model.

See `hs model --help` for more information.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hydrosphere.io/release-2.4.0/quickstart/installation/cli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
