Validium Docs
  • Overview
  • Connect to Validium
  • Start Coding 🚀
    • Quickstart
      • Overview
      • Deploy using Validium CLI
      • Deploy using Quickstart Repository
      • Deploy your first contract
      • Create an ERC20 token
  • Tooling
    • Block Explorers
    • Hardhat-Validium
      • Overview
      • Installation
      • Guides
        • Getting started
        • Migrating Hardhat project to Validium
        • Compiling non-inlinable libraries
      • Plugins
        • hardhat-zksync
        • hardhat-zksync-solc
        • hardhat-zksync-vyper
        • hardhat-zksync-deploy
        • hardhat-zksync-upgradable
        • hardhat-zksync-verify
        • hardhat-zksync-verify-vyper
        • hardhat-zksync-ethers
        • hardhat-zksync-node
        • Hardhat Community Plugins
    • Foundary
      • Overview
      • Installation
      • Getting Started
      • Migration Guide
        • Overview
        • Compilation
        • Deployment
        • Testing
  • Test and Debug
    • Getting Started
    • Docker L1 - L2 Nodes
    • In-Memory Node
    • Continuous Integration
    • Hardhat
    • Foundry
  • API Reference
    • Overview
    • Conventions
    • ZKs JSON-RPC API
    • Debug JSON-RPC API
    • Ethereum JSON-RPC API
    • PubSub JSON-RPC API
  • Concepts
    • Transaction Lifecycle
    • Blocks and Batches
    • Validium Network Fee Mechanism
    • Finality
    • System Upgrades
    • ZK Chains
    • Data Availability
      • Overview
      • Recreating L2 state from L1 pubdata
      • Validiums
    • Account Abstraction
    • L1 <-> L2 Communication
  • Components
    • Overview
    • Smart & System Contracts
      • Smart Contracts
      • System Contracts
    • Shared Bridges
    • Sequencer / Server
    • Validium Network EVM
      • Overview
      • Bootloader
      • Precompiles
      • Virtual Machine Specification
        • ZKsync Virtual Machine primer
        • VM Formal Specification
    • Prover
      • Overview
      • ZK Terminology
      • Running the Prover
      • Circuits
        • Overview
        • Circuit Testing
        • CodeDecommitter
        • DemuxLogQueue
        • ECRecover
        • KeccakRoundFunction
        • L1MessagesHasher
        • LogSorter
        • Main VM
        • RAMPermutation
        • Sha256RoundFunction
        • StorageApplication
        • Sorting and Deduplicating
          • Overview
          • SortDecommitments
          • StorageSorter
          • LogSorter
      • Boojum Gadgets
      • Boojum Function - `check_if_satisfied`
    • Compiler
      • Compiler Toolchain Overview
        • Compiler Toolchain Overview
        • Solidity Compiler
        • Vyper Compiler
        • LLVM Framework
      • Specification
        • Overview
        • Code Separation
        • System Contracts
        • Exception Handling
        • EVM Legacy Assembly Translator
        • Instructions
          • Instruction Reference
          • EVM
            • Native EVM Instructions
            • Arithmetic
            • Bitwise
            • Block
            • Call
            • Create
            • Environment
            • Logging
            • Logical
            • Memory
            • Return
            • Sha3
            • Stack
          • Extensions
            • Overview
            • Validium Network Extension Simulation (call)
            • Validium Network Extension Simulation (verbatim)
          • EVM Legacy Assembly
          • Yul
        • EraVM Binary Layout
    • Fee Withdrawer
    • Portal - Wallet + Bridge
    • Block Explorer
    • Transaction filtering
Powered by GitBook
On this page
  • Dependencies
  • Install ZKsync CLI
  • Available Commands
  • Further Assistance
  • Source Code
  1. CLI

Getting Started

Validium Network uses zkSync protocol, with zkSync CLI managing all interactions, ensuring seamless and secure operations for Validium CLI.

Last updated 8 months ago


The ZKsync CLI is a powerful tool designed to simplify the setup, development, testing, and deployment of contracts on Validium. It also provides a way to scaffold dApps using templates using various frontend and web3 libraries. ZKsync CLI is published on npm as . Commands are invoked using zksync-cli in the terminal.

Dependencies

To install ZKsync CLI on your local system, you will need Node.js. ZKsync CLI requires Node.js to run commands on your local environment.

which will include the npm and npx commands. You can execute ZKsync CLI commands without having to install the package using the npx command. Our guides will assume you to install the ZKsync CLI globally using npm install.

Optional dependencies

If you wish to use ZKsync CLI to manage and run a Validium environment locally such as Validium nodes, Block Explorer, Wallet, and Bridge, you will need to install Docker. The Docker Desktop provides an easy to use application to manage Docker images and containers.

which will include a desktop GUI to manage Docker containers and images.

Install ZKsync CLI

To install the ZKsync CLI, open up a terminal window and run the following command:

npm install -g zksync-cli

Update ZKsync CLI

To update your installed package of ZKsync CLI, run the following command:

npm update -g zksync-cli

Available Commands

Further Assistance

Source Code

To learn more about the available commands in ZKsync CLI, see the .

Need help? Join our to ask questions, share your experiences, and connect with the Validium community.

The is open-source and available on GitHub under the MIT License. Feel free to contribute, report issues, or suggest new features to help us improve the tool for everyone.

zksync-cli
Download and install Node.js
Download and install Docker
CLI reference
GitHub Discussions
ZKsync CLI project