Localnet
Last updated
Was this helpful?
Last updated
Was this helpful?
To deploy Clockwork on your machine for local development, you must first . When this is done, you can launch a local Clockwork instance with the following command:
To deploy your own programs to the localnet, you can use either the Anchor CLI, Clockwork CLI, or Solana CLI. As a shortcut, the Clockwork CLI provides a --bpf-program
flag for deploying the localnet with a pre-built program binary.
The Clockwork localnet additionally works out of the box with your Anchor tests. To run Anchor tests with the localnet, use the following command:
To stream logs from your localnet, you can use the Solana CLI.