Lately I have been getting a lot of questions on how to vote for your Block Producers candidates once EOS mainnet is out.
Now, the safest way for the regular person may not be the easiest, so I have set up a step to step guide on how to safely vote via the cleos command line. For this guide, I assume you have basic knowledge of a Linux Terminal, for the rest of you is better to wait for simpler tools that will come out later.
1.- Build EOSIO
git clone https://github.com/EOSIO/eos
cd eos
./eosio_build.sh && cd build && make
2.- In a different screen start your node
screen -S nodeos
cd /build/programs/nodeos
./nodeos
3.- Exit the screen with ctr a + d and create a wallet
cd /build/programs/cleos
./cleos wallet create
4.- Safe you wallet password and import your key
./cleos wallet import YOUR_PRIV_KEY
5.- Create an account with your imported key (for the sake of this guide we will use your key as active & owner, but you should create another key that will work as your active key and your owner key is the one you registered previously with your ETH Address)
./cleos create account YOUR_ACCOUNT_NAME OWNER_PUB_KEY ACTIVE_PRIV_KEY
6.- You now have to stake your tokens before being able to vote, change the amount of EOS accordingly:
./cleos.sh push action eosio delegatebw ‘{“from":"YOUR_ACCOUNT", “receiver":"YOUR_ACCOUNT", "stake_net_quantity": "1000.0000 EOS", "stake_cpu_quantity": "1000.0000 EOS", "transfer": true}' -p YOUR_ACCOUNT
7.- Now you can vote for your favorite BPs, lets say you wish to vote for eosargentina, you would type:
./cleos.sh system voteproducer prods YOUR_ACCOUNT eosargentina -p YOUR_ACCOUNT
And thats it, this is all you need to do to vote for your favorite BPs, bare in mind that it will take you 3 days to recover any tokens you stake for voting.