invoke.run(command, **kwargs)

Run command in a local subprocess and return a Result object.

See Runner.run for API details.


This function is a convenience wrapper around Invoke’s Context and Runner APIs.

Specifically, it creates an anonymous Context instance and calls its run method, which in turn defaults to using a Local runner subclass for command execution.

New in version 1.0.