Is there any command or utility to deploy contract from .sol file to test-net? I've seen there is JSON API, so I can write some code to implement this. But isn't it done already?
Truffle Framework is the most popular tool that is available now to perform such a task. All you need is to copy your contract code into
contracts directory, add an entry into migration file and run:
The procedure is explained in details here.
There are lots of tutorials and good docs available if you get lost.
I hope it helped
You can use node or geth to deploy a contract.
npm install ethereum-js-testrpc web3 npm install solc
Run the test rpc server
Web3 = require('web3') web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); code = fs.readFileSync('Voting.sol').toString() solc = require('solc') compiledCode = solc.compile(code) abiDefinition = JSON.parse(compiledCode.contracts[':NameofYourClass'].interface) Contract = web3.eth.contract(abiDefinition) byteCode = compiledCode.contracts[':NameofYourClass'].bytecode deployedContract = Contract.new(args,to,init,your,contract) deployedContract.address