elm-spa init

create a new project from the command line.

the cli is your pal.

If you want to create a new project, you can use the elm-spa init command like this:

elm-spa init your-project

Here, you can replace your-project with whatever you like!

choose your ui

By default, running elm-spa init will use elm-ui, a package that let's us build web UIs without HTML or CSS.

It's pretty neat.

If you'd like to use the standard elm/html library, you can provide the --ui flag like this:

elm-spa init --ui=Html your-project

This creates an elm-spa.json file with Html set as the ui option in your project folder.

That means elm-spa add will generate import Html instead of import Element for all your new pages!

next up: add