teamx-projects
v1.1.4
Published
TeamX Projects uploader for TeamX Discord Services Projects API (standalone, hardwired to teamx-discord-services.fly.dev).
Downloads
534
Readme
teamx-cli (standalone)
A standalone Node.js CLI for devs to upload Projects and Artifacts to the TeamX Discord Services instance.
This CLI is hardwired to:
- https://teamx-discord-services.fly.dev
So there’s no “oops I pointed at localhost” situation.
Requirements
- Node.js 18+ (uses built-in
fetch) - A dev API key from TeamX:
TEAMX_DEV_API_KEY
Install locally (no publish)
From this folder:
npm install
npm linkNow you can run:
teamx --helpOr run without linking
npm install
node ./bin/teamx.js --helpConfigure
Set your dev key:
macOS/Linux
export TEAMX_DEV_API_KEY="YOUR_LONG_SECRET_KEY"Windows PowerShell
$env:TEAMX_DEV_API_KEY="YOUR_LONG_SECRET_KEY"Commands
List projects:
teamx projects listCreate project (dev key required):
teamx projects create --name "My Project" --version 1.0.0 --category Security --public --download-url "https://..." --description "..."Upload artifact file:
teamx artifacts upload <PROJECT_ID> --file "./dist/build.zip" --name "windows-build" --type fileAdd artifact link:
teamx artifacts add <PROJECT_ID> --name "docs" --type link --url "https://docs.example.com"Update project status:
teamx status set <PROJECT_ID> --status degraded --message "Investigating issues"Notes:
- If you get
401 Unauthorized, yourTEAMX_DEV_API_KEYis wrong or the server isn’t configured with the same key.
