# CLI delegation

There may be times when ODIN web is down while ODIN is still in development. You will still be able to complete any delegation tasks using the ODIN daemon.  Use the following command to delegate additional tokens to a validator.

```
docker exec -it node bandd tx staking delegate $VALIDATOR 250000000loki --from $ADDRESS --chain-id $CHAIN --node $MASTER
```

To collect all rewards from all validators you have delegated to, run the following command;  Please be advised, it may take a significant amount of gas if you have delegated to several validators.  The default amount for "auto" gas is 200,000 loki.  If the TX fails from "out of gas" error, adjust gas amount as needed.

```
docker exec -it node bandd tx distribution withdraw-all-rewards --from $ADDRESS --chan-id $CHAIN --node $MASTER --gas auto
```


---

# Agent Instructions: 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:

```
GET https://geodb.gitbook.io/odin-protocol/cli-delegation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
