The nebble command-line tool is the primary build and project management tool for Nebble development. It handles the Nim to C compilation pipeline, manages project resources, and integrates with the Pebble SDK.
The CLI is included when you install the Nebble package:
nimble install nebble
This will install both the library and the nebble CLI tool to your Nimble bin directory.
# Create a new Pebble app nebble new my_app # Build the project cd my_app nebble build # Install to emulator nebble install --emulator basalt
Create a new Pebble project with scaffolding and templates.
Build the project using the Nim to C to Pebble pipeline.
Install the built app to a Pebble emulator or a physical phone.
Kill all running Pebble emulators.
Remove all build artifacts (build/, nimcache/, etc.).
Show binary size breakdown and RAM utilization (critical for Aplite's 24KB limit).
Generate type-safe Nim message keys from the messageKeys defined in package.json.
Nebble projects are configured via package.json in the project root (the standard Pebble SDK format).
{
"name": "my_app",
"version": "1.0.0",
"author": "Your Name",
"private": true,
"pebble": {
"uuid": "...",
"displayName": "My App",
"sdkVersion": "3",
"targetPlatforms": ["aplite", "basalt", "chalk", "diorite", "emery", "flint", "gabbro"],
"watchapp": {
"watchface": false
},
"messageKeys": {
"Data": 0,
"Command": 1
}
}
}