Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Repository files navigation

bcncli

Archiving since I am not playing the game anymore.

Go VersionLicense

A fast, ergonomic command‑line client for the BConomy game API. bcncli lets you fetch information about pets, eggs, factions, market, and more — all without leaving your terminal.


Table of Contents


Features

AreaWhat you can do
PetsList your pets
EggsList eggs and inspect their metadata
ProfilesView any player profile by ID
FactionsGet faction stats and member lists
MarketBrowse live listings and filter by category
LeaderboardsCheck rankings for players or factions
LogsTail or export the global event log
Game DataDownload full static datasets for offline crunching
SearchRun full‑text searches across any game resource

bcncli is built with Cobra and Viper, so you get familiar flag handling, config files, and shell completions out of the box.


 Quick Start

 Installation

With Go >= 1.24.2 on your PATH:

# Install the latest tagged binary
$ go install github.com/earentir/bcncli@latest

→ The compiled executable will land in $(go env GOPATH)/bin. Make sure that directory is in your PATH.

 Configuration

Every request to the BConomy API needs an API key. bcncli will look for it in the following order (first win):

1. --apikey flag 2. BCONOMYAPI environment variable

Tip: you can also set the BCONOMYAPI environment variable in your shell profile (e.g., .bashrc, .zshrc) to avoid passing the API key every time.

export BCONOMYAPI={APIKEYHERE}

Tip: you can also add it to a script then make it exec and finally just source it each time for the current session:

cat <<<"export BCONOMYAPI={APIKEYHERE}"> .env
source .env

 Command Reference

Usage: bcncli [flags] <command>
CommandDescription
petShow pet information
eggShow egg information
profileDisplay a player profile
factionInspect factions
marketList market offers with rich filters
leaderboardShow top players/factions
logsStream or download server logs
gamedataExport BConomy static data
searchFree‑text search across resources

Run bcncli <command> --help for the full tree of sub‑commands and options.


 Examples

TaskCommand
Show your own profilebcncli profile show --user 141964
List your petsbcncli pet owned 141964
List eggsbcncli egg owned 141964
View potion listingsbcncli market list --category "potions"
Top 10 playersbcncli leaderboard list --limit 10
Last 20 logsbcncli logs list --limit 20
Export all game databcncli gamedata export --output game_data.json
Search quests for “Dragon Hunt”bcncli search quests --query "Dragon Hunt"

 Building from Source

# Clone and build
$ git clone https://github.com/earentir/bcncli.git;cd bcncli;go build

The resulting bcncli binary is completely static and has zero runtime dependencies – ship it anywhere.


 Shell Completions

Generate shell completions and drop them somewhere on your PATH:

# Bash
$ bcncli completion bash > /etc/bash_completion.d/bcncli
# Zsh
$ bcncli completion zsh >"${fpath[1]}/_bcncli"

Fish and PowerShell completions are also supported – see bcncli completion --help.


 Contributing

1. Fork this repo and create a feature branch (git checkout -b feature/my-awesome-thing) 2. Commit your changes (git commit -am 'Add awesome thing') 3. Push and open a pull request – don’t forget to run go test ./... and go vet ./... first

I ❤️ issues and PRs – even small docs tweaks help.


 Roadmap

  • Finish all the commands
  • Native JSON/CSV output selectors (--output-format)
  • CI pipeline with automated builds for Windows/macOS/Linux

Want something else? Open an issue and let me know.


 License

bcncli is released under the GNU General Public License v2.0.

About

BConomy cli client

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages