this command works but yields a warning of future removal so I'd like to use new option init :
➜ ~ go-ethereum/build/bin/geth --datadir="~/testgeth/" --genesis ~/testgeth/customgenesis.json --port "30304" --networkid 6776 --rpc --rpccorsdomain="http://localhost:63342" --rpcport="8546" --minerthreads="1" --nodiscover --maxpeers=0 console
####################################################################
# #
# --genesis is deprecated. Switch to use 'geth init /path/to/file' #
# #
####################################################################
unfortunately the help isn't very verbose :
➜ ~ go-ethereum/build/bin/geth init --help
init [arguments...]
The init command initialises a new genesis block and definition for the network.
This is a destructive action and changes the network in which you will be
participating.
I tried that but it yields an error :
➜ ~ go-ethereum/build/bin/geth init testgeth/customgenesis.json --datadir="~/testgeth/" --port "30304" --networkid 6776 --rpc --rpccorsdomain="http://localhost:63342" --rpcport="8546" --minerthreads="1" --nodiscover --maxpeers=0 console
Incorrect Usage.
init [arguments...]
The init command initialises a new genesis block and definition for the network.
This is a destructive action and changes the network in which you will be
participating.
flag provided but not defined: -datadir
geth --datadir="~/testgethnew/"make sure to runmkdir ~/testgethnewbefore that. – niksmac Apr 04 '16 at 14:03