Skip to content

Getting Started

Make sure you have Rust installed and cargo available in your terminal.

Install the TilePad CLI:

Terminal window
cargo install tilepad-cli

Scaffold out a new plugin with:

Terminal window
tilepad create

TilePad provides templates and libraries for Javascript, TypeScript, and Rust however any language that can compile to a native binary or that can be run by NodeJS can be used with TilePad, provided that you manually implement the TilePad websocket protocol.

To speed up local development and prevent yourself from having to continuously rebuild and install your plugin. You can use the following command from within your plugin folder to link your development plugin folder with TilePad.

Terminal window
tilepad link

If you make changes to your plugin manifest and want TilePad to pick them up without restarting the whole app you can use the following command:

Terminal window
tilepad reload-plugins

When your plugin is ready for distribution. Ensure anything that should be included within your plugin is present within the .tilepadPlugin folder (This includes your build artifacts, the plugin templates have this directory structure setup for you by default)

Run the following command to bundle your plugin into a .tilepadPlugin file:

Terminal window
tilepad bundle