
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
empire-cli
Advanced tools
Status: Feature Complete — 2 maps, diplomacy, buildings, AI narrator. Play it!
A CLI turn-based strategy RPG where you build armies, expand your empire, and conquer the world. Open source, runs in any terminal.


# Play instantly (no install needed)
npx empire-cli
# Or clone for development
git clone https://github.com/lppduy/empire-cli.git
cd empire-cli
npm install
npm start
1. Start a new game → pick a faction (e.g. Iron Legion)
2. "map" — see the world map
3. "info northkeep" — inspect a territory
4. "recruit northkeep 3" — train 3 units (costs 3💰 + 2🍖 each)
5. "move northkeep greenwood 3" — march 3 units to Greenwood
6. "build northkeep walls" — build walls for defense (costs 🪵🪨)
7. "attack greenwood silver" — attack Silver Bay from Greenwood
8. "next" — end your turn (or use all 3 actions, auto-advances)
8. Watch enemy factions react — then plan your next move!
Goal: Conquer all territories to win.
When starting a new game, you pick a map, choose a faction, then customize your leader name, nation name, and slogan (all optional — press Enter to skip).
You get 3 actions per turn. map, info, status, help, save are free (don't cost actions).
| Command | Description |
|---|---|
map | Show world map |
info <territory> | Show territory details & neighbors |
status | Show your resources and army count |
move <from> <to> [n] | Move n units between territories (all if omitted) |
recruit <territory> <n> | Recruit n units at a territory |
attack <from> <to> | Attack enemy territory from yours |
build <territory> <type> | Build walls/barracks/market |
next | End turn early |
save [slot] | Save game |
ally <faction> | Propose alliance |
peace <faction> | Propose peace treaty |
trade <faction> <n> <res> for <res> | Trade resources |
diplo | View diplomatic relations |
help | Show commands |
quit | Exit |
| Map | Territories | Factions | Style |
|---|---|---|---|
| The Mainland | 12 | 6 factions | Classic continental war |
| The Shattered Isles | 14 | 6 factions | Island chain with chokepoints |
The Mainland:
| Faction | Personality | Strengths |
|---|---|---|
| 🔴 Iron Legion | Aggressive | High stone, strong start |
| 🟢 Green Pact | Defensive | High food & wood |
| 🟡 Sand Empire | Mercantile | High gold reserves |
| 🟣 Void Covenant | Diplomatic | Mountain fortress, fertile south |
| 🔵 Frost Wardens | Defensive | Stone-rich northern highlands |
| 🔴 Crimson Horde | Aggressive | Scrappy eastern raiders |
The Shattered Isles:
| Faction | Personality | Strengths |
|---|---|---|
| 🔵 Tide Lords | Mercantile | High gold & food, coastal power |
| 🔵 Storm Kin | Aggressive | High wood & stone, mountain base |
| 🔴 Flame Brood | Aggressive | Massive stone, volcanic islands |
| 🟣 Mist Walkers | Diplomatic | Balanced resources, forest cover |
| 🟢 Deep Ones | Defensive | Forest & mountain, hidden islands |
| 🟡 Wraith Fleet | Aggressive | Gold-rich, sunken city raiders |
| Building | Cost | Effect |
|---|---|---|
| 🧱 Walls | 10🪵 15🪨 | +0.3 defense bonus |
| 🏛️ Barracks | 8🪵 5🪨 | Recruit costs 2💰 instead of 3💰 |
| 🏪 Market | 10💰 5🪵 3🪨 | +2💰 income per turn |
Enable epic fantasy narration for battles, turn summaries, and victories. The game works perfectly without it.
Setup: Choose "Narrator Settings" from the main menu, then pick a provider:
| Provider | Setup |
|---|---|
| Gemini (recommended) | Free API key from aistudio.google.com/apikey |
| Ollama | Install ollama.com, run ollama pull llama3, no key needed |
Config saved at ~/.empire-cli/config.json.
npx empire-cli) ~/.empire-cli/saves/)npm start # Play the game
npm run build # Compile TypeScript
MIT
FAQs
CLI strategy RPG with AI game master
The npm package empire-cli receives a total of 24 weekly downloads. As such, empire-cli popularity was classified as not popular.
We found that empire-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.