CLI
A compact index of ABX commands.
Install the CLI globally or run it through npx:
npm install --global @artblocks/abx-cli
abx helpUse abx <command> --help for every flag and example. This page is a map, not a second copy of the
built-in help.
Start and inspect
| Command | Use |
|---|---|
demo | Deploy, index, and serve a test 1/1 |
doctor | Check Node, RPC, factories, storage, skill version, and optional signing setup |
capabilities | Print supported project types and irreversible choices |
state | Read owner-controlled settings and parameter schemas |
verify | Check canonical deployment, byte commitments, and render freshness |
tokenuri / contracturi | Read committed metadata; contracturi follows its URI and --json is machine-readable |
tokens | List token state from the contract |
artifacts | List served artifacts and current or stale effect output |
status | Show resolver indexing state |
version / help | Show the installed version or command help |
Deploy
| Command | Use |
|---|---|
deploy | Deploy a 1/1 image or single-work edition |
deploy-series | Deploy an image Series or multi-work image edition |
deploy-code | Deploy a code Series or code edition |
inspect | Check a script for PostParams, trait hints, and animation delivery options |
scaffold solidity | Create a Foundry workspace for renderers and hooks |
predict | Predict a deterministic address from a pinned salt |
add / index | Register or index a deployed project |
serve | Run a local resolver |
render / effects | Render once or run the effects worker |
Structured deploy output uses plan.schemaVersion: 4. Creator-wallet plans include
paymentPolicy: "prefer-self-payment"; other signing lanes use paymentPolicy: null.
Consumers should check the schema version before interpreting the plan.
Sell and operate
| Command | Use |
|---|---|
mint | Mint the next token or copies of an edition ID |
minter configure | Set fixed-price sale terms |
minter show | Read sale terms |
minter buy | Buy through the shared fixed-price minter |
mint-page | Scaffold a small mint site |
submit-app | Submit a deployed collection to the optional ABX App Store |
pause / unpause | Close or open non-owner minting |
set-minter | Set the authorized minter |
set-primary-payee | Set the primary-sale recipient |
set-max-invocations | Lower the ERC-721 supply cap or edition ID-space cap |
set-max-supply | Lower an edition ID's copy cap |
set-royalty | Set royalty receiver and basis points |
set-royalty-cap | Lower the project's royalty ceiling |
set-transfer-validator | Manage an enrolled transfer validator |
transfer | Transfer a token or edition copies |
set-admin | Transfer project ownership |
Metadata and code
| Command | Use |
|---|---|
set-field / attach | Set metadata or attach a named artifact |
set-token-uri / set-contract-uri | Change URI pointers |
set-renderer | Choose onchain or resolver metadata |
set-gateway | Change the HTTP gateway for IPFS or Arweave locators |
lock-field / lock-uri | Permanently freeze metadata settings |
refresh / ping-uri | Ask indexers to refresh metadata |
preview | Run a code project locally |
configure-param | Set a governed parameter |
set-schema / retire-param | Define or permanently retire a parameter |
set-param-hooks / lock-param-hooks | Set or freeze parameter hooks |
set-seed-source | Change the source for future code-project seeds |
set-dependency / remove-last-dependency | Edit code dependencies |
set-dependency-registry | Change the dependency registry |
replace-script | Safely replace an unlocked code project's onchain program |
lock-dependencies / lock-script | Permanently freeze code inputs |
Storage and hosting
| Command | Use |
|---|---|
storage show | Show the active byte-storage backend |
storage upload / storage status | Upload bytes or check retrieval |
storage balance / storage topup | Manage Arweave upload credit |
storage backup-key | Back up the managed storage key |
vacuum | Inspect or reclaim space in the local SQLite projection |
deploy-contract | Deploy exact compiled EVM initcode, including custom hooks and renderers |
deploy-resolver / deploy-effects | Deploy self-hosted services |
remote | Inspect or test a conforming hosted service |
auth login / auth logout | Reuse, create, or revoke the current hosted-service key |
auth wallet | Provision or show the account's stable creator wallet |
auth keys / auth revoke-key | List active key metadata or revoke an unused key |
feedback | Preview or file an ABX report; nothing sends without --yes |
migrate | Check parity while moving between resolvers |
forget | Remove a local or remote projection without touching the chain |
Runtime repeatability check
abx preview --script art.js --check --count 9 --runs 3 --json
abx preview --code-dir ./dist --check --frames 3 --param palette=Dusk --jsonUse --param key=value with --shoot or --check to apply an override to every render. Use
key= to leave that parameter unset. For a live render, pass the values on the request, for
example /view?palette=Dusk. Declare the keys with --schema.
Each seed runs in fresh Chromium contexts with the same token data and parameter overrides. A pass
means no pixel or normalized trait drift was observed for these inputs, capture times, and browser
build. It does not prove purity, cross-browser consistency, or correctness after deployment. Continue
using abx inspect and a testnet deployment to verify the other boundaries.
The check waits for abx.done(); traits alone do not certify completion. Exit 0 means matching
completed runs, 1 means observed drift, and 2 means incomplete execution or a harness failure
(including script errors, missing Playwright/Chromium, and timeouts). --json always emits one report;
progress and installation guidance go to stderr. Per-seed fields identify pixel/trait matches,
driftFrames, completion, diagnostic codes, observed hazards, and actual frame timing per run.
--frames samples the initial completed output and later targets one second apart. Each sample
compares both pixels and traits; diagnostics continue through the final sample. Capture scheduling
can vary, especially for continuously animated work: drift is evidence to investigate, not proof
that the program uses unseeded randomness. Hazards such as clock, network, and Math.random calls
are observations, not failures when sampled outputs still match.
Playwright and its Chromium build remain optional; install them using the command printed by the CLI
when absent. Bounds are 1–64 seeds, 2–10 runs, 1–20 frames, a 1–4000 pixel square viewport, and a
1–120000 millisecond timeout per navigation/readiness/capture operation. --check and --shoot
are separate modes. Each invocation exercises the same local preview server as the studio.
abx inspect reads the supplied local JavaScript file as text. It reports visible PostParam keys and flags computed reads
that can hide additional inputs. Declare the intended schema explicitly. Script-wide randomness is
a hint to check repeatability with abx preview --check. Verify the assembled tokenURI separately
from the marketplace still and traits you plan to serve.
Signing lanes
Every write uses one lane:
| Flag | Behavior |
|---|---|
--embedded (alias --sponsor) | Creator wallet; self-pay when sufficiently funded, otherwise eligible gas is sponsored |
--sign | Open a browser wallet |
--send | Sign with the configured hot key |
--unsigned | Print an unsigned transaction |
--dry-run | Simulate without sending |
If the creator has not chosen a signer, use the live remote descriptor to prefer the creator wallet when the chain and transaction group are eligible. Otherwise choose the appropriate bring-your-own lane. Never paste a private key into a chat or prompt.
For set-field --file, attach --file, and image deployments with --onchain-image, the CLI
checks that the configured hot key matches the required signer, when known, before staging content.
On mainnet, the hot key requires --yes before staging begins. In an interactive terminal,
--confirm asks for approval before the first write in the staged operation.
A deploy preview reports the wallet approvals it will need. A predicted address is stable only when you
reuse the displayed salt with --salt. A salt's first 20 bytes are its deployer guard: they must be
zero (permissionless) or the address that will sign. The CLI refuses a known signer/guard mismatch
before authorization or broadcast.
Unsigned transactions (--unsigned --json)
For deployments and owner writes, stdout contains one JSON document and progress goes to stderr.
The document has schemaVersion: 1, sent: false, and an ordered txs array. Each entry includes
to (null for direct contract creation), data, value (hex quantity), chainId,
expectedSigner (null when unknown), and the operation's op, summary, and fields.
A known clone address is available as predicted.clone. An empty txs array means there is no
transaction to prepare, for example when a requested setup is already complete.
For more than one transaction, sign and submit in array order and verify each receipt before
estimating or submitting the next. An optional gasFloor is a hexadecimal minimum used to
detect an implausibly low estimate. Use your signer's own estimate for the gas limit.
Deploy preparation can create off-chain storage locators. Use --dry-run --json to preview
without uploading or broadcasting. If a deployment needs an on-chain dependency bootstrapped,
set it up separately before requesting unsigned JSON. A command that needs an on-chain staging
receipt to compute later calldata requires an interactive signing lane.
Structured deploy plan (--dry-run --json)
deploy, deploy-series, and deploy-code include a versioned plan object in JSON output. It
contains the signing lane, transaction groups, roles, royalties, custody, mint plan, estimates,
warnings, required public surfaces, dependencies, and resume state. Unknown values are null.
transactions.approvals is the number of wallet approvals. transactions.legs names the logical
groups they contain. Large code deployments may split setup across transactions. deploy-code --resume continues the idempotent setup steps, and reserve mints run last.
On Base and Base Sepolia, fresh deploy dry runs include estimate.feeBreakdown for standard wallet
transactions. It reports the execution fee, L1 data fee, operator fee, and total as decimal strings
in wei. executionGasSource identifies RPC estimates and heuristics. Code setup gas is heuristic
because the target contract does not exist yet. ethApprox and gasApprox describe execution only.
Pass --for to supply the deployer address for a code preview. A missing input, deferred upload or
staging step, or failed RPC quote leaves the affected components and total null. A reported "0"
means the quote returned zero. Off-chain storage costs and creator-wallet payment at signing are
separate from the standard wallet estimate.
Optional utilities
abx utils [utility] [--json] discovers optional official packages and their use cases.
abx utils abxfs describes ABX FS. The same descriptors appear in capability output.
Discovery does not install or execute utility packages; see the utilities guide.
Agent skill and updates
abx skill install installs the version-matched agent skill. abx doctor reports drift between the
skill and CLI.
The CLI may print a notice when a newer npm release exists. It never upgrades itself. Set
ABX_NO_UPDATE_CHECK=1 to disable the check.