# --license-lease

Source: https://zshot-cli.com/reference/flags/common/license-lease/
Markdown: https://zshot-cli.com/reference/flags/common/license-lease/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [Flags](https://zshot-cli.com/reference/flags/) › [Common](https://zshot-cli.com/reference/flags/common/)
CLI: `--license-lease` · REST: CLI only

Prints a lease code and waits one minute for confirmation from [`--license-lease-confirm`](/reference/flags/common/license-lease-confirm) on a machine with a registered license. Once confirmed, ZShot saves the leased license to the [configuration](/reference/configuration) file with the owner's tier for 30 days, or until the owner's license expires.

Refuses to overwrite a configuration file that already holds a registered license; existing leases are replaced.

If the code is not confirmed within one minute, ZShot exits the process; run the command again within ten minutes to resume waiting on the same code.

## Workspaces without access to the licensing server

When the workspace cannot reach `zshot-licensing.com`, ZShot prints a lease request and exits the process:

```
Lease request: ZLR1.eyJ2ZXJzaW9uIjoi…
On a machine with your zshot license, run: zshot --license-lease-confirm ZLR1.eyJ2ZXJzaW9uIjoi…
Then run here the command it prints.
```

Run the printed [`--license-lease-confirm`](/reference/flags/common/license-lease-confirm) command on a licensed machine, then run the resulting [`--license-lease-accept`](/reference/flags/common/license-lease-accept) command in the workspace. The lease is bound to the requesting machine.

## Example

**CLI**

```sh
zshot --license-lease
```

```
Lease code: ABCD-EFGH
On a machine with your zshot license, run: zshot --license-lease-confirm ABCD-EFGH
```

## Related

Flags:

- [`--license-lease-confirm`](https://zshot-cli.com/reference/flags/common/license-lease-confirm/)
- [`--license-lease-accept`](https://zshot-cli.com/reference/flags/common/license-lease-accept/)
- [`--license-lease-export`](https://zshot-cli.com/reference/flags/common/license-lease-export/)
- [`--config`](https://zshot-cli.com/reference/flags/common/config/)

Topics:

- [Licenses](https://zshot-cli.com/support/licenses/)
- [npm](https://zshot-cli.com/reference/npm/)
- [Exit Codes](https://zshot-cli.com/reference/exit_codes/)

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
  - [Flags](https://zshot-cli.com/reference/flags/)
    - [Common](https://zshot-cli.com/reference/flags/common/)
      - [--completions](https://zshot-cli.com/reference/flags/common/completions/)
      - [--config](https://zshot-cli.com/reference/flags/common/config/)
      - [--diagnostics](https://zshot-cli.com/reference/flags/common/diagnostics/)
      - [--file-name](https://zshot-cli.com/reference/flags/common/file-name/)
      - [--formats](https://zshot-cli.com/reference/flags/common/formats/)
      - [--history](https://zshot-cli.com/reference/flags/common/history/)
      - [--input-mimetype](https://zshot-cli.com/reference/flags/common/input-mimetype/)
      - [--license-info](https://zshot-cli.com/reference/flags/common/license-info/)
      - [--license-key](https://zshot-cli.com/reference/flags/common/license-key/)
      - **--license-lease**
      - [--license-lease-accept](https://zshot-cli.com/reference/flags/common/license-lease-accept/)
      - [--license-lease-close](https://zshot-cli.com/reference/flags/common/license-lease-close/)
      - [--license-lease-confirm](https://zshot-cli.com/reference/flags/common/license-lease-confirm/)
      - [--license-lease-export](https://zshot-cli.com/reference/flags/common/license-lease-export/)
      - [--log-chrome-to-stderr](https://zshot-cli.com/reference/flags/common/log-chrome-to-stderr/)
      - [--log-level](https://zshot-cli.com/reference/flags/common/log-level/)
      - [--no-fail](https://zshot-cli.com/reference/flags/common/no-fail/)
      - [--no-preview](https://zshot-cli.com/reference/flags/common/no-preview/)
      - [--no-timeout](https://zshot-cli.com/reference/flags/common/no-timeout/)
      - [--open-source-licenses](https://zshot-cli.com/reference/flags/common/open-source-licenses/)
      - [--output-type](https://zshot-cli.com/reference/flags/common/output-type/)
      - [--quiet](https://zshot-cli.com/reference/flags/common/quiet/)
      - [--refresh-license](https://zshot-cli.com/reference/flags/common/refresh-license/)
      - [--software-rendering](https://zshot-cli.com/reference/flags/common/software-rendering/)
      - [--timeout](https://zshot-cli.com/reference/flags/common/timeout/)
      - [--trial](https://zshot-cli.com/reference/flags/common/trial/)
      - [--wait-for](https://zshot-cli.com/reference/flags/common/wait-for/)
    - [Agents](https://zshot-cli.com/reference/flags/agents/)
    - [Archive](https://zshot-cli.com/reference/flags/archive/)
    - [Browser](https://zshot-cli.com/reference/flags/browser/)
    - [Diagnostics](https://zshot-cli.com/reference/flags/diagnostics/)
    - [Document](https://zshot-cli.com/reference/flags/document/)
    - [Image](https://zshot-cli.com/reference/flags/image/)
    - [Navigator](https://zshot-cli.com/reference/flags/navigator/)
    - [Security](https://zshot-cli.com/reference/flags/security/)
    - [Server](https://zshot-cli.com/reference/flags/server/)
    - [Video](https://zshot-cli.com/reference/flags/video/)
  - [Agents](https://zshot-cli.com/reference/agents/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Devices](https://zshot-cli.com/reference/devices/)
  - [Docker](https://zshot-cli.com/reference/docker/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
  - [npm](https://zshot-cli.com/reference/npm/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - [Shell completions](https://zshot-cli.com/reference/shell_completions/)
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

