storemyapi
Getting Started

Quickstart

Store and retrieve your first API key in under 2 minutes.

Quickstart

Prerequisites

1. Create a project

Run this inside your project folder. It prompts for a name and description, creates the project in the cloud, and writes a .storemyapi.json file that links this folder to that project.

storemyapi init

Add .storemyapi.json to your .gitignore.

2. Push your existing .env to the cloud

If you already have a .env file, upload all of it in one command:

storemyapi push

To push a single key:

storemyapi push STRIPE_SECRET_KEY

3. Pull keys on another machine

On a fresh machine or after cloning the repo, link the folder to the same project and pull all keys down:

storemyapi link          # choose the project from an interactive dropdown
storemyapi pull          # writes keys into .env

4. Run your app with cloud keys injected

Instead of maintaining a local .env at all, run your dev server directly with cloud keys injected into the process. Nothing written to disk:

storemyapi env run -- npm run dev

What's next?

On this page