Cli: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bumcheekcity
m Created page with ' The CLI (Command Line Interface) is a way for users to quickly do things in KoL without having to use either the relay browser or Mafia's menus. For example, it is quicker to ty…'
 
imported>Bumcheekcity
Line 4: Line 4:
==Cli Commands (version 13.5)==
==Cli Commands (version 13.5)==
! - list the Dungeons of Doom potions you've identified.
! - list the Dungeons of Doom potions you've identified.
*.php* - visit URL without showing results.
*.php* - visit URL without showing results.
*brewery*[?] [ daily special | item ] - show daily special [or consume it or other restaurant item].
*brewery*[?] [ daily special | item ] - show daily special [or consume it or other restaurant item].
*kitchen*[?] item - consumes item at Hell's Kitchen, if available.
*kitchen*[?] item - consumes item at Hell's Kitchen, if available.
*mirror* [filename] - stop [or start] logging to an additional file.
*mirror* [filename] - stop [or start] logging to an additional file.
<inline-ash-script> - embed an ASH script in a CLI script.
<inline-ash-script> - embed an ASH script in a CLI script.
aa skill - set default attack method.
aa skill - set default attack method.
abort [message] - stop current script or automated task.
abort [message] - stop current script or automated task.
acquire item - ensure that you have item, creating or buying it if needed.
acquire item - ensure that you have item, creating or buying it if needed.
adv*[?] last | [count] location - spend your turns.
adv*[?] last | [count] location - spend your turns.
alias [ word => expansion ] - list or create CLI abbreviations.
alias [ word => expansion ] - list or create CLI abbreviations.
ash statement - test a line of ASH code without having to edit a script.
ash statement - test a line of ASH code without having to edit a script.
ashref [filter] - summarize ASH built-in functions [matching filter].
ashref [filter] - summarize ASH built-in functions [matching filter].
attack [ target [, target]... ] - PvP for dignity or flowers
attack [ target [, target]... ] - PvP for dignity or flowers
autoattack skill - set default attack method.
autoattack skill - set default attack method.
automall - dump all profitable, non-memento items into the Mall.
automall - dump all profitable, non-memento items into the Mall.
autosell item [, item]... - autosell items.
autosell item [, item]... - autosell items.
backtrace text | off - dump stack when a gCLI message or page URL matches text (case-sensitive).
backtrace text | off - dump stack when a gCLI message or page URL matches text (case-sensitive).
bake [ item... ] - list creatables, or create specified items.
bake [ item... ] - list creatables, or create specified items.
bang - list the Dungeons of Doom potions you've identified.
bang - list the Dungeons of Doom potions you've identified.
basement - check Fernswarthy's Basement status.
basement - check Fernswarthy's Basement status.
breakfast - perform start-of-day activities.
breakfast - perform start-of-day activities.
budget [number] - show [or set] the number of budgeted Hagnk's pulls.
budget [number] - show [or set] the number of budgeted Hagnk's pulls.
buff* => skills buff
buff* => skills buff
buffbot number - run buffbot for number iterations.
buffbot number - run buffbot for number iterations.
burn extra | * | num | -num - use excess/all/specified/all but specified MP for buff extension and summons.
burn extra | * | num | -num - use excess/all/specified/all but specified MP for buff extension and summons.
buy item [@ limit] [, another]... - buy from NPC store or the Mall.
buy item [@ limit] [, another]... - buy from NPC store or the Mall.
call [numberx] filename | function [parameters] - check/run script.
call [numberx] filename | function [parameters] - check/run script.
camp* rest | etc. [numTimes] - perform campground actions.
camp* rest | etc. [numTimes] - perform campground actions.
cast[?] [ [count] skill [on player] ] - list spells, or use one.
cast[?] [ [count] skill [on player] ] - list spells, or use one.
ccs [script] - show [or select] Custom Combat Script in use.
ccs [script] - show [or select] Custom Combat Script in use.
cecho color text - show text using color (specified by name or #RRGGBB).
cecho color text - show text using color (specified by name or #RRGGBB).
chamber - automatically complete quest.
chamber - automatically complete quest.
chat - switch to tab or open window
chat - switch to tab or open window
cheapest[?] [+]item [,[-]item]... [; cmds] - compare prices, do cmds with "it" replaced with best.
cheapest[?] [+]item [,[-]item]... [; cmds] - compare prices, do cmds with "it" replaced with best.
check hp | health | mp | mana | both - attempt to regain some HP or MP.
check hp | health | mp | mana | both - attempt to regain some HP or MP.
checkpoint - remembers current equipment, use "outfit checkpoint" to restore.
checkpoint - remembers current equipment, use "outfit checkpoint" to restore.
chew[?] [either] item [, item]... - use/consume items
chew[?] [either] item [, item]... - use/consume items
clan [ snapshot | stashlog ] - clan management.
clan [ snapshot | stashlog ] - clan management.
cleanup - use, pulverize, or autosell your junk items.
cleanup - use, pulverize, or autosell your junk items.
clear - clear CLI window.
clear - clear CLI window.
closet list filter | put item... | take item... - list or manipulate your closet.
closet list filter | put item... | take item... - list or manipulate your closet.
cls - clear CLI window.
cls - clear CLI window.
colorecho color text - show text using color (specified by name or #RRGGBB).
colorecho color text - show text using color (specified by name or #RRGGBB).
combat* => skills combat
combat* => skills combat
concert m[oon'd] | d[ilated pupils] | o[ptimist primal] | e[lvish] | wi[nklered] | wh[ite-boy angst]
concert m[oon'd] | d[ilated pupils] | o[ptimist primal] | e[lvish] | wi[nklered] | wh[ite-boy angst]
condition* clear | check | add condition | set condition - modify your adventuring goals.
condition* clear | check | add condition | set condition - modify your adventuring goals.
condref - list conditions usable with if/while commands.
condref - list conditions usable with if/while commands.
council - visit the Council to advance quest progress.
council - visit the Council to advance quest progress.
counters [ clear | add number [title img] ] - show, clear, or add to current turn counters.
counters [ clear | add number [title img] ] - show, clear, or add to current turn counters.
create [ item... ] - list creatables, or create specified items.
create [ item... ] - list creatables, or create specified items.
csend item [, item]... to recipient [ || message ] - send kmail
csend item [, item]... to recipient [ || message ] - send kmail
debug [on] | off - start or stop logging of debugging data.
debug [on] | off - start or stop logging of debugging data.
demons - list the demon names you know.
demons - list the demon names you know.
disable all | command [, command]... - allow/deny CLI commands.
disable all | command [, command]... - allow/deny CLI commands.
display [filter] | put item... | take item... - list or manipulate your display case.
display [filter] | put item... | take item... - list or manipulate your display case.
donate boris | mus | jarl | mys | pete | mox amount - donate in Hall of Legends.
donate boris | mus | jarl | mys | pete | mox amount - donate in Hall of Legends.
drink[?] [either] item [, item]... - use/consume items
drink[?] [either] item [, item]... - use/consume items
dualwield => equip off-hand
dualwield => equip off-hand
dusty - list the dusty bottles of wine you've identified.
dusty - list the dusty bottles of wine you've identified.
eat[?] [either] item [, item]... - use/consume items
eat[?] [either] item [, item]... - use/consume items
echo timestamp | text - include timestamp or text in the session log.
echo timestamp | text - include timestamp or text in the session log.
effects [param] - list indicated type of data, possibly filtered by param.
effects [param] - list indicated type of data, possibly filtered by param.
else ; commands - do commands if preceding if/while/try didn't execute.
else ; commands - do commands if preceding if/while/try didn't execute.
elseif condition; commands - do if condition is true but preceding condition was false.
elseif condition; commands - do if condition is true but preceding condition was false.
enable all | command [, command]... - allow/deny CLI commands.
enable all | command [, command]... - allow/deny CLI commands.
encounters [param] - list indicated type of data, possibly filtered by param.
encounters [param] - list indicated type of data, possibly filtered by param.
entity - give details of your current pastamancer combat entity.
entity - give details of your current pastamancer combat entity.
entryway [clover] - automatically complete quest [using a clover].
entryway [clover] - automatically complete quest [using a clover].
equip [list filter] | [slot] item - show equipment, or equip item [in slot].
equip [list filter] | [slot] item - show equipment, or equip item [in slot].
events [clear] - clear or show recent events.
events [clear] - clear or show recent events.
exec* [numberx] filename | function [parameters] - check/run script.
exec* [numberx] filename | function [parameters] - check/run script.
exit - logout and exit KoLmafia.
exit - logout and exit KoLmafia.
expensive[?] [+]item [,[-]item]... [; cmds] - compare prices, do cmds with "it" replaced with best.
expensive[?] [+]item [,[-]item]... [; cmds] - compare prices, do cmds with "it" replaced with best.
factory report digits - Given a string of 7 dwarven digits, report on factory.
factory report digits - Given a string of 7 dwarven digits, report on factory.
familiar[?] [list filter] | lock | unlock | species | none - list or change familiar types
familiar[?] [list filter] | lock | unlock | species | none - list or change familiar types
field [ plant square type | pick square | harvest ] - view or use your mushroom plot
field [ plant square type | pick square | harvest ] - view or use your mushroom plot
find item - ensure that you have item, creating or buying it if needed.
find item - ensure that you have item, creating or buying it if needed.
flowers - commit random acts of PvP.
flowers - commit random acts of PvP.
fold[?] item - produce item by using another form, repeated as needed.
fold[?] item - produce item by using another form, repeated as needed.
forum* - visit the official KoL forums.
forum* - visit the official KoL forums.
friars [blessing] food | familiar | booze - get daily blessing.
friars [blessing] food | familiar | booze - get daily blessing.
galaktik(hp|mp) [amount] - restore some or all hp or mp
galaktik(hp|mp) [amount] - restore some or all hp or mp
gc - force Java garbage collection.
gc - force Java garbage collection.
gear - switch to tab or open window
gear - switch to tab or open window
get preference [ = value ] - show/change preference settings
get preference [ = value ] - show/change preference settings
ghost[?] [either] item [, item]... - use/consume items
ghost[?] [either] item [, item]... - use/consume items
goal* clear | check | add condition | set condition - modify your adventuring goals.
goal* clear | check | add condition | set condition - modify your adventuring goals.
gong [buy | set] manual | bird | mole | roach [effect [stat [stat]]]
gong [buy | set] manual | bird | mole | roach [effect [stat [stat]]]
gourd - automatically complete quest.
gourd - automatically complete quest.
grandpa query - Ask Grandpa about something.
grandpa query - Ask Grandpa about something.
guardians - automatically complete quest.
guardians - automatically complete quest.
guild - automatically complete quest.
guild - automatically complete quest.
hagnk outfit name | item [, item]... - pull items from Hagnk's storage.
hagnk outfit name | item [, item]... - pull items from Hagnk's storage.
hedge* - automatically complete quest.
hedge* - automatically complete quest.
help [filter] - list CLI commands [that match filter].
help [filter] - list CLI commands [that match filter].
hermit[?] [item] - get clover status, or trade for item.
hermit[?] [item] - get clover status, or trade for item.
hiddencity square [temple|altar item] - set Hidden City square [and perform an action there].
hiddencity square [temple|altar item] - set Hidden City square [and perform an action there].
hobo[?] [either] item [, item]... - use/consume items
hobo[?] [either] item [, item]... - use/consume items
hold => equip off-hand
hold => equip off-hand
holiday HolidayName - enable special processing for unpredicted holidays.
holiday HolidayName - enable special processing for unpredicted holidays.
hottub - soak in your clan's hot tub
hottub - soak in your clan's hot tub
http:* - visit URL without showing results.
http:* - visit URL without showing results.
if condition; commands - do commands once if condition is true (see condref).
if condition; commands - do commands once if condition is true (see condref).
insults - list the pirate insult comebacks you know.
insults - list the pirate insult comebacks you know.
inv* [param] - list indicated type of data, possibly filtered by param.
inv* [param] - list indicated type of data, possibly filtered by param.
item - switch to tab or open window
item - switch to tab or open window
junk - use, pulverize, or autosell your junk items.
junk - use, pulverize, or autosell your junk items.
kmail item [, item]... to recipient [ || message ] - send kmail
kmail item [, item]... to recipient [ || message ] - send kmail
later commands - adds a button to do commands to the Daily Deeds list.
later commands - adds a button to do commands to the Daily Deeds list.
leaflet [nomagic] | location | command - complete leaflet quest [without using magic words].
leaflet [nomagic] | location | command - complete leaflet quest [without using magic words].
load [numberx] filename | function [parameters] - check/run script.
load [numberx] filename | function [parameters] - check/run script.
locations [param] - list indicated type of data, possibly filtered by param.
locations [param] - list indicated type of data, possibly filtered by param.
log [status],[equipment],[effects],[etc.] - record data, "log snapshot" for all common data.
log [status],[equipment],[effects],[etc.] - record data, "log snapshot" for all common data.
logecho timestamp | text - include timestamp or text in the session log only.
logecho timestamp | text - include timestamp or text in the session log only.
login username - logout then log back in as username.
login username - logout then log back in as username.
logout - logout and return to login window.
logout - logout and return to login window.
logprint timestamp | text - include timestamp or text in the session log only.
logprint timestamp | text - include timestamp or text in the session log only.
lookup item | effect - go to appropriate KoL Wiki page.
lookup item | effect - go to appropriate KoL Wiki page.
mail - switch to tab or open window
mail - switch to tab or open window
make [ item... ] - list creatables, or create specified items.
make [ item... ] - list creatables, or create specified items.
mallbuy item [@ limit] [, another]... - buy from NPC store or the Mall.
mallbuy item [@ limit] [, another]... - buy from NPC store or the Mall.
mallsell item [[@] price [[limit] num]] [, another]... - sell in Mall.
mallsell item [[@] price [[limit] num]] [, another]... - sell in Mall.
maximize[?] [+|-|weight] keyword, ... - run the Modifier Maximizer.
maximize[?] [+|-|weight] keyword, ... - run the Modifier Maximizer.
maze - automatically complete quest.
maze - automatically complete quest.
mcd number - set mind control device (or equivalent) to new value.
mcd number - set mind control device (or equivalent) to new value.
mind-control number - set mind control device (or equivalent) to new value.
mind-control number - set mind control device (or equivalent) to new value.
mix [ item... ] - list creatables, or create specified items.
mix [ item... ] - list creatables, or create specified items.
modifies filter - list all possible sources of modifiers matching filter.
modifies filter - list all possible sources of modifiers matching filter.
modref [object] - list all modifiers, show values for player [and object].
modref [object] - list all modifiers, show values for player [and object].
modtrace filter - list everything that adds to modifiers matching filter.
modtrace filter - list everything that adds to modifiers matching filter.
moleref - Path of the Mole spoilers.
moleref - Path of the Mole spoilers.
monsters location - show combat details for the specified area.
monsters location - show combat details for the specified area.
mood* clear | autofill | execute | repeat [numTimes] | moodName [numTimes] - mood management.
mood* clear | autofill | execute | repeat [numTimes] | moodName [numTimes] - mood management.
moon* [param] - list indicated type of data, possibly filtered by param.
moon* [param] - list indicated type of data, possibly filtered by param.
mpitems - counts MP restoratives in inventory.
mpitems - counts MP restoratives in inventory.
namespace [filter] - list namespace scripts and the functions they define.
namespace [filter] - list namespace scripts and the functions they define.
nemesis - automatically complete quest.
nemesis - automatically complete quest.
nuns [mp] - visit the Nunnery for restoration [but only if MP is restored].
nuns [mp] - visit the Nunnery for restoration [but only if MP is restored].
objective* clear | check | add condition | set condition - modify your adventuring goals.
objective* clear | check | add condition | set condition - modify your adventuring goals.
olfact* ( none | monster name | [item] list | goals ) [abort] - tag next monster [that drops all items in list, or your goals].
olfact* ( none | monster name | [item] list | goals ) [abort] - tag next monster [that drops all items in list, or your goals].
opt* - switch to tab or open window
opt* - switch to tab or open window
outfit [list filter] | save name | checkpoint | name - list, save, restore, or change outfits.
outfit [list filter] | save name | checkpoint | name - list, save, restore, or change outfits.
overdrink[?] [either] item [, item]... - use/consume items
overdrink[?] [either] item [, item]... - use/consume items
pass* => skills passive
pass* => skills passive
pause [seconds] - pause script execution (default 1 second).
pause [seconds] - pause script execution (default 1 second).
ply [ item... ] - list creatables, or create specified items.
ply [ item... ] - list creatables, or create specified items.
print timestamp | text - include timestamp or text in the session log.
print timestamp | text - include timestamp or text in the session log.
priphea - launch KoLmafia GUI.
priphea - launch KoLmafia GUI.
pull outfit name | item [, item]... - pull items from Hagnk's storage.
pull outfit name | item [, item]... - pull items from Hagnk's storage.
pulverize item [, item]... - pulverize specified items
pulverize item [, item]... - pulverize specified items
putty ( none | monster name | [item] list | goals ) [abort] - tag next monster [that drops all items in list, or your goals].
putty ( none | monster name | [item] list | goals ) [abort] - tag next monster [that drops all items in list, or your goals].
pvp [ target [, target]... ] - PvP for dignity or flowers
pvp [ target [, target]... ] - PvP for dignity or flowers
pvplog* - summarize PvP results.
pvplog* - summarize PvP results.
quark[?] [itemList...] - gain MP by pasting unstable quark with best item from itemList (or your junk list).
quark[?] [itemList...] - gain MP by pasting unstable quark with best item from itemList (or your junk list).
quit - logout and exit KoLmafia.
quit - logout and exit KoLmafia.
radio - switch to tab or open window
radio - switch to tab or open window
raffle ticketsToBuy [ inventory | storage ] - buy raffle tickets
raffle ticketsToBuy [ inventory | storage ] - buy raffle tickets
recover* hp | health | mp | mana | both - attempt to regain some HP or MP.
recover* hp | health | mp | mana | both - attempt to regain some HP or MP.
refresh all | status | equip | inv | storage | familiar | stickers - resynchronize with KoL.
refresh all | status | equip | inv | storage | familiar | stickers - resynchronize with KoL.
relay - open the relay browser.
relay - open the relay browser.
remedy[?] effect [, effect]... - remove effects using appropriate means.
remedy[?] effect [, effect]... - remove effects using appropriate means.
remove slot | name - remove equipment in slot, or that matches name
remove slot | name - remove equipment in slot, or that matches name
repeat [number] - repeat previous line [number times].
repeat [number] - repeat previous line [number times].
reprice - price all max-priced items at or below current Mall minimum price.
reprice - price all max-priced items at or below current Mall minimum price.
rest => campground rest
rest => campground rest
restaurant[?] [ daily special | item ] - show daily special [or consume it or other restaurant item].
restaurant[?] [ daily special | item ] - show daily special [or consume it or other restaurant item].
restore* hp | health | mp | mana | both - attempt to regain some HP or MP.
restore* hp | health | mp | mana | both - attempt to regain some HP or MP.
retrieve item - ensure that you have item, creating or buying it if needed.
retrieve item - ensure that you have item, creating or buying it if needed.
run [numberx] filename | function [parameters] - check/run script.
run [numberx] filename | function [parameters] - check/run script.
safe location - show summary data for the specified area.
safe location - show summary data for the specified area.
save as mood - add your current effects to the mood.
save as mood - add your current effects to the mood.
searchmall item [ with limit number ] - search the Mall.
searchmall item [ with limit number ] - search the Mall.
second => equip off-hand
second => equip off-hand
self* => skills self
self* => skills self
sell item [, item]... - autosell items.
sell item [, item]... - autosell items.
send item [, item]... to recipient [ || message ] - send kmail
send item [, item]... to recipient [ || message ] - send kmail
session [param] - list indicated type of data, possibly filtered by param.
session [param] - list indicated type of data, possibly filtered by param.
set preference [ = value ] - show/change preference settings
set preference [ = value ] - show/change preference settings
shrug[?] effect [, effect]... - remove effects using appropriate means.
shrug[?] effect [, effect]... - remove effects using appropriate means.
skill[?] [ [count] skill [on player] ] - list spells, or use one.
skill[?] [ [count] skill [on player] ] - list spells, or use one.
skills [param] - list indicated type of data, possibly filtered by param.
skills [param] - list indicated type of data, possibly filtered by param.
sleep number - rest on your clan sofa for number turns.
sleep number - rest on your clan sofa for number turns.
slimeling[?] [either] item [, item]... - use/consume items
slimeling[?] [either] item [, item]... - use/consume items
smash item [, item]... - pulverize specified items
smash item [, item]... - pulverize specified items
smith [ item... ] - list creatables, or create specified items.
smith [ item... ] - list creatables, or create specified items.
soak - soak in your clan's hot tub
soak - soak in your clan's hot tub
sofa number - rest on your clan sofa for number turns.
sofa number - rest on your clan sofa for number turns.
spade - examine and submit or delete any automatically gathered data.
spade - examine and submit or delete any automatically gathered data.
speculate MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] - predict modifiers.
speculate MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] - predict modifiers.
squeeze[?] item - produce item by using another form, repeated as needed.
squeeze[?] item - produce item by using another form, repeated as needed.
start [numberx] filename | function [parameters] - check/run script.
start [numberx] filename | function [parameters] - check/run script.
stash [put] item... | take item... - exchange items with clan stash
stash [put] item... | take item... - exchange items with clan stash
status [param] - list indicated type of data, possibly filtered by param.
status [param] - list indicated type of data, possibly filtered by param.
sticker* sticker1 [, sticker2 [, sticker3]] - replace worn stickers.
sticker* sticker1 [, sticker2 [, sticker3]] - replace worn stickers.
storage [param] - list indicated type of data, possibly filtered by param.
storage [param] - list indicated type of data, possibly filtered by param.
styx muscle | mysticality | moxie - get daily Styx Pixie buff.
styx muscle | mysticality | moxie - get daily Styx Pixie buff.
summary [param] - list indicated type of data, possibly filtered by param.
summary [param] - list indicated type of data, possibly filtered by param.
summon demonName | effect | location | number - use the Summoning Chamber.
summon demonName | effect | location | number - use the Summoning Chamber.
tavern - automatically complete quest.
tavern - automatically complete quest.
telescope [look] high | low - get daily buff, or Lair hints from your telescope.
telescope [look] high | low - get daily buff, or Lair hints from your telescope.
text URL - show text results from visiting URL.
text URL - show text results from visiting URL.
tinker [ item... ] - list creatables, or create specified items.
tinker [ item... ] - list creatables, or create specified items.
tower - automatically complete quest.
tower - automatically complete quest.
train base weight | buffed weight | turns number - train familiar.
train base weight | buffed weight | turns number - train familiar.
trigger* clear | autofill | [type,] effect [, action] - edit current mood
trigger* clear | autofill | [type,] effect [, action] - edit current mood
try ; commands - do commands, and continue even if an error occurs.
try ; commands - do commands, and continue even if an error occurs.
unalias word - remove a CLI abbreviation.
unalias word - remove a CLI abbreviation.
undercut - price all max-priced items at or below current Mall minimum price.
undercut - price all max-priced items at or below current Mall minimum price.
uneffect[?] effect [, effect]... - remove effects using appropriate means.
uneffect[?] effect [, effect]... - remove effects using appropriate means.
unequip slot | name - remove equipment in slot, or that matches name
unequip slot | name - remove equipment in slot, or that matches name
untinker [ item... ] - complete quest, or untinker items.
untinker [ item... ] - complete quest, or untinker items.
up? effect [, effect]... - extend duration of effects.
up? effect [, effect]... - extend duration of effects.
update data | clear | prices URL or filename - download most recent data files, or revert to built-in data.
update data | clear | prices URL or filename - download most recent data files, or revert to built-in data.
use[?] [either] item [, item]... - use/consume items
use[?] [either] item [, item]... - use/consume items
using filename - add ASH script to namespace.
using filename - add ASH script to namespace.
validate [numberx] filename | function [parameters] - check/run script.
validate [numberx] filename | function [parameters] - check/run script.
verify [numberx] filename | function [parameters] - check/run script.
verify [numberx] filename | function [parameters] - check/run script.
version - display KoLmafia version.
version - display KoLmafia version.
wait [seconds] - pause script execution (default 1 second).
wait [seconds] - pause script execution (default 1 second).
wear [list filter] | [slot] item - show equipment, or equip item [in slot].
wear [list filter] | [slot] item - show equipment, or equip item [in slot].
whatif MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] - predict modifiers.
whatif MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] - predict modifiers.
while condition; commands - do commands repeatedly while condition is true.
while condition; commands - do commands repeatedly while condition is true.
wield [list filter] | [slot] item - show equipment, or equip item [in slot].
wield [list filter] | [slot] item - show equipment, or equip item [in slot].
wiki searchText - perform search on KoL Wiki.
wiki searchText - perform search on KoL Wiki.
win game - I'm as surprised as you! I didn't think it was possible.
win game - I'm as surprised as you! I didn't think it was possible.
zap item [, item]... - transform items with your wand.
zap item [, item]... - transform items with your wand.

Revision as of 09:51, 29 August 2009

The CLI (Command Line Interface) is a way for users to quickly do things in KoL without having to use either the relay browser or Mafia's menus. For example, it is quicker to type "cast ode" into the CLI than to click the "Skill Casting" tab, select Ode to Booze from the drop-down and then click cast.

Cli Commands (version 13.5)

! - list the Dungeons of Doom potions you've identified.

  • .php* - visit URL without showing results.
  • brewery*[?] [ daily special | item ] - show daily special [or consume it or other restaurant item].
  • kitchen*[?] item - consumes item at Hell's Kitchen, if available.
  • mirror* [filename] - stop [or start] logging to an additional file.

<inline-ash-script> - embed an ASH script in a CLI script.

aa skill - set default attack method.

abort [message] - stop current script or automated task.

acquire item - ensure that you have item, creating or buying it if needed.

adv*[?] last | [count] location - spend your turns.

alias [ word => expansion ] - list or create CLI abbreviations.

ash statement - test a line of ASH code without having to edit a script.

ashref [filter] - summarize ASH built-in functions [matching filter].

attack [ target [, target]... ] - PvP for dignity or flowers

autoattack skill - set default attack method.

automall - dump all profitable, non-memento items into the Mall.

autosell item [, item]... - autosell items.

backtrace text | off - dump stack when a gCLI message or page URL matches text (case-sensitive).

bake [ item... ] - list creatables, or create specified items.

bang - list the Dungeons of Doom potions you've identified.

basement - check Fernswarthy's Basement status.

breakfast - perform start-of-day activities.

budget [number] - show [or set] the number of budgeted Hagnk's pulls.

buff* => skills buff

buffbot number - run buffbot for number iterations.

burn extra | * | num | -num - use excess/all/specified/all but specified MP for buff extension and summons.

buy item [@ limit] [, another]... - buy from NPC store or the Mall.

call [numberx] filename | function [parameters] - check/run script.

camp* rest | etc. [numTimes] - perform campground actions.

cast[?] [ [count] skill [on player] ] - list spells, or use one.

ccs [script] - show [or select] Custom Combat Script in use.

cecho color text - show text using color (specified by name or #RRGGBB).

chamber - automatically complete quest.

chat - switch to tab or open window

cheapest[?] [+]item [,[-]item]... [; cmds] - compare prices, do cmds with "it" replaced with best.

check hp | health | mp | mana | both - attempt to regain some HP or MP.

checkpoint - remembers current equipment, use "outfit checkpoint" to restore.

chew[?] [either] item [, item]... - use/consume items

clan [ snapshot | stashlog ] - clan management.

cleanup - use, pulverize, or autosell your junk items.

clear - clear CLI window.

closet list filter | put item... | take item... - list or manipulate your closet.

cls - clear CLI window.

colorecho color text - show text using color (specified by name or #RRGGBB).

combat* => skills combat

concert m[oon'd] | d[ilated pupils] | o[ptimist primal] | e[lvish] | wi[nklered] | wh[ite-boy angst]

condition* clear | check | add condition | set condition - modify your adventuring goals.

condref - list conditions usable with if/while commands.

council - visit the Council to advance quest progress.

counters [ clear | add number [title img] ] - show, clear, or add to current turn counters.

create [ item... ] - list creatables, or create specified items.

csend item [, item]... to recipient [ || message ] - send kmail

debug [on] | off - start or stop logging of debugging data.

demons - list the demon names you know.

disable all | command [, command]... - allow/deny CLI commands.

display [filter] | put item... | take item... - list or manipulate your display case.

donate boris | mus | jarl | mys | pete | mox amount - donate in Hall of Legends.

drink[?] [either] item [, item]... - use/consume items

dualwield => equip off-hand

dusty - list the dusty bottles of wine you've identified.

eat[?] [either] item [, item]... - use/consume items

echo timestamp | text - include timestamp or text in the session log.

effects [param] - list indicated type of data, possibly filtered by param.

else ; commands - do commands if preceding if/while/try didn't execute.

elseif condition; commands - do if condition is true but preceding condition was false.

enable all | command [, command]... - allow/deny CLI commands.

encounters [param] - list indicated type of data, possibly filtered by param.

entity - give details of your current pastamancer combat entity.

entryway [clover] - automatically complete quest [using a clover].

equip [list filter] | [slot] item - show equipment, or equip item [in slot].

events [clear] - clear or show recent events.

exec* [numberx] filename | function [parameters] - check/run script.

exit - logout and exit KoLmafia.

expensive[?] [+]item [,[-]item]... [; cmds] - compare prices, do cmds with "it" replaced with best.

factory report digits - Given a string of 7 dwarven digits, report on factory.

familiar[?] [list filter] | lock | unlock | species | none - list or change familiar types

field [ plant square type | pick square | harvest ] - view or use your mushroom plot

find item - ensure that you have item, creating or buying it if needed.

flowers - commit random acts of PvP.

fold[?] item - produce item by using another form, repeated as needed.

forum* - visit the official KoL forums.

friars [blessing] food | familiar | booze - get daily blessing.

galaktik(hp|mp) [amount] - restore some or all hp or mp

gc - force Java garbage collection.

gear - switch to tab or open window

get preference [ = value ] - show/change preference settings

ghost[?] [either] item [, item]... - use/consume items

goal* clear | check | add condition | set condition - modify your adventuring goals.

gong [buy | set] manual | bird | mole | roach [effect [stat [stat]]]

gourd - automatically complete quest.

grandpa query - Ask Grandpa about something.

guardians - automatically complete quest.

guild - automatically complete quest.

hagnk outfit name | item [, item]... - pull items from Hagnk's storage.

hedge* - automatically complete quest.

help [filter] - list CLI commands [that match filter].

hermit[?] [item] - get clover status, or trade for item.

hiddencity square [temple|altar item] - set Hidden City square [and perform an action there].

hobo[?] [either] item [, item]... - use/consume items

hold => equip off-hand

holiday HolidayName - enable special processing for unpredicted holidays.

hottub - soak in your clan's hot tub

http:* - visit URL without showing results.

if condition; commands - do commands once if condition is true (see condref).

insults - list the pirate insult comebacks you know.

inv* [param] - list indicated type of data, possibly filtered by param.

item - switch to tab or open window

junk - use, pulverize, or autosell your junk items.

kmail item [, item]... to recipient [ || message ] - send kmail

later commands - adds a button to do commands to the Daily Deeds list.

leaflet [nomagic] | location | command - complete leaflet quest [without using magic words].

load [numberx] filename | function [parameters] - check/run script.

locations [param] - list indicated type of data, possibly filtered by param.

log [status],[equipment],[effects],[etc.] - record data, "log snapshot" for all common data.

logecho timestamp | text - include timestamp or text in the session log only.

login username - logout then log back in as username.

logout - logout and return to login window.

logprint timestamp | text - include timestamp or text in the session log only.

lookup item | effect - go to appropriate KoL Wiki page.

mail - switch to tab or open window

make [ item... ] - list creatables, or create specified items.

mallbuy item [@ limit] [, another]... - buy from NPC store or the Mall.

mallsell item [[@] price [[limit] num]] [, another]... - sell in Mall.

maximize[?] [+|-|weight] keyword, ... - run the Modifier Maximizer.

maze - automatically complete quest.

mcd number - set mind control device (or equivalent) to new value.

mind-control number - set mind control device (or equivalent) to new value.

mix [ item... ] - list creatables, or create specified items.

modifies filter - list all possible sources of modifiers matching filter.

modref [object] - list all modifiers, show values for player [and object].

modtrace filter - list everything that adds to modifiers matching filter.

moleref - Path of the Mole spoilers.

monsters location - show combat details for the specified area.

mood* clear | autofill | execute | repeat [numTimes] | moodName [numTimes] - mood management.

moon* [param] - list indicated type of data, possibly filtered by param.

mpitems - counts MP restoratives in inventory.

namespace [filter] - list namespace scripts and the functions they define.

nemesis - automatically complete quest.

nuns [mp] - visit the Nunnery for restoration [but only if MP is restored].

objective* clear | check | add condition | set condition - modify your adventuring goals.

olfact* ( none | monster name | [item] list | goals ) [abort] - tag next monster [that drops all items in list, or your goals].

opt* - switch to tab or open window

outfit [list filter] | save name | checkpoint | name - list, save, restore, or change outfits.

overdrink[?] [either] item [, item]... - use/consume items

pass* => skills passive

pause [seconds] - pause script execution (default 1 second).

ply [ item... ] - list creatables, or create specified items.

print timestamp | text - include timestamp or text in the session log.

priphea - launch KoLmafia GUI.

pull outfit name | item [, item]... - pull items from Hagnk's storage.

pulverize item [, item]... - pulverize specified items

putty ( none | monster name | [item] list | goals ) [abort] - tag next monster [that drops all items in list, or your goals].

pvp [ target [, target]... ] - PvP for dignity or flowers

pvplog* - summarize PvP results.

quark[?] [itemList...] - gain MP by pasting unstable quark with best item from itemList (or your junk list).

quit - logout and exit KoLmafia.

radio - switch to tab or open window

raffle ticketsToBuy [ inventory | storage ] - buy raffle tickets

recover* hp | health | mp | mana | both - attempt to regain some HP or MP.

refresh all | status | equip | inv | storage | familiar | stickers - resynchronize with KoL.

relay - open the relay browser.

remedy[?] effect [, effect]... - remove effects using appropriate means.

remove slot | name - remove equipment in slot, or that matches name

repeat [number] - repeat previous line [number times].

reprice - price all max-priced items at or below current Mall minimum price.

rest => campground rest

restaurant[?] [ daily special | item ] - show daily special [or consume it or other restaurant item].

restore* hp | health | mp | mana | both - attempt to regain some HP or MP.

retrieve item - ensure that you have item, creating or buying it if needed.

run [numberx] filename | function [parameters] - check/run script.

safe location - show summary data for the specified area.

save as mood - add your current effects to the mood.

searchmall item [ with limit number ] - search the Mall.

second => equip off-hand

self* => skills self

sell item [, item]... - autosell items.

send item [, item]... to recipient [ || message ] - send kmail

session [param] - list indicated type of data, possibly filtered by param.

set preference [ = value ] - show/change preference settings

shrug[?] effect [, effect]... - remove effects using appropriate means.

skill[?] [ [count] skill [on player] ] - list spells, or use one.

skills [param] - list indicated type of data, possibly filtered by param.

sleep number - rest on your clan sofa for number turns.

slimeling[?] [either] item [, item]... - use/consume items

smash item [, item]... - pulverize specified items

smith [ item... ] - list creatables, or create specified items.

soak - soak in your clan's hot tub

sofa number - rest on your clan sofa for number turns.

spade - examine and submit or delete any automatically gathered data.

speculate MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] - predict modifiers.

squeeze[?] item - produce item by using another form, repeated as needed.

start [numberx] filename | function [parameters] - check/run script.


stash [put] item... | take item... - exchange items with clan stash

status [param] - list indicated type of data, possibly filtered by param.

sticker* sticker1 [, sticker2 [, sticker3]] - replace worn stickers.

storage [param] - list indicated type of data, possibly filtered by param.

styx muscle | mysticality | moxie - get daily Styx Pixie buff.

summary [param] - list indicated type of data, possibly filtered by param.

summon demonName | effect | location | number - use the Summoning Chamber.

tavern - automatically complete quest.

telescope [look] high | low - get daily buff, or Lair hints from your telescope.

text URL - show text results from visiting URL.

tinker [ item... ] - list creatables, or create specified items.

tower - automatically complete quest.

train base weight | buffed weight | turns number - train familiar.

trigger* clear | autofill | [type,] effect [, action] - edit current mood

try ; commands - do commands, and continue even if an error occurs.

unalias word - remove a CLI abbreviation.


undercut - price all max-priced items at or below current Mall minimum price.

uneffect[?] effect [, effect]... - remove effects using appropriate means.

unequip slot | name - remove equipment in slot, or that matches name

untinker [ item... ] - complete quest, or untinker items.

up? effect [, effect]... - extend duration of effects.


update data | clear | prices URL or filename - download most recent data files, or revert to built-in data.

use[?] [either] item [, item]... - use/consume items

using filename - add ASH script to namespace.

validate [numberx] filename | function [parameters] - check/run script.

verify [numberx] filename | function [parameters] - check/run script.

version - display KoLmafia version.

wait [seconds] - pause script execution (default 1 second).

wear [list filter] | [slot] item - show equipment, or equip item [in slot].

whatif MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] - predict modifiers.

while condition; commands - do commands repeatedly while condition is true.

wield [list filter] | [slot] item - show equipment, or equip item [in slot].

wiki searchText - perform search on KoL Wiki.

win game - I'm as surprised as you! I didn't think it was possible.

zap item [, item]... - transform items with your wand.