# CLI (/docs/cli)



## Installation [#installation]

Install the CLI with the script for your platform.

```bash
curl -fsSL https://install.seasnoke.dev | bash
```

On Windows PowerShell:

```powershell
irm https://install.seasnoke.dev/windows | iex
```

With Homebrew:

```bash
brew tap seasnoke/tap
brew install seasnoke
```

## Global Commands [#global-commands]

* `seasnoke auth` manages authentication.
* `seasnoke task` creates and manages tasks.
* `seasnoke runs` monitors agent runs.
* `seasnoke workspace` manages workspaces.

## Task Commands [#task-commands]

| Command                       | Description                             |
| ----------------------------- | --------------------------------------- |
| `seasnoke task submit <file>` | Submit a new task from a markdown file. |
| `seasnoke task list`          | List all tasks in the workspace.        |
| `seasnoke task get <id>`      | Get details of a specific task.         |
| `seasnoke task cancel <id>`   | Cancel a running task.                  |

## Run Commands [#run-commands]

| Command                   | Description                    |
| ------------------------- | ------------------------------ |
| `seasnoke runs list`      | List all agent runs.           |
| `seasnoke runs get <id>`  | Get run details and status.    |
| `seasnoke runs logs <id>` | Stream logs from a run.        |
| `seasnoke runs diff <id>` | View the diff output of a run. |

## Workspace Commands [#workspace-commands]

| Command                          | Description                      |
| -------------------------------- | -------------------------------- |
| `seasnoke workspace info`        | Show current workspace details.  |
| `seasnoke workspace switch <id>` | Switch to a different workspace. |
