Skip to content

Building the first program

Creating a package

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

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.

Building a package

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

pen build

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

./app # -> Hello, world!

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

Next steps