Thanks for the write-up!
Joshua Pinter

Hi Joshua,

Sorry for the late response. I don’t know how I missed your question until now.

To ask the user to input an API key the first time and persistently store it for later use, I would use the “prompt” npm package and in the callback of the prompt function, I would “writeStream” the input to a JSON config file on disk.

Most CLIs that require an API do this, notably AWS-CLI.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.