Madamiru provides a command line interface, which you can use for automating tasks.
Run madamiru --help
for the overall CLI usage information,
or view info for specific subcommands, such as madamiru play --help
.
You can also view the help text in the CLI docs.