$ gem install hanami
Open up a command line or terminal. To generate a new hanami application, use hanami new followed by the name of your app and the rspec test param.
$ hanami new “myapp” –test=rspec
Obs. By default Hanami sets Minitest as testing framework.
This will create a hanami application called myapp in a myapp directory and install the gem dependencies that are already mentioned in Gemfile using bundle install.
To switch to this directory, use the cd command, which stands for change directory.
$ cd my_app
$ bundle install
The myapp directory has a number of auto-generated files and folders that make up the structure of a Hanami application. Following is a list of files and folders that are created by default: