To make cheats, you have to edit a game file, so make its backup first. Find "civ4config" file in the game folder and change the "CheatCode = 0" line to "CheatCode = chipotle". Then, while in the game, press ~ to open the console window and enter one of the following codes to activate the corresponding cheat function:
Display all cheat codes: help
Change players gold; 0 is active player: Player.changeGold [player #], [gold]
Set players gold; 0 is active player: Player.setGold [player #], [gold]
Turn off music: Sound.noMusic
Reload audio scripts: Sound.reload
Play sound AS2D, AS3D, ASSS: Sound.play string [filename]
Finds entities with black emissivity: Graphics.FindBlackPlotsAndCities
Hide attachables: Graphics.HideAttachables
Force light update on all entities: Graphics.ForceLightingUpdate
Rebuild terrain and lighting: Graphics.ReBuildTerrain
Set Hill scale: Graphics.SetHillScale [floating #]
Set Peak scale: Graphics.SetPeakScale [floating #]
Set water plane height: Graphics.setWaterHeight [floating #]
Set render depth for quad tree: Graphics.quadTreeDepth [integer]
Toggle water: Graphics.toggleWater
Display terrain: Graphics.displayTerrain bool bOn
Toggle grids: Graphics.toggleGridMode
Dump texture palette: Graphics.showTexturePalette
Set texturing: Graphics.setTextureMode bool bOn
Set wireframe: Graphics.setWireframe bool bOn
Morph the globeview count times: Profile.morphGlobe [integer]
Rebuild city indicated # of times: Profile.rebuildCity [x coordinate], [y coordinate], [integer]
Rebuild plot indicated # of times: Profile.rebuildPlot [x coordinate], [y coordinate], [integer]
Dump animation information to debugging window: Profile.dumpAnimLog
Set minimum time to capture spikes; set to 0 to disable spikelock: Profile.setSpikeThreshold [milliseconds]
Dump console command history: Console.History
Writes HTML documentation for the current console commands: Console.CreateDocumentation [filename]
Clear the console: Console.Clear
Display current logging status: Log.status
Toggle logging: Log.toggle
Clear the log file: Log.clear
Erase units and cities from map: Map.empty
Fill map with units and cities for performance testing: Map.fill
Replot Goodies: Map.generateGoodies
Replot Bonuses: Map.generateBonuses
Replot Features: Map.generateFeatures
Replot Rivers: Map.generateRivers
Erase Rivers, Features, Bonuses and Goodies: Map.eraseGameElements
Replace Rivers, Features, Bonuses and Goodie: Map.replaceGameElements
Change the active landscape info: Map.setActiveLandscapeID [landscape #]
Erase all plots: Map.erasePlots
Reload Game Text xml files: Xml.reloadGameText
Reload Civ4TerrainSettings.xml: Xml.reloadLandscapeInfo
Reload Civ4ArtDefines.xml: Xml.reloadArtDefines
Output of texture loads/accesses to debug output: Game.toggleTextureAccessInfo
Force AI to play for indicated # of turns: Game.AIPlay [integer]
Create sequences associated with the selected unit: Game.createSelectedUnitKFs
Free sequences associated with the selected unit: Game.freeSelectedUnitKFs
Save WorldBuilder save description file: Game.saveWorldBuilderSave [filename]
Scroll to the bottom: Game.scrollBottom
Scroll to the top: Game.scrollTop
Clear the listbox below: Game.clear
Display the help popup: Game.helpScreen
Toggle debug mode: Game.toggleDebugMode
Debugging: Game.showWBPalette bool bCreate
Animation Test Tool: Game.toggleAnimationTest
GFC directory chooser: Game.gfcDirChooser
GFC file dlg window: Game.gfcfiledlg
Set debugging value: App.setMooseDbg2 [integer]
Set debugging value: App.setMooseDbg1 [integer]
Set maximum frame rate; 0 to disable: App.setMaxFrameRate [floating #]
Update existing value in the ini file: App.setIniFile [group key], [key], [value]
Crash game: App.crash
Return the application link time: App.getBuildTime
GFC test popup: Game.testGFC [integer]
Python test popup: Game.testPythonPopup
Test popup: Game.testPopup
Compute md5 checksum for the directory tree specified: App.calcFolderChechsum [directory]
Test player unit iteration: Player.testUnitIter [integer]