webOS Dev Mode CLI

A command-line tool to extend the webOS dev mode session timer.
Installation
Docker
Click to expand
A Docker image is available at ghcr.io/gabe565/webos-dev-mode
sudo docker run --rm -it ghcr.io/gabe565/webos-dev-mode cron --token SESSION_TOKEN
Homebrew (macOS, Linux)
Click to expand
Install webos-dev-mode from gabe565/homebrew-tap:
brew install gabe565/tap/webos-dev-mode
APT (Ubuntu, Debian)
Click to expand
-
If you don't have it already, install the ca-certificates package
sudo apt install ca-certificates
-
Add gabe565 apt repository
echo 'deb [trusted=yes] https://apt.gabe565.com /' | sudo tee /etc/apt/sources.list.d/gabe565.list
-
Update apt repositories
sudo apt update
-
Install webos-dev-mode
sudo apt install webos-dev-mode
RPM (CentOS, RHEL)
Click to expand
-
If you don't have it already, install the ca-certificates package
sudo dnf install ca-certificates
-
Add gabe565 rpm repository to /etc/yum.repos.d/gabe565.repo
[gabe565]
name=gabe565
baseurl=https://rpm.gabe565.com
enabled=1
gpgcheck=0
-
Install webos-dev-mode
sudo dnf install webos-dev-mode
AUR (Arch Linux)
Click to expand
Install webos-dev-mode-bin with your AUR helper of choice.
Manual Installation
Click to expand
Download and run the latest release binary for your system and architecture.
Usage
- Set up the webOS dev mode by following the webosbrew guide.
- Fetch the session token:
ares-novacom --run 'cat /var/luna/preferences/devmode_enabled; echo'
Now you are ready to run webos-dev-mode commands.
- To extend the webOS dev mode session:
webos-dev-mode extend --token SESSION_TOKEN
- To run a task which will extend the webOS dev mode session once per day:
webos-dev-mode cron --token SESSION_TOKEN
- To check the current session expiration:
webos-dev-mode check --token SESSION_TOKEN
Flag values can also be set using environment variables. To do this, capitalize all characters, replace - with _, and prefix with WEBOS_. For example, --token=example would become WEBOS_TOKEN=example, and --request-timeout=10m would become WEBOS_REQUEST_TIMEOUT=10m.
For full command-line reference, see docs.