A small CLI tool for developers to trigger and monitor plugin set builds in
dev mode on Plenty systems.
It handles authentication automatically and caches the access token until it is
about to expire.
- π Automatic login with credentials per PID
- πΎ Local token caching (
~/.plenty_auth.env)
β avoids unnecessary login requests - βοΈ Simple config file in homedir (
~/.plenty_config.yml)
β keeps credentials outside of repo - π Trigger plugin set builds in dev mode
- β³ Poll build status and display errors clearly
Clone this repo and make the script executable:
git clone https://github.com/plentymarkets/dev-sync.git
cd plenty-dev-sync
chmod +x syncPluginSetEach developer must create a hidden config file in their homedir:
# ~/.plenty_config.yml
70503:
username: your_username
password: "your_password"
Each developer manages their own credentials locally.
Run the command with PID and Set ID:
./syncPluginSet <PID> <SET_ID>Example:
./syncPluginSet 70503 170503β your Plenty account PID1β plugin set ID you want to build in dev mode
- First run β logs in and saves token in
~/.plenty_auth.env - Subsequent runs β reuses the token
- If the token is close to expiry (< 5 minutes left), a new login request is made automatically
π Starting plugin build for set 1 on PID 70503
β
Build request sent
β³ Waiting for build to finish...
π Build finished
OK (6 tests, 0 failures)
Missing credentials
β Missing credentials for PID 70503 in ~/.plenty_config.yml
β Add your PID, username, and password to ~/.plenty_config.yml.
Token expired
β Automatically handled.
If issues persist, delete ~/.plenty_auth.env and rerun.
Internal tool for Plenty developers. Not for production use.