Framework Integration
The stash run command injects environment variables directly into your application's process. This means Stash works immediately with any programming language, framework, or container that can read system environment variables.
Language & Framework Guide
Node.js (Next.js, Express, NestJS)
Run any Node.js server or script by injecting secrets securely into the process RAM:
stash run -- npm start
Python (FastAPI, Django, Flask)
Start your Python server or script with secrets available instantly:
stash run -- python app.py
Go (Golang)
Run your Go code with secrets loaded directly into the runtime environment:
stash run -- go run main.go
Java (Spring Boot)
Start your Spring Boot server with system properties injected for your configuration:
stash run -- ./mvnw spring-boot:run
PHP (Laravel)
Serve your Laravel project with secrets loaded directly into the global helper env():
stash run -- php artisan serve
Ruby on Rails
Run your Rails server with your secrets automatically mapped into the global ENV hash:
stash run -- rails server
.NET (C#)
Start your .NET application with secrets injected and accessible via the system variables handler:
stash run -- dotnet run
Docker (Containers)
Inject secrets at runtime instead of storing them in the image. Docker only passes variables into the container that you list with -e NAME (without a value, it copies it from the environment that Stash prepared):
stash run -- docker run -d -e DATABASE_URL -e API_KEY -p 8080:80 my-app-image
Advantages of unified startup with stash run:
- Universal: Works with any terminal command (npm, python, docker, dotnet, rails, etc.).
- Ephemeral and secure: Secrets are injected into RAM and destroyed when the process exits.