# Submit a proof

Open https://qed.so/workspace and create a QED account, or sign in with your account name and password. Paste Lean source or upload a Lean file, then follow the private run. If it passes, preview and publish the release.

## Terminal

Download the CLI from https://qed.so/cli. In your QED workspace, open Account access and save a new access token in a private file named qed-token.

```sh
qed push --project my-proof Proof.lean --token-file qed-token
qed status <draft-id> --token-file qed-token
qed publish <draft-id> --verification <verification-id> --token-file qed-token
qed clone <release-id> restored-proof
```

Use the verification ID shown by status. If your file has no lean-toolchain pin, pass `--toolchain` with a supported Lean release. To import a file from a local Git checkout, first run `qed import ./checkout --file Proof.lean --output proof.json`, then push `proof.json`. For the API and its authentication, see https://qed.so/api.md. Earlier repository submissions are still available through GET https://qed.so/api/v1/submissions/{id}.
