Skip to content

Using Lover

Wolfyxon edited this page Oct 21, 2024 · 4 revisions

Lover is a command-line interface, which means it doesn't have a graphical interface and requires you to use the terminal.

Project commands

Commands that will only work inside a Lover project. You need to run your terminal (or enter the directory with cd) in your project's directory.

See setting up a project.

run

lover run

You can also pass arguments for your game if it uses them.

lover run idk --do-stuff

Building

build

lover build [targets...]

For example:

lover build love
lover build linux win64 win32

See the target command.

clean

Removes files generated by build.

lover clean

parse

Checks all of your lua scripts for errors.

Performed automatically on each run and build.

lover parse

Global commands

Commands that work outside of projects.

new

Initializes a new project.

lover new <project name>

Example

lover new MyCoolGame

target

Shows info or lists build targets.

lover target [target]

Example

lover target
lover target win64

Lover info

help

Lists or shows usage of a command.

lover help [command]

Example

lover help
lover help build

version

Checks the current installed Lover version.

lover version

Dependency management

install

Installs a dependency.

lover install <dependencies...>

Example

lover install love-linux love-win64

uninstall

Removes installed dependencies

lover uninstall <dependencies...>

Example

lover uninstall love-win32

dep

Shows info or lists downloadable dependencies.

lover dep [dependency]

Example

lover dep
lover dep love-linux

fetch

Gets remote details of a dependency (such as the repo, download link etc.). It's made for testing Lover so you're probably not going to need it.

lover fetch <dependency>

Example

lover fetch love-linux