Docs / Set up mise
Set up mise
Give each repo its own accounts and tasks, so you never log in and out of CLIs between apps again.
The login and logout friction comes from CLIs storing one global session. The fix is to give each repo its own tokens through environment variables. mise does this per folder. New to it? Read ReleaseKey as a front end for mise first.
1. Install mise
brew install mise
2. Add a mise.toml
In ReleaseKey, open Edit app → Generate mise.toml to draft one from your steps, or write it yourself:
# mise.toml (committed)
[env]
_.file = ".env.deploy" # optional: or put values in mise.local.toml
[tasks."db:dry"]
description = "Dry run migrations"
run = "supabase db push --dry-run"
[tasks."db:push"]
description = "Push migrations"
run = "supabase db push"
[tasks."functions:deploy"]
run = "supabase functions deploy"
[tasks."trigger:deploy"]
run = "npx trigger.dev@4.4.6 deploy"
3. Put secrets in a gitignored file
# mise.local.toml (add it to .gitignore!)
[env]
SUPABASE_ACCESS_TOKEN = "sbp_..." # supabase.com/dashboard/account/tokens
SUPABASE_DB_PASSWORD = "..."
TRIGGER_ACCESS_TOKEN = "tr_pat_..." # Trigger.dev personal access token
VERCEL_TOKEN = "..."
HEROKU_API_KEY = "..." # heroku authorizations:create
Add mise.local.toml to .gitignore before you put anything in it.
4. Trust the folder once
mise trust
What changes in ReleaseKey
- Every command runs as
mise exec -- <shell> -c "<command>". The folder’s tokens and tool versions load deterministically, and you neversupabase loginagain. - The card shows
mise · N env. Hover it to see which variable names are loaded. Values never leave ReleaseKey’s main process. - ReleaseKey suggests
mise run …steps first when tasks exist, so the release vocabulary lives in the repo, versioned and readable by your agents.
The same mise run db:push works in your own terminal, so the desk and your terminal can’t drift apart.
Verify without printing secrets
mise env --json | jq 'keys'
This lists variable names only.
Something unclear or out of date? Email hello@releasekey.dev.