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.
npx zksync-cli bridge deposit # Move funds from Ethereum (L1) to ZKsync (L2)npx zksync-cli bridge withdraw # Initiate withdrawal from L2 to L1npx zksync-cli bridge withdraw-finalize # Complete the withdrawal process to L1
npx zksync-cli dev start # Start local dev environmentnpx zksync-cli dev clean # Clean data for configured modulesnpx zksync-cli dev config # Select modules to run locally