Skip to content

LeagueAPI: CLI support

Daniel Dolejška edited this page Jul 27, 2017 · 11 revisions

This feature allows you to easily use this library in CLI mode. Below you can see general example of using the library in PHP CLI mode.

Usage

php ./RiotAPICLI.php [method name] [method params] [cli args]

method name argument is name of the function you want to call

method params are space separated parameters for called function

For more information regarding methods and its parameters see resources and endpoints page.

cli args are arguments for the CLI itself, please see the table below

Argument Parameters Description
--config, -c string path Required. This parameter specifies path to configuration file. Please see config argument section for more details.
--output, -o string path This parameter specifies path to output file. Please see output argument section for more details.
--help, -h - Using this parameter, usage help will be printed.

Config argument

More details TBA.

Output argument

More details TBA.