Stop hardcoding variables into `.env` files. Secure, fetch, and hot-inject dynamic execution parameters directly from GitHub repositories straight into downstream processes.
Configure your environment maps and execute commands in 4 simple steps.
Export your GitHub handle and personal access token (PAT) to your system environment variables.
Organize your manifest repository with a directory layout named by environment profiles.
Store raw key-value secret configurations safely nested within your repository profiles.
Execute ghostenv directly followed by flags and your targeted downstream binary execution.
# Provide required credential flags to authorize requests
export GITHUB_USERNAME="your_github_username_or_org"
export GITHUB_TOKEN="ghp_yourPersonalAccessToken"
The Go utility expects a directory structure matching your profiles. Ensure each profile path contains an env.json map string framework.
# Command-line structure
ghostenv -manifest <repo> -profile <env> <command>
# Real Go application deployment examples:
ghostenv -manifest="configs" -profile="dev" go run main.go
ghostenv -manifest="secrets" -profile="staging" npm run start