> For the complete documentation index, see [llms.txt](https://docs.weka.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.weka.io/6.0/getting-started-with-weka/weka-cli-overview/cli-reference-guide/weka-agent.md).

# weka agent

Manage the local WEKA agent process.

Manage the WEKA agent process.

```sh
weka agent
```

## weka agent autocomplete

Install, remove, or export auto-completion script for bash.

```sh
weka agent autocomplete
```

## weka agent install-agent

Install WEKA agent on the local machine.

```sh
weka agent install-agent [--no-start] [--no-update] [--systemd-graceful-shutdown]
```

| Parameter                     | Description                                                             |
| ----------------------------- | ----------------------------------------------------------------------- |
| `--no-start`                  | Do not register the weka-agent service and start it after its creation. |
| `--no-update`                 | Don't update the locally installed containers.                          |
| `--systemd-graceful-shutdown` | Enable graceful shutdown via systemd.                                   |

## weka agent restart

Stop and start WEKA agent on the server the command is executed from. If the agent is not running yet, it will be started.

```sh
weka agent restart
```

## weka agent uninstall

Delete all WEKA files, drivers, shared memory and any other remainder from the machine this command is executed from. This action is destructive and might cause a loss of data!

```sh
weka agent uninstall [--force] [--ignore-wekafs-mounts] [--keep-files]
```

| Parameter                | Description                                                             |
| ------------------------ | ----------------------------------------------------------------------- |
| `-f`, `--force`          | Force action. Perform this action without further confirmation.         |
| `--ignore-wekafs-mounts` | Proceed even with active wekafs mounts. This may result in hung mounts! |
| `--keep-files`           | Do not remove WEKA version images and keep in installation directory.   |

## weka agent update-containers

Update the currently available containers and version specs to the current agent version. This command does not update WEKA, only the container's representation on the local machine.

```sh
weka agent update-containers
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.weka.io/6.0/getting-started-with-weka/weka-cli-overview/cli-reference-guide/weka-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
