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

# capy push: Publish Local Secret Changes

> Push-only sync for Capy: publishes local secret changes to the remote without pulling. Refuses if the remote has diverged — run capy first to reconcile.

## Synopsis

```bash theme={null}
capy push
```

## Description

Encrypts and uploads any local changes to `.env` without first pulling the remote. Use when you want to publish a change immediately and don't need to reconcile against remote edits (for instance, you just ran `capy` and know local is current).

If the remote has diverged, `push` refuses and asks you to run `capy` first to resolve.

## Example

```bash theme={null}
$ capy push

Pushed 2 variables to "my-app" (branch: development).
```

## See also

* [`capy`](/cli/capy) - the full pull-and-push sync loop
* [`capy status`](/cli/status) - check for drift before pushing
