Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI Reference

Commands

CommandAliasesDescription
minienv deployupBrings up your remote mini environment
minienv destroydownTears it down
minienv versionPrints version info

None of them take positional arguments.

Flags

All flags are global and work on every command.

FlagShortDefaultDescription
--file-fCompose configuration file. Repeatable. Same as docker compose -f
--project-directoryAlternate working directory. Same as docker compose --project-directory
--project-name-pProject name. Same as docker compose -p
--dry-runfalseBuild images without pushing, and preview the deploy without applying it

The first three behave exactly as they do in docker compose.

What --dry-run still touches depends on the deployer you configured — see Getting Started.

Environment variables

VariableEffect
NGROK_AUTHTOKENEnables ngrok. Unset means all ngrok config is silently ignored — see Exposing Services
NGROK_API_KEYOptional. Only used to print the published URL table after a deploy. Not needed to publish, or by minienv down
HELM_DRIVERHelm storage backend for the k8s deployer. Defaults to secret

Standard compose environment handling also applies: COMPOSE_FILE, COMPOSE_PROJECT_NAME, .env file loading, and ${VAR} interpolation. That last one is the easiest way to give each developer or branch its own namespace:

x-minienv:
  k8s:
    context: minikube
    namespace: $MINIENV_NAMESPACE
MINIENV_NAMESPACE=alice-feature-x minienv deploy

Examples

# Deploy using the default compose file
minienv deploy

# Deploy with an override file
minienv deploy -f compose.yml -f compose.prod.yml

# See what would happen, without pushing images or changing the target
minienv deploy --dry-run

# Tear down
minienv destroy