# Pull Agent Resources

**Cognigy Support**  
September 14, 2023

After [cloning the virtual agent to the local machine](https://support.cognigy.com/hc/en-us/articles/360016836580-Clone-a-Virtual-Agent), new changes made inside Cognigy.AI need to be **pulled**.

This is required to provide continuous versioning of the conversational AI project and builds the basis for using tools such as git.

## How it works

For this tutorial, the **Main** flow of the agent will be pulled from Cognigy.AI to store the newly added features to the local copy. Therefore, one needs to navigate to the virtual agent's folder in the command line -- the directory where the _config.json_ file is located. The structure should look similar to this:

```
.
├── agent
│   ├── flows
│   ├── Main
│   │   ├── config.json
│   │   └── en-US
│   │       ├── chart.json
│   │       └── intents.json
│   └── locales.json
```

Now the following command needs to be executed in order to pull the latest changes of the Main flow:

```
cognigy pull flow 'Main'
```

This will check if any changes were made and download them. Afterward, the command line should display a success message: _We've successfully pulled Flow Main from Cognigy.AI - Enjoy._

### Cognigy CLI

- [Cognigy CLI Overview](https://support.cognigy.com/hc/en-us/articles/360016865839-Cognigy-CLI-Overview)
- [Clone a Virtual Agent](https://support.cognigy.com/hc/en-us/articles/360016836580-Clone-a-Virtual-Agent)
- [Pull Agent Resources](https://support.cognigy.com/hc/en-us/articles/360016843220-Pull-Agent-Resources)
- [Translate a Flow](https://support.cognigy.com/hc/en-us/articles/360019580320-Translate-a-Flow)

#### Table of contents

How it works

- [How it works](https://support.cognigy.com/hc/en-us/articles/360016843220-Pull-Agent-Resources#how-it-works-0-0)
