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

# Theme CLI

> Edit storefront themes locally, preview draft changes, and publish from the terminal.

The `paysum` CLI uses the same theme files as the dashboard code editor. Edit files in your own editor and keep them in Git. Draft edits do not change the live storefront.

**1. Install and sign in**

[Install the CLI](https://developers.paysum.io/cli/install.md) and connect a store key.

**2. Download and preview**

Run `paysum init` to download your theme. Run `paysum watch` to push drafts as you save and reload the preview.

**3. Publish**

Run `paysum publish` when your preview is ready. Use the version history in the dashboard to roll back.

See [Develop a theme](https://developers.paysum.io/cli/develop.md), [CI and automation](https://developers.paysum.io/cli/ci.md), or the [command reference](https://developers.paysum.io/cli/commands.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.