State Space CLI
The CLI allows you to deploy your contract to State Space Workbench from within your Hardhat or Foundry project.
Install
Initialize project
Run the init
command to initialize your project and create the state-space.toml
configuration fiels.
It should look like this:
Configure settings
Update the settings in state-space.toml
with your project details.
For information on additional options, see the settings guide.
Deploy &
Deploy your project to state space by running the push
command:
push
command.You will be provided a link to login using your State Space credentials.
After you authenticate, the CLI will compile and deploy your code to State Space. Depending on the size of your codebase, they may take a few minutes.
Login to State Space Workbench and open your project from the home page.
Please contact us if you experience any issues.