Skip to content

Getting started with Lunni CLI

Lunni's command line interface lets you set up projects ready for continuous deployment with Lunni, straight from the command line.

Installation

To install Lunni CLI, make sure you have Python version 3.9 or later. You'll also need pipx, a package manager for Python CLI tools. You can install both fairly easily:

sudo apt install python3 python3-pip python3-venv
python3 -m pip install --user pipx
python3 -m pipx ensurepath
# Assuming you have Homebrew (https://brew.sh/):
brew install python@3 pipx
pipx ensurepath
# Assuming you have Chocolatey (https://chocolatey.org/) (untested):
choco install pipx --source python
python3 -m pipx ensurepath

Then, to install Lunni CLI:

pipx install lunni-cli
lunni --install-completion [bash|zsh|fish|powershell]

This installs Lunni CLI globally, so you can run lunni commands from any directory. You can check the version and find out some basic information about the tool with the following command:

lunni version

CLI commands

To get a list of commands, run lunni --help. To get a list of command arguments and flags run lunni COMMAND --help.

lunni create

Set up projects ready for deployment on Lunni (or Docker Swarm).

We provide some templates you can use:

lunni dev & run

Run an app locally. This just wraps docker-compose up and docker-compose run respectively, but it allows you to save some keystrokes.