| Crates.io | zkstack |
| lib.rs | zkstack |
| version | 0.1.2 |
| created_at | 2025-01-23 10:00:39.588806+00 |
| updated_at | 2025-01-23 10:00:39.588806+00 |
| description | ZK Stack CLI is a set of tools for working with zk stack. |
| homepage | https://zksync.io/ |
| repository | https://github.com/matter-labs/zksync-era/tree/main/zkstack_cli/ |
| max_upload_size | |
| id | 1527681 |
| size | 1,601,465 |
zk_inceptionThis document contains the help content for the zk_inception command-line program.
Command Overview:
zk_inception↴zk_inception ecosystem↴zk_inception ecosystem create↴zk_inception ecosystem init↴zk_inception ecosystem change-default-chain↴zk_inception ecosystem setup-observability↴zk_inception chain↴zk_inception chain create↴zk_inception chain init↴zk_inception chain genesis↴zk_inception chain initialize-bridges↴zk_inception chain deploy-l2-contracts↴zk_inception chain upgrader↴zk_inception chain deploy-consensus-registry↴zk_inception chain deploy-multicall3↴zk_inception chain deploy-paymaster↴zk_inception chain update-token-multiplier-setter↴zk_inception consensus set-attester-committee↴zk_inception consensus get-attester-committee↴zk_inception prover↴zk_inception prover init↴zk_inception prover setup-keys↴zk_inception prover run↴zk_inception prover init-bellman-cuda↴zk_inception server↴zk_inception external-node↴zk_inception external-node configs↴zk_inception external-node init↴zk_inception external-node run↴zk_inception containers↴zk_inception contract-verifier↴zk_inception contract-verifier run↴zk_inception contract-verifier init↴zk_inception portal↴zk_inception update↴zk_inceptionZK Stack CLI is a set of tools for working with zk stack.
Usage: zk_inception [OPTIONS] <COMMAND>
ecosystem — Ecosystem related commandschain — Chain related commandsprover — Prover related commandsserver — Run serverexternal-node — External Node related commandscontainers — Run containers for local developmentcontract-verifier — Run contract verifierportal — Run dapp-portalupdate — Update ZKsync-v, --verbose — Verbose mode--chain <CHAIN> — Chain to use--ignore-prerequisites — Ignores prerequisites checkszk_inception ecosystemEcosystem related commands
Usage: zk_inception ecosystem <COMMAND>
create — Create a new ecosystem and chain, setting necessary configurations for later initializationinit — Initialize ecosystem and chain, deploying necessary contracts and performing on-chain operationschange-default-chain — Change the default chainsetup-observability — Setup observability for the ecosystem, downloading Grafana dashboards from the
era-observability repozk_inception ecosystem createCreate a new ecosystem and chain, setting necessary configurations for later initialization
Usage: zk_inception ecosystem create [OPTIONS]
--ecosystem-name <ECOSYSTEM_NAME>
--l1-network <L1_NETWORK> — L1 Network
Possible values: localhost, sepolia, holesky, mainnet
--link-to-code <LINK_TO_CODE> — Code link
--chain-name <CHAIN_NAME>
--chain-id <CHAIN_ID> — Chain ID
--prover-mode <PROVER_MODE> — Prover options
Possible values: no-proofs, gpu
--wallet-creation <WALLET_CREATION> — Wallet options
Possible values:
localhost: Load wallets from localhost mnemonic, they are funded for localhost envrandom: Generate random walletsempty: Generate placeholder walletsin-file: Specify file with wallets--wallet-path <WALLET_PATH> — Wallet path
--l1-batch-commit-data-generator-mode <L1_BATCH_COMMIT_DATA_GENERATOR_MODE> — Commit data generation mode
Possible values: rollup, validium
--base-token-address <BASE_TOKEN_ADDRESS> — Base token address
--base-token-price-nominator <BASE_TOKEN_PRICE_NOMINATOR> — Base token nominator
--base-token-price-denominator <BASE_TOKEN_PRICE_DENOMINATOR> — Base token denominator
--set-as-default <SET_AS_DEFAULT> — Set as default chain
Possible values: true, false
--start-containers <START_CONTAINERS> — Start reth and postgres containers after creation
Possible values: true, false
zk_inception ecosystem initInitialize ecosystem and chain, deploying necessary contracts and performing on-chain operations
Usage: zk_inception ecosystem init [OPTIONS]
--deploy-paymaster <DEPLOY_PAYMASTER> — Deploy Paymaster contract
Possible values: true, false
--deploy-erc20 <DEPLOY_ERC20> — Deploy ERC20 contracts
Possible values: true, false
--deploy-ecosystem <DEPLOY_ECOSYSTEM> — Deploy ecosystem contracts
Possible values: true, false
--ecosystem-contracts-path <ECOSYSTEM_CONTRACTS_PATH> — Path to ecosystem contracts
--l1-rpc-url <L1_RPC_URL> — L1 RPC URL
--verify <VERIFY> — Verify deployed contracts
Possible values: true, false
--verifier <VERIFIER> — Verifier to use
Default value: etherscan
Possible values: etherscan, sourcify, blockscout, oklink
--verifier-url <VERIFIER_URL> — Verifier URL, if using a custom provider
--verifier-api-key <VERIFIER_API_KEY> — Verifier API key
--resume
-a, --additional-args <ADDITIONAL_ARGS> — List of additional arguments that can be passed through the CLI.
e.g.: zk_inception init -a --private-key=<PRIVATE_KEY>
--server-db-url <SERVER_DB_URL> — Server database url without database name
--server-db-name <SERVER_DB_NAME> — Server database name
--prover-db-url <PROVER_DB_URL> — Prover database url without database name
--prover-db-name <PROVER_DB_NAME> — Prover database name
-u, --use-default — Use default database urls and names
-d, --dont-drop
--dev — Deploy ecosystem using all defaults. Suitable for local development
-o, --observability <OBSERVABILITY> — Enable Grafana
Possible values: true, false
zk_inception ecosystem change-default-chainChange the default chain
Usage: zk_inception ecosystem change-default-chain [NAME]
<NAME>zk_inception ecosystem setup-observabilitySetup observability for the ecosystem, downloading Grafana dashboards from the era-observability repo
Usage: zk_inception ecosystem setup-observability
zk_inception chainChain related commands
Usage: zk_inception chain <COMMAND>
create — Create a new chain, setting the necessary configurations for later initializationinit — Initialize chain, deploying necessary contracts and performing on-chain operationsgenesis — Run server genesisinitialize-bridges — Initialize bridges on l2deploy-l2-contracts — Deploy all l2 contractsupgrader — Deploy Default Upgraderdeploy-paymaster — Deploy paymaster smart contractupdate-token-multiplier-setter — Update Token Multiplier Setter address on L1zk_inception chain createCreate a new chain, setting the necessary configurations for later initialization
Usage: zk_inception chain create [OPTIONS]
--chain-name <CHAIN_NAME>
--chain-id <CHAIN_ID> — Chain ID
--prover-mode <PROVER_MODE> — Prover options
Possible values: no-proofs, gpu
--wallet-creation <WALLET_CREATION> — Wallet options
Possible values:
localhost: Load wallets from localhost mnemonic, they are funded for localhost envrandom: Generate random walletsempty: Generate placeholder walletsin-file: Specify file with wallets--wallet-path <WALLET_PATH> — Wallet path
--l1-batch-commit-data-generator-mode <L1_BATCH_COMMIT_DATA_GENERATOR_MODE> — Commit data generation mode
Possible values: rollup, validium
--base-token-address <BASE_TOKEN_ADDRESS> — Base token address
--base-token-price-nominator <BASE_TOKEN_PRICE_NOMINATOR> — Base token nominator
--base-token-price-denominator <BASE_TOKEN_PRICE_DENOMINATOR> — Base token denominator
--set-as-default <SET_AS_DEFAULT> — Set as default chain
Possible values: true, false
zk_inception chain initInitialize chain, deploying necessary contracts and performing on-chain operations
Usage: zk_inception chain init [OPTIONS]
--verify <VERIFY> — Verify deployed contracts
Possible values: true, false
--verifier <VERIFIER> — Verifier to use
Default value: etherscan
Possible values: etherscan, sourcify, blockscout, oklink
--verifier-url <VERIFIER_URL> — Verifier URL, if using a custom provider
--verifier-api-key <VERIFIER_API_KEY> — Verifier API key
--resume
-a, --additional-args <ADDITIONAL_ARGS> — List of additional arguments that can be passed through the CLI.
e.g.: zk_inception init -a --private-key=<PRIVATE_KEY>
--server-db-url <SERVER_DB_URL> — Server database url without database name
--server-db-name <SERVER_DB_NAME> — Server database name
--prover-db-url <PROVER_DB_URL> — Prover database url without database name
--prover-db-name <PROVER_DB_NAME> — Prover database name
-u, --use-default — Use default database urls and names
-d, --dont-drop
--deploy-paymaster <DEPLOY_PAYMASTER>
Possible values: true, false
--l1-rpc-url <L1_RPC_URL> — L1 RPC URL
zk_inception chain genesisRun server genesis
Usage: zk_inception chain genesis [OPTIONS]
--server-db-url <SERVER_DB_URL> — Server database url without database name--server-db-name <SERVER_DB_NAME> — Server database name--prover-db-url <PROVER_DB_URL> — Prover database url without database name--prover-db-name <PROVER_DB_NAME> — Prover database name-u, --use-default — Use default database urls and names-d, --dont-dropzk_inception chain initialize-bridgesInitialize bridges on l2
Usage: zk_inception chain initialize-bridges [OPTIONS]
--verify <VERIFY> — Verify deployed contracts
Possible values: true, false
--verifier <VERIFIER> — Verifier to use
Default value: etherscan
Possible values: etherscan, sourcify, blockscout, oklink
--verifier-url <VERIFIER_URL> — Verifier URL, if using a custom provider
--verifier-api-key <VERIFIER_API_KEY> — Verifier API key
--resume
-a, --additional-args <ADDITIONAL_ARGS> — List of additional arguments that can be passed through the CLI.
e.g.: zk_inception init -a --private-key=<PRIVATE_KEY>
zk_inception chain deploy-l2-contractsDeploy all l2 contracts
Usage: zk_inception chain deploy-l2-contracts [OPTIONS]
--verify <VERIFY> — Verify deployed contracts
Possible values: true, false
--verifier <VERIFIER> — Verifier to use
Default value: etherscan
Possible values: etherscan, sourcify, blockscout, oklink
--verifier-url <VERIFIER_URL> — Verifier URL, if using a custom provider
--verifier-api-key <VERIFIER_API_KEY> — Verifier API key
--resume
-a, --additional-args <ADDITIONAL_ARGS> — List of additional arguments that can be passed through the CLI.
e.g.: zk_inception init -a --private-key=<PRIVATE_KEY>
zk_inception chain upgraderDeploy Default Upgrader
Usage: zk_inception chain upgrader [OPTIONS]
--verify <VERIFY> — Verify deployed contracts
Possible values: true, false
--verifier <VERIFIER> — Verifier to use
Default value: etherscan
Possible values: etherscan, sourcify, blockscout, oklink
--verifier-url <VERIFIER_URL> — Verifier URL, if using a custom provider
--verifier-api-key <VERIFIER_API_KEY> — Verifier API key
--resume
-a, --additional-args <ADDITIONAL_ARGS> — List of additional arguments that can be passed through the CLI.
e.g.: zk_inception init -a --private-key=<PRIVATE_KEY>
zk_inception chain deploy-consensus-registryDeploy Consensus Registry smart contract
Usage: zk_inception chain deploy-consensus-registry
zk_inception chain deploy-multicall3Deploy Multicall3 smart contract
Usage: zk_inception chain deploy-multicall3
zk_inception chain deploy-paymasterDeploy paymaster smart contract
Usage: zk_inception chain deploy-paymaster [OPTIONS]
--verify <VERIFY> — Verify deployed contracts
Possible values: true, false
--verifier <VERIFIER> — Verifier to use
Default value: etherscan
Possible values: etherscan, sourcify, blockscout, oklink
--verifier-url <VERIFIER_URL> — Verifier URL, if using a custom provider
--verifier-api-key <VERIFIER_API_KEY> — Verifier API key
--resume
-a, --additional-args <ADDITIONAL_ARGS> — List of additional arguments that can be passed through the CLI.
e.g.: zk_inception init -a --private-key=<PRIVATE_KEY>
zk_inception chain update-token-multiplier-setterUpdate Token Multiplier Setter address on L1
Usage: zk_inception chain update-token-multiplier-setter [OPTIONS]
--verify <VERIFY> — Verify deployed contracts
Possible values: true, false
--verifier <VERIFIER> — Verifier to use
Default value: etherscan
Possible values: etherscan, sourcify, blockscout, oklink
--verifier-url <VERIFIER_URL> — Verifier URL, if using a custom provider
--verifier-api-key <VERIFIER_API_KEY> — Verifier API key
--resume
-a, --additional-args <ADDITIONAL_ARGS> — List of additional arguments that can be passed through the CLI.
e.g.: zk_inception init -a --private-key=<PRIVATE_KEY>
zk_inception consensusConsensus related commands
Usage: zk_inception consensus <COMMAND>
set-attester-committee — Set attester committeeget-attester-committee — Get attester committeezk_inception consensus set-attester-committeeSet attester committee in the consensus registry smart contract. Requires consensus_registry and multicall3
contracts to be deployed.
Usage: zk_inception consensus set-attester-committee [OPTIONS]
--from-genesis — Set attester committee to consensus.genesis_spec.attesters in general.yaml Mutually exclusive
with --from-file.
--from-file <PATH> — Set attester committee to committee specified in yaml file at PATH.
Mutually exclusive with --from-genesis. File format is specified in
zk_inception/src/commands/consensus/proto/mod.proto. Example:
attesters:
- key: attester:public:secp256k1:0339d4b0cdd9896d3929631a4e5e9a5b4919f52592bec571d70bb0e50a3a824714
weight: 1
- key: attester:public:secp256k1:024897d8c10d7a57d108cfe2a724d7824c657f219ef5d9f7674810a6746c19fa7b
weight: 1
zk_inception consensus get-attester-committeeRequires consensus_registry and multicall3 contracts to be deployed. Fetches attester committee from the consensus
registry contract and prints it.
Usage: zk_inception consensus get-attester-committee
zk_inception proverProver related commands
Usage: zk_inception prover <COMMAND>
init — Initialize proverrun — Run proverinit-bellman-cuda — Initialize bellman-cudazk_inception prover initInitialize prover
Usage: zk_inception prover init [OPTIONS]
--proof-store-dir <PROOF_STORE_DIR>
--bucket-base-url <BUCKET_BASE_URL>
--credentials-file <CREDENTIALS_FILE>
--bucket-name <BUCKET_NAME>
--location <LOCATION>
--project-id <PROJECT_ID>
--shall-save-to-public-bucket <SHALL_SAVE_TO_PUBLIC_BUCKET>
Possible values: true, false
--public-store-dir <PUBLIC_STORE_DIR>
--public-bucket-base-url <PUBLIC_BUCKET_BASE_URL>
--public-credentials-file <PUBLIC_CREDENTIALS_FILE>
--public-bucket-name <PUBLIC_BUCKET_NAME>
--public-location <PUBLIC_LOCATION>
--public-project-id <PUBLIC_PROJECT_ID>
--bellman-cuda-dir <BELLMAN_CUDA_DIR>
--bellman-cuda
Possible values: true, false
--setup-compressor-key <SETUP_COMPRESSOR_KEY>
Possible values: true, false
--setup-key-path <SETUP_KEY_PATH>
--setup-database <SETUP_DATABASE>
Possible values: true, false
--prover-db-url <PROVER_DB_URL> — Prover database url without database name
--prover-db-name <PROVER_DB_NAME> — Prover database name
-u, --use-default <USE_DEFAULT> — Use default database urls and names
Possible values: true, false
-d, --dont-drop <DONT_DROP>
Possible values: true, false
--cloud-type <CLOUD_TYPE>
Possible values: gcp, local
zk_inception prover setup-keysSetup keys
Usage: zk_inception prover setup-keys
--mode
Possible valuess: download, generate
--region
Possible values: asia, europe, us
zk_inception prover runRun prover
Usage: zk_inception prover run [OPTIONS]
--component <COMPONENT>
Possible values: gateway, witness-generator, witness-vector-generator, prover, compressor,
prover-job-monitor
--docker - Whether to run image of the component instead of binary.
Possible values: true, false
`--tag' - Tag of the docker image to run.
Default value is latest2.0 but you can specify your prefered one.
--round <ROUND>
Possible values: all-rounds, basic-circuits, leaf-aggregation, node-aggregation, recursion-tip, scheduler
--threads <THREADS>
--max-allocation <MAX_ALLOCATION_IN_BYTES> - in case you are running prover component, the value limits maximum
memory allocation of it in bytes.
zk_inception prover init-bellman-cudaInitialize bellman-cuda
Usage: zk_inception prover init-bellman-cuda [OPTIONS]
--bellman-cuda-dir <BELLMAN_CUDA_DIR>zk_inception serverRun server
Usage: zk_inception server [OPTIONS]
--components <COMPONENTS> — Components of server to run--genesis — Run server in genesis mode-a, --additional-args <ADDITIONAL_ARGS> — Additional arguments that can be passed through the CLI--build — Build server but don't run itzk_inception external-nodeExternal Node related commands
Usage: zk_inception external-node <COMMAND>
configs — Prepare configs for ENinit — Init databasesrun — Run external nodezk_inception external-node configsPrepare configs for EN
Usage: zk_inception external-node configs [OPTIONS]
--db-url <DB_URL>--db-name <DB_NAME>--l1-rpc-url <L1_RPC_URL>-u, --use-default — Use default database urls and nameszk_inception external-node initInit databases
Usage: zk_inception external-node init
zk_inception external-node runRun external node
Usage: zk_inception external-node run [OPTIONS]
--reinit--components <COMPONENTS> — Components of server to run-a, --additional-args <ADDITIONAL_ARGS> — Additional arguments that can be passed through the CLIzk_inception containersRun containers for local development
Usage: zk_inception containers [OPTIONS]
-o, --observability <OBSERVABILITY> — Enable Grafana
Possible values: true, false
zk_inception contract-verifierRun contract verifier
Usage: zk_inception contract-verifier <COMMAND>
run — Run contract verifierinit — Download required binaries for contract verifierzk_inception contract-verifier runRun contract verifier
Usage: zk_inception contract-verifier run
zk_inception contract-verifier initDownload required binaries for contract verifier
Usage: zk_inception contract-verifier init [OPTIONS]
--zksolc-version <ZKSOLC_VERSION> — Version of zksolc to install--zkvyper-version <ZKVYPER_VERSION> — Version of zkvyper to install--solc-version <SOLC_VERSION> — Version of solc to install--vyper-version <VYPER_VERSION> — Version of vyper to installzk_inception portalRun dapp-portal
Usage: zk_inception portal [OPTIONS]
--port <PORT> — The port number for the portal app
Default value: 3030
zk_inception updateUpdate ZKsync
Usage: zk_inception update [OPTIONS]
-c, --only-config — Update only the config files This document was generated automatically by
clap-markdown.