# Upgrade DCli

When a new version of DCli is released you will want to upgrade to the latest version.

Any of your scripts which use DCli will need to have their pubspec.yaml manually updated pubspec.yaml with the new version of dcli.

Once you have updated the version you need to run pub upgrade:

```
dart pub upgrade
```

If you are using the DCli tools then you will need to upgrade the tools:

We run the same process as we did when installing DCli to upgraded it.

```
dart pub global activate dcli
dcli install
```


---

# 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://dcli.onepub.dev/dcli-tools-1/upgrade-dcli.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.
