Skip to content

Building the first program

To create your first package, run a pen create command with your package’s name in your terminal.

Terminal window
pen create foo

Then, you should see a directory named foo in your current directory. When you go into the directory, you should see a main.pen source file and a pen.json file for package configuration.

To build the package, run a pen build command in the foo directory.

Terminal window
pen build

Then, you will see an executable file named app in the directory. Run it to see your first “Hello, world!”

Terminal window
./app # -> Hello, world!

Now, you can start editing source files and build your own application in Pen!