Some minor improvements.

context managers could be used more often ... one like file_context which
sets up a temporary Application in an entirely different context would
be suitable as well.
As there is no useful action override, don't derive from it.

Instead, just use the command the way it's intended