1. Install Crabbox
2. Get Your API Key
Go to the Upstash Console and create a Box API key. Then export it in your terminal:3. Warm Up a Box
Create a box with thewarmup command. This provisions the box ahead of time so it’s ready when you need it.
4. Run Your Tests
Run your test command inside the box. Use--env-from-profile to load environment variables from a local .env file — they’ll be injected into the box without being stored anywhere.
For the full list of commands and options, see the Upstash Box provider reference.