Deploy & Interact
ZKsync CLI
The ZKsync CLI is a powerful tool designed to simplify the setup, development, testing, and deployment of contracts on ZK Chains. It also provides a way to scaffold dApps using templates leveraging various frontend and web3 libraries.
ZKsync CLI is published on npm as
zksync-cli
. Commands are invoked using npx zksync-cli
in the terminal.Prerequisites
- Node.js v18 or higher
- Git
- Docker (for
zksync-cli dev
commands)
Usage
You can run commands without installation: npx zksync-cli
(For example: npx zksync-cli dev start
).
Available Commands
To learn more about the available commands in ZKsync CLI, see the CLI reference.
Here are the main command categories and their common use cases:
Bridge
Transfer assets between L1 and L2.
Config Chains
Manage custom chain configurations.
Contract
Interact with smart contracts.
Create
Bootstrap new projects using templates.
Dev
Manage local development environment.
Transaction
Query transaction details.
Wallet
Manage wallet operations.