You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can install this program globally with `npm i -g zksync-cli` or run the commands directly via NPX with `npx zksync-cli@latest {COMMAND}`.
24
+
You can run the commands directly via NPX with `npx zksync-cli {COMMAND}`.
25
+
Or you can install the CLI globally with `npm i -g zksync-cli` and run the commands with `zksync-cli {COMMAND}`.
23
26
24
27
## π» Commands
25
28
26
-
-`zksync-cli deposit`: deposits funds from Ethereum (L1) to zkSync (L2)
29
+
### Local development commands
30
+
`zksync-cli dev` - All-in-one tool for local zkSync development. It allows to easily start zkSync stack locally, for example: local Ethereum and zkSync nodes, Wallet and Bridge.
27
31
28
-
-`zksync-cli withdraw`: withdraws funds from zkSync (L2) to Ethereum (L1)
32
+
**General:**
33
+
-`zksync-cli dev start` - start local development environment (will ask to configure if starting for the first time)
34
+
-`zksync-cli dev clean` - clean data for configured modules
35
+
-`zksync-cli dev config` - select modules to run in local development environment
36
+
37
+
**Modules:**
38
+
39
+
In addition to default modules, you can install custom modules from NPM.
40
+
41
+
-`zksync-cli dev install [module-name]` - install module with NPM (e.g. `zksync-cli dev i zkcli-dummy-module`)
42
+
-`zksync-cli dev modules` - displays list of installed modules
43
+
44
+
Run `zksync-cli dev` to see the full list of commands.
29
45
46
+
### Bridge commands
47
+
-`zksync-cli deposit`: deposits funds from Ethereum (L1) to zkSync (L2)
48
+
-`zksync-cli withdraw`: withdraws funds from zkSync (L2) to Ethereum (L1)
30
49
-`zksync-cli withdraw-finalize`: finalizes withdrawal of funds from zkSync (L2) to Ethereum (L1)
31
50
51
+
### Create project commands
32
52
-`zksync-cli create-project {FOLDER_NAME}`: creates project from template in the specified folder
33
53
54
+
### Other commands
34
55
-`zksync-cli help`: Provides information about all supported commands
35
-
36
56
-`zksync-cli help <command>`: Provides detailed information about how to use a specific command. Replace <command> with the name of the command you want help with (e.g., create-project, deposit, withdraw, withdraw-finalize)
37
-
38
57
-`zksync-cli --version`: Returns the current version
39
58
40
-
-`zksync-cli localnet`: Manages a local zkSync Era and Ethereum L1 testnet (it requires docker running on your system). It supports a set of sub-subcommands:
41
-
-`zksync-cli localnet up`: Bootstrap L1 and L2 localnets.
42
-
-`zksync-cli localnet down`: clear L1 and L2 localnets.
43
-
-`zksync-cli localnet start`: start L1 and L2 localnets.
44
-
-`zksync-cli localnet stop`: stop L1 and L2 localnets.
45
-
-`zksync-cli localnet logs`: Display logs.
46
-
-`zksync-cli localnet help`: Display this message and quit.
By default zkSync CLI supports Era Testnet and Era Mainnet. You can also use other networks by overwriting L1 and L2 RPC URLs. For example: `zksync-cli deposit --l2-rpc=http://... --l1-rpc=http://...`
62
+
By default zkSync CLI bridge commands support Era Testnet and Era Mainnet. You can also use other networks by overwriting L1 and L2 RPC URLs. For example: `zksync-cli deposit --l2-rpc=http://... --l1-rpc=http://...`
52
63
53
64
If you're using [local setup (dockerized testing node)](https://github.com/matter-labs/local-setup) with default L1 and L2 RPC URLs, you can select `Local Dockerized node` option in the CLI or provide option `--chain local-dockerized`.
54
65
55
-
### βοΈ Options (flags)
56
-
-`--zeek`: zeek, the dev cat, will search for an inspirational quote and provide to you at the end of any command.
0 commit comments