> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-feat-cli-docs-generator.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# wandb restore

**Usage**

`wandb restore [OPTIONS] RUN`

**Summary**

Restore code, config and docker state for a run. Retrieves code from latest
commit if code was not saved with `wandb.save()` or
`wandb.init(save_code=True)`.

**Options**

| **Option**               | **Description**                                 |
| :----------------------- | :---------------------------------------------- |
| `--no-git`               | Don't restore git state                         |
| `--branch / --no-branch` | Whether to create a branch or checkout detached |
| `-p, --project`          | The project you wish to upload to.              |
| `-e, --entity`           | The entity to scope the listing to.             |
