Command Line


We can generate a new project via hanami new, followed by the name that we want to use.

% hanami new bookshelf


The default architecture for a newly generated project is Container.

We can use the --architecture argument (aliased as --arch) to specify a different architecture.

It supports:

The following command will generate an admin project that uses the Application architecture.

% hanami new admin --arch=app


The default storage used is a toy file system database. This is because we want to provide a quick prototyping tool.

We can use the --database argument to let Hanami to generate code for a specific data store.

It supports:

Testing Framework

The default testing framework is Minitest.

We can use the --test argument to specify a different framework, from the list below:

Prev: Assets - Use Your Own Assets Management Tool
Next: Command Line - Generators
Looking for Lotus? We renamed the project and it's now called Hanami. Read the announcement.