When should I use the State Space CLI?
When should I use the State Space CLI?
Use the CLI if any of the following apply:
Using Foundry or Hardhat project
Using a deployment script
Multiple interoperating contracts
Large or complex codebases
Iterating and testing code changes
Using Foundry or Hardhat project
Using a deployment script
Multiple interoperating contracts
Large or complex codebases
Iterating and testing code changes
Install
Initialize project
Run theinit command to initialize your project and create the state-space.toml configuration fiels.
state-space.toml
Configure settings
Update the settings instate-space.toml with your project details.
For information on additional options, see the settings guide.
Deploy &
Deploy your project to state space by running thepush command:
Make sure your code successfully compiles before running the
push command.