Use the NewAPIClient method from the env command.
Merge pull request #251 from howbazaar/env-cmd-replace-open

Use the NewAPIClient method from the env command.

Another piece of the puzzle.  This is what I had hoped the entire work would be.

This work is the simple part.