Go to your Momentic dashboard and go to settings and follow the steps to generate an API key. Make sure to save it somewhere safe, you can only view it once!

API key dialog

You can export your API key in your .bashrc like so:

export MOMENTIC_API_KEY=your-api-key

or pass it in as a flag to all CLI commands:

--api-key your-api-key