Commands - espresso20/civcli GitHub Wiki

Commands

This page lists all available commands in CivIdleCli and explains how to use them.

Basic Commands

Command Description Example
help Display available commands help
status Show detailed status of your civilization status
quit Exit the game quit
clear Clear the console screen clear

Resource Management

Command Description Example
gather <resource> <count> Assign villagers to gather resources gather wood 2
assign <villager_type> <resource> <count> Assign villagers to tasks assign villager food 3
unassign <villager_type> <resource> <count> Unassign villagers from tasks unassign villager wood 1

Building Management

Command Description Example
build <building> Build a structure build farm
buildings List available buildings and their costs buildings

Villager Management

Command Description Example
recruit <villager_type> <count> Recruit new villagers recruit villager 2

Research and Knowledge

Command Description Example
research <technology> Start researching a technology research agriculture
techs List available technologies for research techs
library [topic] Access the in-game library library villagers

Game Save Management

Command Description Example
save <filename> Save the current game save mygame
load <filename> Load a saved game load mygame
saves List all saved games saves

Statistics

Command Description Example
stats Display game statistics stats

Command Usage Details

Gather Command

gather <resource> <count>

Temporarily assigns the specified number of idle villagers to gather a resource.

Valid resources:

  • food
  • wood
  • stone
  • gold
  • knowledge

Assign Command

assign <villager_type> <resource> <count>

Permanently assigns the specified number of idle villagers to gather a resource.

Valid villager types:

  • villager
  • scholar

Build Command

build <building>

Builds a structure if you have enough resources.

Available buildings:

  • hut
  • farm
  • lumber_mill
  • mine
  • market
  • library

Research Command

research <technology>

Begins researching a technology using your accumulated knowledge.

Use the techs command to see available technologies.

Library Command

library [topic]

Access the in-game library. If no topic is specified, shows a list of topics.

Available topics:

  • villagers
  • resources
  • buildings
  • ages
  • commands
  • tips

Tab Completion

The game supports tab completion for commands:

  1. Type the beginning of a command and press Tab to complete it
  2. Press Tab after typing a command to see available subcommands or options
  3. Press Tab repeatedly to cycle through multiple matching options
⚠️ **GitHub.com Fallback** ⚠️