Tcgwiki CLI
The official CLI for the Tcgwiki REST API.
It is generated with Stainless.
Installation
Installing with Go
go install 'github.com/jihuanshe/tcgwiki-cli/cmd/tcgwiki@latest'
Running Locally
./scripts/run args...
Usage
The CLI follows a resource-based command structure:
tcgwiki [resource] [command] [flags]
tcgwiki qa list \
--game-key game_key \
--page 1 \
--page-size 1 \
--skip-auth
For details about specific commands, use the --help flag.
Global Flags
--help - Show command line usage
--debug - Enable debug logging (includes HTTP request/response details)
--version, -v - Show the CLI version
--base-url - Use a custom API backend URL
--format - Change the output format (auto, explore, json, jsonl, pretty, raw, yaml)
--format-error - Change the output format for errors (auto, explore, json, jsonl, pretty, raw, yaml)
--transform - Transform the data output using GJSON syntax
--transform-error - Transform the error output using GJSON syntax