# Creator CLI

The Art Blocks Creator CLI (`ab-creator`) lets artists, and the AI agents working with them, manage Art Blocks projects from a terminal. It covers the same work as the [Creator Dashboard](/creator-onboarding/artists/creator-dashboard/): update project details, upload a script, set Flex assets, PostParams and payment splits, configure a minter, mint tokens, and publish.

Every change is planned first and shown to you. Nothing is sent until you execute the plan.

!!!contrast Install

```sh
npm install -g @artblocks/creator-cli
ab-creator skill install
```

[!badge variant="primary" size="l" icon="package" text="@artblocks/creator-cli"]  [!badge variant="success" size="l" icon="globe" text="Sepolia · Ethereum · Arbitrum · Base · Shape"]

!!!

The full command and field reference is in the package README on [npm](https://www.npmjs.com/package/@artblocks/creator-cli). Every command also has `--help`.

---

## Before You Start

- Node.js 22 or later.
- A wallet. On testnet it needs Sepolia ETH. On mainnet it needs ETH on the project's chain for gas and the mint price.

The CLI works on projects that already exist. On testnet it can also create a practice project for you. A new mainnet project is still added by the admin of the contract it goes on: Art Blocks on Art Blocks' own contracts, or the studio or partner that runs the contract.

---

## Use It With an AI Agent

`ab-creator skill install` installs the CLI's bundled agent skill. It detects Claude Code and Codex, or you can choose one with `--agent claude` or `--agent codex`. Restart your agent session afterwards so it loads the skill.

The skill teaches the agent the safe workflow: inspect, plan, show you the plan, and only then execute. Run `skill install` again after you upgrade the CLI.

The CLI and the [Art Blocks MCP Server](/developer/mcp-server/quick-start/) do different jobs. The MCP server reads the Art Blocks ecosystem and scaffolds new scripts. The CLI changes your own projects.

---

## Environments

Every command that talks to Art Blocks needs `--environment`, or the `CREATOR_ENVIRONMENT` variable.

| Environment      | Networks                               | Use it for                   | Dashboard                                                          |
| ---------------- | -------------------------------------- | ---------------------------- | ------------------------------------------------------------------ |
| `artist-staging` | Sepolia testnet                        | Practice and testing         | [staging.create.artblocks.io](https://staging.create.artblocks.io) |
| `production`     | Ethereum, Arbitrum One, Base and Shape | Your real project, real ETH  | [create.artblocks.io](https://create.artblocks.io)                 |

Testnet and mainnet have separate logins. Log in to each one you use.

---

## The Workflow

```
auth login → inspect → plan → execute → preview → mint
```

1. **Log in.** The command prints a link and a code. Open the link, check the code, sign in with your wallet, and approve. If you don't have an Art Blocks account yet, signing in creates one.

   ```sh
   ab-creator auth login --environment artist-staging
   ```

2. **Inspect** the project. This prints every field, its current value, and whether you can change it. Find your project IDs with `ab-creator projects list --environment artist-staging --format table`.

   ```sh
   ab-creator inspect <project> --environment artist-staging > inspection.json
   ```

3. **Plan** an update. An update file is a JSON object holding only the fields you want to change. Planning sends nothing. Read the plan's changes, steps and warnings.

   ```sh
   ab-creator plan <project> ./update.json --environment artist-staging > plan.json
   ```

4. **Execute** the plan. With `--wallet browser`, the command prints a link to the signing page on the dashboard, where you approve each transaction in your own wallet. Keep the command running until it prints its result.

   ```sh
   ab-creator execute ./plan.json --environment artist-staging --wallet browser
   ```

5. **Preview** a token on the generator with a fixed hash.

   ```sh
   ab-creator preview <project> --chain-id 11155111 --generator-url https://generator.staging.artblocks.io \
     --token-id 0 --token-hash 0x…
   ```

6. **Mint** from the project's fixed-price minter. While the project is paused, only you can mint, so you can mint your first tokens before you open it.

   ```sh
   ab-creator mint <project> --environment artist-staging --wallet browser
   ```

To practice on a fresh testnet project, run `ab-creator project create --name "My project" --environment artist-staging`. You can create one every 24 hours.

!!!warning
If `execute` or `mint` stops early, don't run it again to see what happened. A second run can send the same change twice. Run `ab-creator reconcile` on the run record the command printed instead.
!!!

---

## Move From Staging to Mainnet

Once your mainnet project exists, log in to `production` and copy the artwork settings from your staging project onto it. `import` plans the copy, and `execute` sends it:

```sh
ab-creator auth login --environment production
ab-creator import <staging-project> <mainnet-project> \
  --from-environment artist-staging \
  --environment production > plan.json
ab-creator execute plan.json --environment production --wallet browser
```

To review or edit the snapshot first, run `ab-creator export <staging-project> --environment artist-staging > project.json`, then pass that file to `plan` with `--environment production`.

The copy includes the name, artist name, description, website, license, script type, on-chain script, render settings, Flex assets and PostParams. It leaves out the minter, payment, royalty, edition size, start date, and pause and publish state. Set those directly on mainnet.

On mainnet, execute with `--wallet browser` so you approve every transaction yourself. Run your first `mint` without `--yes`, check the price and total it prints, then type `yes`. Publish and unpause only once everything is set.

---

## More Help

- Package and full README: [npmjs.com/package/@artblocks/creator-cli](https://www.npmjs.com/package/@artblocks/creator-cli)
- The same workflow in a browser: [Creator Dashboard V2](/creator-onboarding/artists/creator-dashboard/)
- Minter types and settings: [Minter guide](/creator-onboarding/artists/minters/)
- Report CLI problems to your Art Blocks contact.
