# Foundry

<div className="cli-command">
  {<pre>Usage: settlemint smart-contract-set foundry|f [options] [command]<br /><br />Foundry commands for building and testing smart contracts<br /><br />Options:<br />  -h, --help                        display help for command<br /><br />Commands:<br />  build [options] [operands...]     Build the smart contracts using<br />                                    Foundry/forge<br />  format [options] [operands...]    Format the smart contracts using<br />                                    Foundry/forge<br />  network [options] [operands...]   Start a development network Foundry/anvil<br />  coverage [options] [operands...]  Generate coverage report using Foundry/forge<br />  test [options] [operands...]      Test the smart contracts using Foundry/forge<br />  help [command]                    display help for command<br /></pre>}
</div>

## Build

<div className="cli-command">
  {<pre>Usage: settlemint smart-contract-set foundry build <br />Examples:<br /><br />  # Build the smart contracts using Foundry<br />  $ settlemint scs foundry build<br /><br />  # Get list of possible Forge build options<br />  $ settlemint scs foundry build --help<br /><br />  # Build the smart contracts with additional Forge options<br />  $ settlemint scs foundry build --optimize --force<br /><br />Build the smart contracts using Foundry/forge<br /><br />Options:<br />  -h, --help  Get list of possible forge options<br /></pre>}
</div>

## Format

<div className="cli-command">
  {<pre>Usage: settlemint smart-contract-set foundry format <br />Examples:<br /><br />  # Format the smart contracts using Foundry<br />  $ settlemint scs foundry format<br /><br />  # Get list of possible Forge format options<br />  $ settlemint scs foundry format --help<br /><br />  # Format the smart contracts with additional Forge options<br />  $ settlemint scs foundry format --check<br /><br />Format the smart contracts using Foundry/forge<br /><br />Options:<br />  -h, --help  Get list of possible forge options<br /></pre>}
</div>

## Network

<div className="cli-command">
  {<pre>Usage: settlemint smart-contract-set foundry network <br />Examples:<br /><br />  # Start a development network using Foundry<br />  $ settlemint scs foundry network<br /><br />  # Get list of possible Anvil options<br />  $ settlemint scs foundry network --help<br /><br />  # Start a development network using Foundry with a specific port<br />  $ settlemint scs foundry network --port 3000<br /><br />Start a development network Foundry/anvil<br /><br />Options:<br />  -h, --help  Get list of possible anvil options<br /></pre>}
</div>

## Coverage

<div className="cli-command">
  {<pre>Usage: settlemint smart-contract-set foundry coverage <br />Examples:<br /><br />  # Run coverage using Foundry<br />  $ settlemint scs foundry coverage<br /><br />  # Get list of possible Forge coverage options<br />  $ settlemint scs foundry coverage --help<br /><br />  # Generate lcov report with additional Forge options<br />  $ settlemint scs foundry coverage --report lcov<br /><br />Generate coverage report using Foundry/forge<br /><br />Options:<br />  -h, --help  Get list of possible forge options<br /></pre>}
</div>

## Test

<div className="cli-command">
  {<pre>Usage: settlemint smart-contract-set foundry test <br />Examples:<br /><br />  # Run tests using Foundry<br />  $ settlemint scs foundry test<br /><br />  # Get list of possible Forge test options<br />  $ settlemint scs foundry test --help<br /><br />  # Run a specific test function<br />  $ settlemint scs foundry test --match-test testToken<br /><br />Test the smart contracts using Foundry/forge<br /><br />Options:<br />  -h, --help  Get list of possible forge options<br /></pre>}
</div>
