Repository navigation
Release 0.2.0: spicrawl partner - #20
Merged
Merged
Conversation
added 2 commits
November 23, 2026 16:10
New command group: partner summary, balance and usage; partner users list, create, get, rename, suspend, reactivate, tier, give and usage; partner tiers list, create, update, default and delete. users create prints the new user's API key alone on stdout. give, suspend and tiers delete ask for confirmation (or --yes); give generates an idempotency key when none is passed and shows it. auth status shows the key type when the API reports it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
spicrawl partner …for a partner account (a platform that resells Spicrawl to its own users).partner summary,partner balance,partner usage [--by day|user]partner users list [--query] [--sort id|used] [--all] …,create <id> [--tier] [--name] [--no-key],get,rename <id> <name> | --clear,suspend,reactivate,tier <id> <tier>,give <id> <credits> [--idempotency-key],usagepartner tiers list,create <name> --requests-per-minute --concurrency --free-credits (--cap N | --no-cap) [--default],update,default,deleteauth statusshows the key type when the API reports it (GET /v1/key); unchanged otherwise.Follows DESIGN.md: JSON when piped (the API body unchanged), stderr only a problem document in JSON mode, exit codes from the error family.
users createprints the new user's API key alone on stdout (KEY=$(spicrawl partner users create user-42 -q)), never on stderr.give,suspendandtiers deleteconfirm on a TTY or need--yes.givegenerates an idempotency key when none is passed and shows it on stderr.Checked
go build,go vet,gofmtclean;go test ./...passes with ~100 new golden files (JSON and human) and unit tests.--jsonmode, exit codes (usage 2, auth 3, request 4, limit 5), the key on stdout only,-qcapture, refusals without a TTY.Release
Bumps npm/package.json to 0.2.0 and turns
## Unreleasedinto the 0.2.0 CHANGELOG section. Merging tags v0.2.0, builds the binaries and publishes @spicrawl/cli 0.2.0.Not in this PR
--jsonmodegivegenerates an idempotency key but does not print it;--no-keyhas no effect in--jsonmode (the output is the API body);users list --all --jsonmerges pages into one object; theUSEDandGIVEN LEFTcolumn headers read like three columns; thegiveprompt shows a balance that can trail by about a minute.openapi.yamlcopy andskill.mdare not updated (refreshed from the docs site bymake spec).