Skip to content

Commit c7f1b13

Browse files
author
lpb-docs
committed
fix(lpb): complete --help flag list, correct install.sh usage, dedupe env
- lpb.py --help: add --version, --yes, --non-interactive, --ssh-port, VSCodium dir flags (--data-dir/--user-data-dir/--ext-dir/--base-path) - install.sh usage: plain lpb starts a Pi CLI session (not VSCodium); --without-token hides the token, does not disable auth - lpb.conf.env: remove duplicated LPB_PERSIST_GH_CONFIG line
1 parent abce0f6 commit c7f1b13

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

lpb.conf.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ LPB_AGENT_BROWSER_IDLE_TIMEOUT_MS=300000
6767
# ─── Misc ───────────────────────────────────────────────────────────────
6868
# Persist gh CLI auth to ~/.config/gh inside container
6969
LPB_PERSIST_GH_CONFIG=true
70-
LPB_PERSIST_GH_CONFIG=true
7170

7271
# ─── GHCR Token (image pulls) ──────────────────────────────────────────
7372
# Read-only PAT for GHCR pulls (personal account requires auth).

scripts/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ echo "✓ lpb installed to ${INSTALL_DIR}/lpb"
104104
echo "✓ lpb-config + lpb-devstack installed to ${INSTALL_DIR}/"
105105
echo ""
106106
echo "Usage examples:"
107-
echo " lpb — Start VSCodium at ~ (pick project)"
108-
echo " lpb /path/to/project — Start VSCodium at project"
109-
echo " lpb /path/to/project --port 8080 — Custom port"
110-
echo " lpb --without-token — No auth (localhost only!)"
107+
echo " lpb — Start a Pi CLI session at ~ (pick project)"
108+
echo " lpb /path/to/project — Start a Pi CLI session at project"
109+
echo " lpb /path/to/project --port 8080 — Custom VSCodium port (--web)"
110+
echo " lpb --without-token — Hide token in URL display (--web)"
111111
echo " lpb --stop — Stop container"
112112
echo " lpb --logs — View container logs"
113113
echo " lpb --remove — Remove everything"

scripts/lpb.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,9 +898,13 @@ def apply_overrides(project_dir: str | None = None, project_name: str | None = N
898898
" lpb setup Initial setup wizard (all modes): server, key, model, memory\n"
899899
" lpb doctor Validate the installation (read-only)\n"
900900
" lpb --update Pull latest image(s) (+ self-update launcher)\n"
901+
" lpb --version Show the installed stack version\n"
901902
" lpb --config Show config file location\n"
902903
" lpb --help Show this help\n"
903-
" lpb --tag dev|main|latest Select image pipeline (or --dev / --main)\n\n"
904+
" lpb --tag dev|main|latest Select image pipeline (or --dev / --main)\n"
905+
" --yes Skip confirmation prompts (e.g. with --remove)\n"
906+
" --non-interactive No prompts (env/defaults only)\n"
907+
" --ssh-port <PORT> sshd port for --ssh (default: 2222)\n\n"
904908
"Pi passthrough (after \"--\"):\n"
905909
' lpb /myproject -- -p "summarize" # Non-interactive, process & exit\n'
906910
' lpb /myproject -- --session abc123 # Resume specific session\n'
@@ -911,7 +915,11 @@ def apply_overrides(project_dir: str | None = None, project_name: str | None = N
911915
" --port <PORT> Port (default: from .env or 3000)\n"
912916
" --token <TOKEN> Connection token (default: auto-generated)\n"
913917
" --new-token Generate a fresh token (ignore persisted one)\n"
914-
" --without-token Hide token in URL display (server still requires auth)\n\n"
918+
" --without-token Hide token in URL display (server still requires auth)\n"
919+
" --data-dir <DIR> VSCodium data directory\n"
920+
" --user-data-dir <DIR> VSCodium user data directory\n"
921+
" --ext-dir <DIR> VSCodium extensions directory\n"
922+
" --base-path <DIR> Base path for the editor\n\n"
915923
"Examples:\n"
916924
" lpb /path/to/project Start Pi CLI at project\n"
917925
' lpb /path -- -p "fix the bug" Non-interactive pi run\n'

0 commit comments

Comments
 (0)