CLI manuelle Einrichtung

Manuelle Installation und PATH-Konfiguration fuer Bobcorn CLI.

Manuelle Einrichtung

Wenn Sie das Einstellungsfenster nicht verwenden moechten, koennen Sie das CLI manuell einrichten.

Option A: Selbstinstallation ueber das CLI-Binary

Suchen Sie das CLI-Binary im Bobcorn-Anwendungspaket und fuehren Sie den install-Befehl direkt aus:

macOS
node /Applications/Bobcorn.app/Contents/Resources/app.asar.unpacked/out/cli/index.cjs install
Windows (PowerShell)
node "$env:LOCALAPPDATA\Programs\Bobcorn\resources\app.asar.unpacked\out\cli\index.cjs" install

Dadurch wird der bobcorn-Befehl automatisch in Ihrem PATH registriert.

Option B: Manuell zum PATH hinzufuegen

Erstellen Sie ein Wrapper-Skript, das das CLI-Binary mit Node.js aufruft:

macOS / Linux (~/.local/bin/bobcorn)
#!/bin/sh
exec node "/Applications/Bobcorn.app/Contents/Resources/app.asar.unpacked/out/cli/index.cjs" "$@"
Windows (%LOCALAPPDATA%\Bobcorn\cli\bobcorn.cmd)
@echo off
node "%LOCALAPPDATA%\Programs\Bobcorn\resources\app.asar.unpacked\out\cli\index.cjs" %*

Stellen Sie sicher, dass das Wrapper-Verzeichnis in Ihrem PATH enthalten ist. Unter macOS/Linux fuegen Sie ~/.local/bin zu Ihrem Shell-Profil hinzu. Unter Windows fuegen Sie das Wrapper-Verzeichnis zu Ihrer Benutzer-PATH-Umgebungsvariable hinzu.

Tipp
Node.js muss auf Ihrem System installiert sein, um das CLI auszufuehren. Falls nicht vorhanden, laden Sie es von nodejs.org herunter.