README
solc-cli
Command line interface for https://github.com/ethereum/solc-js
Installation
$ npm install --save-dev solc solc-cli
Solc is a peer dependency so needs to be installed alongside this cli
Usage
$ solc [options] [files]
Examples
Single File
solc example.sol
Multiple Files
solc example.sol anotherExample.sol
Glob
solc *.sol
Options
$ solc --name=value
Option | Default | Description |
---|---|---|
out-dir | ./contracts | Output directory for the compiled contracts |
optimise | null | If present activates the solc optimiser |
debug | null | If present shows the debug messages |