A CLI tool to snapshot and restore environment variables across project contexts.
pip install stashrunOr install from source:
git clone https://github.com/yourname/stashrun.git && cd stashrun && pip install .Snapshot your current environment variables into a named stash:
stashrun save myprojectRestore a previously saved snapshot:
stashrun load myprojectList all saved stashes:
stashrun listDelete a stash:
stashrun drop myprojectShow the contents of a stash without loading it:
stashrun show myprojectStashes are stored locally in ~/.stashrun/ as encrypted JSON files, scoped by name so you can switch between project contexts without losing your environment state.
# Working on Project A
export DATABASE_URL=postgres://localhost/project_a
stashrun save project-a
# Switch to Project B
stashrun load project-b
# Come back later
stashrun load project-aMIT © yourname