Skip to content

Latest commit

 

History

History
142 lines (93 loc) · 3.4 KB

File metadata and controls

142 lines (93 loc) · 3.4 KB

Launcher Commands

LumaKit now has a unified launcher. These are the commands users should use most of the time.

If you installed the repo CLI with pip install -e ., use lumakit ... as shown below. If not, run the same commands as python3 -m lumakit ... from the repo root.

On Windows, substitute py -m lumakit ... for python3 -m lumakit .... If the default port 7865 is taken (e.g. by NTKDaemon / Nahimic on MSI laptops), the launcher automatically falls back to the next free port and prints the chosen URL. Set LUMAKIT_WEB_PORT to pin a specific port.

Recommended commands

Start or reuse the backend, then open the web UI:

lumakit open

Check whether LumaKit is running:

lumakit status

Stop the running backend:

lumakit stop

Run the backend in the foreground without opening a browser:

lumakit serve

Generate a systemd unit for always-on mode:

lumakit service install --force

Install a desktop/start-menu shortcut that launches lumakit open:

lumakit shortcut install

When to use each one

Use lumakit open when:

  • you want the normal user flow
  • you want the web UI to open automatically
  • you want LumaKit to start if it is not already running

Use lumakit serve when:

  • you want to watch logs in the terminal
  • you are debugging startup issues
  • you do not want the launcher to open a browser automatically

Use lumakit status when:

  • you want to confirm whether the backend is already up
  • you want to check the web URL quickly

Use lumakit stop when:

  • you are done testing
  • you want to ensure there is no background LumaKit process still running

Use lumakit shortcut install when:

  • you want a click-to-open launcher instead of typing commands
  • you want a Linux app launcher or a Windows desktop / Start Menu shortcut
  • you want that shortcut to start LumaKit if needed, then open the UI

Clean testing flow

If you want to test manually without the boot-time service interfering:

sudo systemctl stop lumakit
lumakit stop
lumakit open

If something looks wrong, switch to foreground mode:

lumakit serve

That will show startup and Telegram errors directly in the terminal.

Always-on mode

If you want LumaKit to start automatically on boot, use the systemd service described in autostart.md.

The service should run:

lumakit service install --force
sudo cp lumakit.service /etc/systemd/system/lumakit.service
sudo systemctl daemon-reload
sudo systemctl enable lumakit.service
sudo systemctl start lumakit.service

The service still runs the backend entrypoint underneath:

python3 -m lumakit serve

That is the always-on path.

Native shortcut install

The shortcut installer is the convenience layer on top of the normal launcher:

lumakit shortcut install

What it does:

  • on Linux, installs an app launcher in ~/.local/share/applications/
  • on Windows, creates a desktop shortcut and a Start Menu shortcut with the bundled LumaKit icon when possible
  • every shortcut launches lumakit open

That means the shortcut does not bypass the launcher logic. It still starts or reuses the backend and opens the web UI normally.

Surface-specific debug commands

These still exist for direct debugging, but they are no longer the recommended normal entrypoints:

python3 -m surfaces.web
python3 -m surfaces.telegram
python3 -m surfaces.cli