invoke.run(command, **kwargs)

Invoke 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.