Start creating solidity smart contracts with the best tools by running one command.
To create a new solidity project, you may use the following commands:
yarn create solidity-contract my-contract
npm init solidity-contract my-contract
npx create-solidity-contract my-contract
It will create a directory called my-contract
inside the current folder.
Inside that directory, it will generate the initial project structure, assuming you did not provide a custom template:
Create Solidity Contract comes with templates with different tools. Peek into the templates folder to see what options are available and pass the name of the folder as the value for the --template
argument.
As an example:
yarn create solidity-contract my-contract --template truffle
npx create-solidity-contract my-contract --template truffle