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

# fly secrets sync

Sync flyctl with the latest versions of app secrets, even if they were set elsewhere

## Usage

```
fly secrets sync [flags]
```

## Options

```
  -a, --app string      Application name
  -c, --config string   Path to application configuration file
      --detach          Return immediately instead of monitoring deployment progress
      --dns-checks      Perform DNS checks during deployment (default true)
  -h, --help            help for sync
      --stage           Set secrets but skip deployment for machine apps
```

## Global Options

```
  -t, --access-token string   Fly API Access Token
      --debug                 Print additional logs and traces
      --verbose               Verbose output
```

## See Also

* [fly secrets](/flyctl/cmd/fly_secrets)	 - Manage application secrets with the set and unset commands.
