I'm using Geth to set up a private ethereum network and this is the command:
$ geth --identity "MyTestNode" --datadir "SomeDir" init genesis.json --rpc --rpcaddr "localhost" --rpcport "8000" --rpccorsdomain "*" --port "30303" --nodiscover --ipcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3" --rpcapi "db,eth,net,web3" --autodag --networkid 1900 --nat "any" console
But I'm getting that -rpc is provided but not defined and I don't know if everything else is correct.
init
andconsole
are geth commands, you can only use once per geth invocation. You should split your command in two invocations:geth [params] init genesis.json
, and thengeth [other params] console