Completium is a set of tools to support smart contract development with the Archetype language. We installed completium in the previous section, but it must be initialised.
Running npx completium-cli will run the locally installed completium client interface package. For convenience, the command can be aliased with:
aliasccli="npx completium-cli"
Then, subsequent calls to ccli are shorthands for npx completium-cli
ccliinit
This will create the local configuration and default accounts.
Sandbox
A sandbox is a local simulated blockchain for testing and development purposes.
Completium-cli uses the oxheadalpha/flextesa container with a single node and bootstrapped accounts. With Docker running, ensure you have an up-to-date sandbox container:
dockerpulloxheadalpha/flextesa:latest
Start the blockchain sandbox:
cclistartsandbox
Useful commands
Start/stop the sandbox container (a new blockchain will be created at each restart)
cclistartsandboxcclistopsandbox
Switch environments (sandbox, ghostnet...)
Switch account (used for next call):
Other commands will explained throughout the tutorial. You can always refresh your memory with ccli help.