CLI handmatige installatie

Handmatige installatie en PATH-configuratie voor Bobcorn CLI.

Handmatige configuratie

Als je het Instellingenpaneel liever niet gebruikt, kun je de CLI handmatig configureren.

Optie A: Zelfinstallatie vanuit het CLI-binary

Zoek het CLI-binary in de Bobcorn-applicatiebundel en voer het install-commando direct uit:

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

Dit registreert automatisch het bobcorn-commando in je PATH.

Optie B: Handmatig aan PATH toevoegen

Maak een wrapper-script dat het CLI-binary aanroept met Node.js:

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" %*

Zorg ervoor dat de wrapper-map in je PATH staat. Op macOS/Linux voeg je ~/.local/bin toe aan je shell-profiel. Op Windows voeg je de wrapper-map toe aan je gebruikers-PATH-omgevingsvariabele.

Tip
Node.js moet op je systeem geinstalleerd zijn om de CLI uit te voeren. Als je het nog niet hebt, download het dan van nodejs.org.