pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • Examples
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

SDK

  • Installation
  • CloudPebble
  • Changelog
    • 4.9.169
    • 4.9.148
    • 4.9.127
    • 4.3
    • 4.2.2
    • 4.2.1
    • 4.2
    • 4.2-beta5
    • 4.2-beta4
    • 4.1.4
    • 4.1.2
    • 4.1.1
    • 4.1
    • 4.0.1
    • 4.0
    • 4.0-rc20
    • 4.0-beta17
    • 4.0-dp3
    • 3.14
    • 4.0-dp2
    • 4.0-dp1
    • 3.13.1
    • 3.13
    • 3.12
    • 3.11.1
    • 3.11
    • 3.10.1
    • 3.10
    • 3.10-beta6
    • 3.10-beta2
    • 3.10-beta1
    • 3.9.2
    • 3.9.1
    • 3.9
    • 3.9-beta8
    • 3.9-beta7
    • 3.9-beta5
    • 3.8.2
    • 3.8.1
    • 3.8
    • 3.8-beta12
    • 3.8-beta10
    • 3.8-beta8
    • 3.7
    • 3.6.2
    • 3.6
    • 3.6-dp8
    • 3.6-dp7
    • 3.6-dp6
    • 3.6-dp5
    • 3.6-dp2
    • 3.4
    • 3.3
    • 3.2.1
    • 3.2
    • 3.1
    • 3.0
    • 3.0-beta12
    • 3.0-beta11
    • 3.0-beta10
    • 3.0-dp9
    • 3.0-dp8
    • 3.0-dp7
    • 3.0-dp6
    • 3.0-dp5
    • 3.0-dp4
    • 3.0-dp3
    • 3.0-dp2
    • 3.0-dp1
    • 2.9
    • 2.8.1
    • 2.8
    • 2.7
    • 2.6.1
    • 2.6
    • 2.5
    • 2.4.1
    • 2.4
    • 2.3
    • 2.2
    • 2.1.1
    • 2.1
    • 2.0.2
    • 2.0.1
    • 2.0.0
    • 2.0-BETA7
    • 2.0-BETA6
    • 2.0-BETA5
    • 2.0-BETA4
    • 2.0-BETA3
    • 2.0-BETA2
    • 2.0-BETA1
    • 2.0-BETA0
    • 2.0-DP3
    • 2.0-DP2

Installing the Pebble SDK

The easiest way to start building a Pebble watchface or app is with CloudPebble - no installation required. It runs entirely in your browser!

Otherwise, if you are somewhat command-line knowledgeable, you can follow the instructions below to install the SDK locally on your computer.

Install dependencies

MacOS

You will need to install Node.js. The easiest way is with Homebrew:

brew install node

Ubuntu

You will need to install a few dependencies to make the SDK run:

sudo apt install nodejs npm libsdl2-2.0-0 libglib2.0-0 libpixman-1-0 zlib1g libsndio7.0

Note: if you already have node installed, you can install only:

sudo apt install libsdl2-2.0-0 libglib2.0-0 libpixman-1-0 zlib1g libsndio7.0

Fedora

sudo dnf install nodejs SDL2 glib2 pixman zlib

Windows

The Pebble SDK does not run on Windows, but you can use WSL. Install Ubuntu in WSL, and then use the instructions above to install dependencies.

Download the Pebble CLI

Install uv, a fast package manager for Python.

Then, run:

uv tool install pebble-tool --python 3.13

Note: pebble-tool requires Python 3.10, 3.11, 3.12, or 3.13 (higher than 3.9 and lower than 3.14).

Next Steps

Now that you have the Pebble SDK downloaded and installed on your computer, it is time to create your first app!

Create a Pebble app

Install the latest SDK:

pebble sdk install latest

Create a project (for example, called myproject):

pebble new-project myproject

Compile the project (after cding to your project directory):

pebble build

Install the app on an emulator for the Pebble Time:

pebble install --emulator basalt

Or, install the app/watchface on your phone.

Requires the new Pebble mobile app (install at rePebble.com/app) -> go to Devices -> tap 3 dots -> Enable Dev Connect -> Sign into GitHub. Then back on your computer, run

pebble login # Sign into GitHub
pebble install --cloudpebble

Learn more

The best way to learn is by checking out our examples apps: weather, simple game, concentricity watchface, and many more! Or try tutorials for a step-by-step guide on how to write a simple C Pebble application.

Installation Problems?

Check the FAQ first - common install, emulator, and pebble tool errors are answered there.

If you're still stuck, ask on the Pebble Developer Forum or in #sdk-dev on the Rebble Discord. Please provide as many details as you can about the issues you may have encountered.

Tip: Copying and pasting commands from your Terminal output will help a great deal.

Overview

  • Install dependencies
  • MacOS
  • Ubuntu
  • Fedora
  • Windows
  • Download the Pebble CLI
  • Next Steps
  • Create a Pebble app
  • Learn more
  • Installation Problems?