npm i
echo "MOMENTO_API_KEY=" > .env
- Go to the Momento console and follow the instructions to log in with your email address, Google account, or GitHub account.
- In the console, select the API Keys menu option.
- Once on the API key page, select the information that matches where your caches live.
- Once complete, click on the Generate button to create your API Key.
Using dotenvx.
npx dotenvx run -- npx tsx index.ts