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: cli/README.md
+24-19
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Fluence CLI is an automation tool for tasks of app management (deployment and de
25
25
26
26
## Requirements
27
27
28
-
CLI assumes running Ethereum and Swarm on `http://localhost:8545/` and `http://localhost:8500/` respectively. Use `--eth_url` and `--swarm_url` to specify actual addresses as you need.
28
+
CLI assumes running Ethereum and Swarm on `http://data.fluence.one:8545/` and `http://data.fluence:8500/` respectively. Use `--eth_url` and `--swarm_url` to specify actual addresses as you need.
29
29
30
30
Please note, that your Ethereum account should have sufficient funds for issuing transactions to smart-contract. It's only for transaction fees, Fluence itself doesn't currently charge miners or developers. That could change in the future, for example when miners' deposits are implemented.
31
31
@@ -48,6 +48,21 @@ To look at all possible arguments and options use `./fluence --help`:
48
48
You can use `./fluence [SUBCOMMAND] --help` to learn how to use commands.
49
49
50
50
## Usage examples
51
+
### Setup CLI
52
+
Use `setup` command to enter main arguments into a config file. It will allow not to use common arguments in every command.
53
+
```bash
54
+
./fluence setup
55
+
```
56
+
Contract address, Ethereum, and Swarm node addresses have defaults, but account address and credentials (secret key or Ethereum keystore and password) should be filled for correct transaction sending.
57
+
Arguments description and examples:
58
+
-`0x074a79f29c613f4f7035cec582d0f7e4d3cda2e7` is a contract address, register transaction will be sent there
59
+
-`http://data.fluence.one:8545` is an URL to Ethereum node
60
+
-`http://data.fluence.one:8500` is an URL to Swarm node
61
+
-`0x4180fc65d613ba7e1a385181a219f1dbfe7bf11d` will be used as Ethereum account for issuing transactions. _Use your Ethereum account here_
62
+
-`0xcb0799337df06a6c73881bab91304a68199a430ccd4bc378e37e51fd1b118133` denotes an Ethereum private key, used for offline transaction signing. _Use your Ethereum private key here_
63
+
- it is possible to use keystore file and password instead of secret key
64
+
65
+
All arguments could be overridden by flags in commands.
51
66
### Register a node
52
67
To provide your computation resources to Fluence network, you need to register your computer within smart-contract. The simplest way to do that is through CLI.
53
68
The following command will register a node:
@@ -56,9 +71,7 @@ The following command will register a node:
- currently, Tendermint key can be found in logs of `fluencelabs/node` Docker container
72
85
- note that key should be unique, i.e. you can't register several nodes with the same key
73
86
- Tendermint p2p node ID `5e4eedba85fda7451356a03caffb0716e599679b` is needed to securely connect nodes in Tendermint cluster
74
-
-`0x9995882876ae612bfd829498ccd73dd962ec950a` is a contract address, register transaction will be sent there
75
-
-`0x4180fc65d613ba7e1a385181a219f1dbfe7bf11d` will be used as Ethereum account for issuing transactions. _Use your Ethereum account here_
76
-
-`--secret_key 0xcb0799337df06a6c73881bab91304a68199a430ccd4bc378e37e51fd1b118133` denotes an Ethereum private key, used for offline transaction signing. _Use your Ethereum private key here_
77
-
- using `--password` is possible instead of private key, but private key is preferred
78
87
-`--wait_syncing` so CLI waits until Ethereum node is fully synced
79
88
-`--api_port 25000` specifies the main port of the Fluence node, so other nodes and users know where to connect
80
89
-`--capacity 10` limits number of apps that could be run on the node by 10
@@ -86,10 +95,8 @@ To deploy your app on Fluence network, you must upload it to Swarm and publish h
86
95
The following command will publish app `counter.wasm`.
If you want to delete your app from smart contract, you can use `delete_app` command.
136
143
137
-
The following will delete app with id `0x0000000000000000000000000000000000000000000000000000000000000002`. App id could be retrieved either from status (see below) or from smart-contract.
144
+
The following will delete app with id `2`. App id could be retrieved either from status (see below) or from smart-contract.
0 commit comments