Fandom

Pico-8 Wiki

CommandPrompt

162pages on
this wiki
Add New Page
Comments0 Share

The Pico-8 command prompt lets you interact with Pico-8 and the currently loaded cartridge using typed commands. By default, the command prompt is the first thing you see when starting Pico-8.

Commandprompt

You use the command prompt to load and save cartridges, manage Pico-8 files, organize them into folders ("directories"), and perform other actions such as starting Splore.

> install_demos
> load demos/jelpi
> run

For a list of available commands, see CommandReference.

You can type Lua statements (such as print()) at the prompt to execute them. This is a good way to experiment with the Pico-8 built-in functions and try Lua.

Note: The Pico-8 prompt only accepts commands and statements. To see the value of an expression, you must use the print() statement.

Getting back to the command prompt Edit

When playing a cartridge, you can interrupt the program and return to the command prompt by pressing the Escape key. You can enter Lua statements at the prompt to examine or change the program's global variables. In many cases, you can use the resume command to continue the program (though see resume for caveats).

If you started the cartridge from Splore, pressing Escape opens the Splore pause menu. To get to the command prompt from here, select Splore from this menu, then press Escape again.

At the command prompt, pressing Escape opens the cartridge editor interface. To return to the command prompt from here, press Escape again.

The command prompt is exclusive to the Pico-8 app, and is not available from the Pico-8 web player.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.