| layout | default |
|---|---|
| title | Installing Geode CLI |
| nav_exclude | true |
| description | How to set up Geode CLI |
Geode CLI is the command-line interface for working with Geode, intended mainly for developers. It comes with many important tools such as packaging mods into .geode files, creating spritesheets, creating bitmap fonts, etc.. The CLI, if installed, will be automatically invoked by Geode CMake files, so you likely won't need to use it a lot manually; however, for Geode mod development, it is very much recommended to have it installed as you will have to manually create resources and .geode files otherwise.
You can find the latest release of CLI on the Release page on its repo. Do note that this release may be a little outdated; please let us know if it seems to be missing features, and we'll be sure to create a new release.
You can build the CLI yourself using Rust. Clone the git repo using git clone https://github.com/geode-sdk/cli and then run cargo build to build it. Do note that before you can run CLI on Windows, you need to manually move libgeode.dll from the target/debug/deps directory to target/debug (we don't know why Rust doesn't move it for us). You can do this with the command copy target/debug/deps/libgeode.dll target/debug.
⚠️ Note: this section is for Windows.
In order for the CLI to be accessible from anywhere on your computer, it needs to be added to your PATH environment variable. If you know what that means, you know how to do it; otherwise, follow these steps:
-
Select the CLI executable in File Explorer, Shift + Right-Click it and select
Copy as Path -
Search
Edit the system environment variableson Windows search. Alternatively, you can open up Control Panel and search for it, then selectEdit the system environment variablesor to skip straight to step 3 selectEdit environment variables for your account. -
Click
Environment Variables... -
In the top
User variablessection, select thePathvariable and clickEdit -
Now click
Newand paste the path of the CLI executable you copied at Step 1. Remove the\geode.exefrom the end. -
Click OK to close the environment variable windows.
-
Open up Windows search and open
cmdorpowershell -
Type
geodeand hit Enter. If CLI was installed correctly, you should see the CLI help displaying its version and commands.