maa-run(1)
π NAME π
maa-run β run a custom task, bestie. This is the maa-run(1) page from the General Commands Manual, and yes weβre gonna make it make sense. periodt.
β¨ SYNOPSIS β¨
maa run [-a|--addr] [-p|--profile] [--user-resource] [--dry-run]
[--no-summary] [--no-auto-reconnect] [--batch] [-v|--verbose]...
[-q|--quiet]... [--log-file] [-h|--help] <TASK>
πΈ DESCRIPTION πΈ
okay so maa-run runs a custom task. All arguments will be passed to maa-run, so type --help if you want more information, iykyk.
Your task is defined in the config directory of maa-cli. Use maa dir config to get the path of the config directory, then create a directory named tasks in it. Inside that tasks directory, create a TOML or JSON file to define a task. More information can be found in the README. You can also use maa-cli list to list all available tasks. slay.
π OPTIONS π
-a,--addr <ADDR>β ADB serial number of device, or MaaTools address set in PlayCover. By default, MaaCore connects to the game with ADB, and this parameter is the serial number of the device (default toemulator-5554if not specified here and not set in config file). And if you want to use PlayCover, you need to set the connection type to PlayCover in the config file, then you can specify the address of MaaTools here.-p,--profile <PROFILE>β profile (asst config file) name. A profile is a config file that contains the configuration passed to MaaCore. By default, we try to load$MAA_CONFIG_DIR/profiles/default.toml. If that file does not exist, we try to load$MAA_CONFIG_DIR/asst.tomlfor backward compatibility β thatβs the old config file name. If you want another config file, specify the profile name here. The config file should live in$MAA_CONFIG_DIR/profiles/.--user-resourceβ load resources from the config directory. By default, MaaCore loads resources from the resource installed with MaaCore. If you want to modify some configuration of MaaCore or use your own resources, use this option to load resources from theresourcedirectory, which is a subdirectory of the config directory. This option can also be enabled by setting the value of the keyuser_resourceto true in the asst configure file$MAA_CONFIG_DIR/asst.toml.
Note: CLI will load resources shipped with MaaCore firstly, then some client specific or platform specific when needed, lastly, it will load resources from the config directory. MaaCore will overwrite the resources loaded before, if there are some resources with the same name. Use at your own risk! π
--dry-runβ parse your config but do not connect to the game. This is useful when you want to check your config file. It will parse your config file and set the log level to debug. If there are some errors in your config file, it will print the error message and exit. so handy.--no-summaryβ do not display task summary. By default, maa will display task summary after all tasks are finished. If you want to disable this behavior, use this option.--no-auto-reconnectβ do not reconnect when game loses connection to server. By default, maa will automatically reconnect when the game client loses connection to the game server. Use this option to disable this behavior for this run.--batchβ enable batch mode. If there are some input parameters in the task file, some prompts will be displayed to ask for input. In batch mode, the prompts will be skipped, and parameters will be set to default values. no cap, very set-it-and-forget-it.-v,--verboseβ increase verbosity, repeat for more verbosity.-q,--quietβ decrease verbosity, repeat for more quiet.--log-file[=<PATH>]β redirect log to file instead of stderr. If no log file is specified, the log will be written to$(maa dir log)/YYYY/MM/DD/HH:MM:SS.log.-h,--helpβ print help (see a summary with-h).<TASK>β name of the task to run. The task name is the name of the task file without the extension. The task file must be in the tasks directory of the config directory. The task file must be in the TOML, YAML or JSON format.
π mwah! Cute little footer sign-off: the footerβs source/version/manual bits are run and maa-run(1), and no separate date line was printed in this footer β so thatβs the whole tea, bestie. π«Ά
π¦ where this page comes from
- nixpkgs unstable: maa-cli 0.7.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms