Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/geode-sdk/docs/llms.txt

Use this file to discover all available pages before exploring further.

To install the SDK we will be using the Geode CLI installed on the previous step.

Installation

To download the SDK, run the following command:
geode sdk install
This should set the GEODE_SDK environment variable, which you can test after restarting your terminal:
echo %GEODE_SDK%
If that command prints out the path you installed the SDK to, then it has worked correctly. To develop mods, you will either need to build Geode from source, or install prebuilt binaries using the following command:
geode sdk install-binaries

Cache

It is highly recommended to set the CPM_SOURCE_CACHE environment variable. This will prevent CMake from flooding your filesystem with duplicates of the same repositories, and allow you to build mods offline (given you have built them online at least once).
To do this, create a directory somewhere permanent, and set the environment variable CPM_SOURCE_CACHE to the full path to that folder.

Updating

You will need to manually update your local SDK every once in a while, which you can do by running this command:
geode sdk update
Every time you update the SDK, you should update its prebuilt binaries too:
geode sdk install-binaries

Nightly Version

You can also switch to the nightly version, which uses the latest commit:
geode sdk update nightly
Or to go back to stable:
geode sdk update stable

Build docs developers (and LLMs) love