workar
v0.1.39
Published
End-user CLI for the distributed work system.
Downloads
2,919
Readme
workar
End-user CLI for the distributed work system.
Setup
npm install -g workarUsage
Authenticate
Authentication uses email OTP — no password or API key needed. Your email address is your username.
workar auth [--email [email protected]] [--server http://localhost:8787]- Enter your email address (or pass
--email). - A 6-digit code is sent to that address.
- Enter the code — a JWT is saved to
~/.workar/config.json.
The JWT is used automatically for all subsequent commands.
Submit work
workar submit --type image-gen --wait [--out-dir ./output] -- prompt="a red panda" [model=sdxl-lightning]model defaults to sdxl-lightning and can be omitted.
Key-value pairs after -- are passed as work fields. --wait polls for the
result and saves it as work-<workId>.<ext> in --out-dir (default: CWD).
Retrieve a result
workar get [--work-id <id>] [--wait] [--out-dir ./output]Config file
~/.workar/config.json (chmod 600):
{
"serverUrl": "https://...",
"username": "[email protected]",
"jwt": "..."
}The --server flag overrides serverUrl for a single command.
