Found the right code-- now all of the actions work in the command line.