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.