solcjs Command Examples

A set of JavaScript bindings for the Solidity compiler. More information: https://github.com/ethereum/solc-js.

solcjs --bin {{path/to/file.sol}}

solcjs --abi {{path/to/file.sol}}

solcjs --bin --base-path {{path/to/directory}} {{path/to/file.sol}}

solcjs --bin --include-path {{path/to/directory}} {{path/to/file.sol}}

solcjs --bin --optimize {{path/to/file.sol}}