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
Copy file name to clipboardexpand all lines: README.md
+20-12
Original file line number
Diff line number
Diff line change
@@ -23,33 +23,41 @@ You can install this program globally with `npm i -g zksync-cli` or run the comm
23
23
24
24
## 💻 Commands
25
25
26
-
-`zksync-cli help`: Provides detailed information about each command.
26
+
-`zksync-cli deposit`: deposits funds from Ethereum (L1) to zkSync (L2)
27
27
28
-
-`zksync-cli create {PROJECT_NAME}`: creates a new project in the given project name. If not provided, creates the project in the current folder, although this requires the folder to be empty.
28
+
-`zksync-cli withdraw`: withdraws funds from zkSync (L2) to Ethereum (L1)
29
29
30
-
-`zksync-cli deposit`: deposits funds from L1 to L2 (local, testnet or mainnet). It will ask to enter: network, recipient wallet, amount in ETH (eg 0.1) and the private key of the wallet you're sending the funds from.
30
+
-`zksync-cli withdraw-finalize`: finalizes withdrawal of funds from zkSync (L2) to Ethereum (L1)
31
31
32
-
-`zksync-cli withdraw`: withdraws funds from zkSync 2.0 to L1 (Goerli testnet). It will ask to enter: network, recipient wallet, amount in ETH (eg 0.1) and the private key of the wallet you're sending the funds from.
32
+
-`zksync-cli create-project {FOLDER_NAME}`: creates project from template in the specified folder
33
33
34
-
-`zksync-cli confirm-withdraw`: confirms withdrawal of funds from zkSync 2.0 to L1 (Goerli testnet). It will ask to enter: network, withdrawal transaction address and the private key of the wallet you sent the funds from.
34
+
-`zksync-cli help`: Provides information about all supported commands
35
35
36
-
-`zksync-cli <command> --help`: 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, deposit, withdraw, confirm-withdraw).
36
+
-`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
37
38
-
-`zksync-cli --version`: Returns the current version.
38
+
-`zksync-cli --version`: Returns the current version
39
39
40
40
41
-
### ⚙️ Options (flags)
41
+
### 🔗 Supported chains
42
+
43
+
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://...`
42
44
43
-
-`--l1-rpc-url`: override the default L1 rpc URL when `localnet` is selected as the network. Usage `--l1-rpc-url=http://...`.
44
-
-`--l2-rpc-url`: override the default L2 rpc URL when `localnet` is selected as the network. Usage `--l1-rpc-url=http://...`.
45
+
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`.
46
+
47
+
### ⚙️ Options (flags)
45
48
-`--zeek`: zeek, the dev cat, will search for an inspirational quote and provide to you at the end of any command.
46
49
47
50
## 👩💻 Developing new features
48
51
49
-
### Install and build
52
+
### Run in development mode
53
+
54
+
1. Install all dependencies with `npm i`.
55
+
2. To use CLI in development mode run `NODE_ENV=development npx ts-node --transpile-only src/index.ts`.
56
+
57
+
### Building for production
50
58
51
59
1. Install all dependencies with `npm i`.
52
-
2. This project was build with Typescript. Run `npm run build` to compile code in `/src` into `/bin`.
60
+
2. This project was build with Typescript. Run `npm run build` to compile the code into `/bin`.
0 commit comments