Skip to content

Cli

The cli provides various commands to manage your project lifecycle, from creation to deployment.

Terminal window
frizzante -cMyProject
# or
frizzante --create-project MyProject

Creates a new project in a new directory using the given name.

  • DirectoryMyProject
    • main.go
    • Directoryapp
      • index.html
Terminal window
frizzante -g
# or
frizzante --generate

This command generates code and/or resources.

Terminal window
frizzante --configure

Runs —generate=“air,bun” and then —install.

This will generate Air and Bun binaries in .gen/{air,bun}.

  • Directory.gen
    • Directoryair
      • air
    • Directorybun
      • bun
Terminal window
frizzante -i
# or
frizzante --install

Installs Go and JavaScript packages from go.mod and app/package.json.

  • go.mod
  • Directoryapp
    • package.json
Terminal window
frizzante -u
# or
frizzante --update

Updates Go and JavaScript packages from go.mod and app/package.json.

  • go.mod
  • Directoryapp
    • package.json
Terminal window
frizzante -p
# or
frizzante --package

Runs vite build and vite build --ssr in order to package the the app directory into app/dist.

  • Directoryapp
    • Directorydist
      • Directoryclient
        • Directoryassets
          • index-{hash}.css
          • index-{hash}.js
        • index.html
      • server.js

The output contains a client directory which can be simply served as is to the client and a server.js file that can be executed on the server in order to render the contents of the application in advanced.

Terminal window
frizzante --package-watch

Runs —package in watch mode.

Terminal window
frizzante -d
# or
frizzante --dev

Runs Air and —package-watch in parallel.

Terminal window
frizzante -b
# or
frizzante --build

Runs —package and then builds the Go program in .gen/bin/app.

  • Directory.gen
    • Directorybin
      • app
Terminal window
frizzante --check

Runs eslint and svelte-check in your app directory in order to detect code syntax and style errors.

Terminal window
frizzante -f
# or
frizzante --format

This will run go fmt ./... and prettier --write . in your app directory.

Terminal window
frizzante --touch

Creates placeholder files in app/dist.

Terminal window
frizzante --clean-project

Removes directories .gen, .vite, app/dist, app/node_modules and then runs —touch.

Terminal window
frizzante --reset

Deletes frizzante’s global cache.

Terminal window
frizzante -y
# or
frizzante --yes

Automatically confirms all prompts without user interaction.

Terminal window
frizzante -v
# or
frizzante --version

Displays the version of the binary.

Terminal window
frizzante -h
# or
frizzante --help

Shows the complete list of available commands and options.

Terminal window
frizzante

Running frizzante without any flags starts an interactive menu where you can select commands using arrow keys.