> ## Documentation Index
> Fetch the complete documentation index at: https://docs.envsecrets.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Circle CI

> How to continuously sync your secrets with Circle CI.

## Setup

1. **Generate your Personal Access Token**
   1. Go to [your Circle CI user settings](https://app.circleci.com/settings/user/tokens) and choose "Personal API Tokens."
   2. Click on "Create New Token" and copy the newly generated token somewhere safe.
2. **Configuration**
   1. Go to [integrations catalog](https://app.envsecrets.com/integrations/catalog) in your envsecrets dashboard and choose "Circle CI."
   2. On the setup/connection page, enter your Circle CI personal access token you created above and save the configuration.

## Activation

1. Go to the [integrations](https://app.envsecrets.com/integrations) dashboard in your envsecrets organisation and under "Circle CI" choose "Sync New Environment With Your Circle CI Account."
2. In the page that opens, select your envsecrets project, environment and your Circle CI organisation and project where you wish to push/sync your secrets.
3. Complete and save the form.

## Usage

### Platform

1. Navigate to the environment for which you activated the integration.
2. Click on the "Sync" button.
3. Choose the Circle CI project to which you want to sync your secrets.
4. Approve the sync.

### CLI

1. Use the command: `envs sync --env [name-of-your-remote-environment]`
2. Choose the Circle CI integration.

<Tip>
  Once your secrets are synced, it is recommended you go to your Circle CI project and validate the new values.
</Tip>
