Quick start
Install the agent on your controller, let the driverforge CLI set up your
driver, and deploy it. Events start streaming to Anvil as soon as the driver
loads.
Starting a new driver rather than adding Anvil to an existing one? See Start a driver from a template.
Prerequisites
- Control4 OS 3.3.1 or newer on the controller running your driver
- An existing driver project: a directory with
src/manifest.c4zproj - An Anvil account
On anything below OS 3.3.1 the SDK disables itself at load and your driver runs exactly as it would with no SDK vendored at all. Nothing breaks; you just get no telemetry. See SDK installation for what that looks like.
1. Install the Anvil Agent
The agent is a system driver on your controller that streams your driver's telemetry to Anvil. Install it and sign it in with the agent installation guide.
2. Install the CLI
On macOS:
brew tap driverforge/tap
brew install driverforge
On Linux:
sh -c "$(curl -fsSL https://go.driverforge.com/get)"
See CLI installation for Windows and the details of each method.
3. Sign in
driverforge login
4. Set up your driver
From your driver project's directory, run:
driverforge init
init embeds the Driverforge SDK, wraps your OnDriverInit so
Anvil initializes when the driver loads, and links your driver to an Anvil
project, creating one if you need it. It shows you a diff of every change
before it writes anything.
5. Deploy
Choose the controller to deploy to, then deploy:
driverforge device select
driverforge deploy
deploy builds your driver, sends it to the agent on the
controller, and reloads it. Events start streaming to Anvil immediately.
6. View your data in Anvil
Open your project in Anvil to see data flowing in real time. The Events page shows every handler call as it happens, Logs shows your driver's log output, and Errors surfaces any exceptions with full stack traces. Interact with your driver in a navigator or Composer to see events appear instantly.
You can read the same data from the terminal with
driverforge events, driverforge logs and
driverforge errors.
Setting up without the CLI
To add the SDK to your driver by hand instead, follow SDK installation.
Next steps
- Learn about automatic event capture
- See how to capture timer and URL callback errors
- Review the API reference
- Let a coding agent read your telemetry and work on the driver with you