newapi-cli
v0.1.0
Published
Named-command CLI for selected New API endpoints.
Downloads
122
Readme
newapi-cli
Named-command CLI for selected New API endpoints.
Commands
newapi data quota --base-url https://your-newapi.com --access-token xxx --user-id 1 --start 1714492800 --end 1717171199
newapi data quota --start 1714492800 --end 1717171199 --username alice
newapi data users --start 1714492800 --end 1717171199Environment Variables
export NEWAPI_BASE_URL=https://your-newapi.com
export NEWAPI_ACCESS_TOKEN=xxx
export NEWAPI_USER_ID=1Command flags override environment variables.
Supported Endpoints
newapi data quota:GET /api/data/newapi data users:GET /api/data/users
Both endpoints require Admin permission.
Output
Output is compact JSON by default. Use --pretty for formatted JSON.
