Skip to main content

Start a driver from a template

Starting a new driver? driverforge new creates the project from a template with the Driverforge SDK already set up, so the driver sends telemetry from its first deploy. To add Anvil to a driver you already have, follow the Quick start instead.

Prerequisites​

1. Sign in​

driverforge login

2. Create the driver​

driverforge new my-driver

new creates ./my-driver from the official template, then asks which Anvil project the driver reports to (an existing one, or a new one it creates), how to version it, and whether to add build configurations and forward logs.

When it finishes it prints a link to the project in Anvil and offers to open it. That page shows the remaining steps below and moves on to your data as soon as the first telemetry arrives.

3. Deploy it​

cd my-driver
driverforge device select
driverforge deploy

device select picks the controller to target. deploy builds the driver, sends it to the agent on that controller, and loads it.

4. Watch the telemetry​

Telemetry starts when the driver loads on the controller. Follow it from the terminal:

driverforge events --follow

or open the project in Anvil to see events, logs and errors as they arrive.

Next steps​