solc-cli

solc command line interface

Usage no npm install needed!

<script type="module">
  import solcCli from 'https://cdn.skypack.dev/solc-cli';
</script>

README

solc-cli

npm
Build Status
Dependency Status peerDependency Status devDependency Status

NPM

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

Uses https://github.com/isaacs/node-glob

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