PRODUCTION READY CLI TOOL

Inject Secrets Safely with
ghostenv

Stop hardcoding variables into `.env` files. Secure, fetch, and hot-inject dynamic execution parameters directly from GitHub repositories straight into downstream processes.

Getting Started

Configure your environment maps and execute commands in 4 simple steps.

1

Set Auth Credentials

Export your GitHub handle and personal access token (PAT) to your system environment variables.

2

Structure Repository

Organize your manifest repository with a directory layout named by environment profiles.

3

Populate env.json

Store raw key-value secret configurations safely nested within your repository profiles.

4

Hot-Inject Runtime

Execute ghostenv directly followed by flags and your targeted downstream binary execution.

1. Setup Terminal Authentication

# Provide required credential flags to authorize requests

export GITHUB_USERNAME="your_github_username_or_org"

export GITHUB_TOKEN="ghp_yourPersonalAccessToken"

Step 2 & 3: GitHub Manifest Directory Structure

The Go utility expects a directory structure matching your profiles. Ensure each profile path contains an env.json map string framework.

repo-root/
├── dev/env.json     → {"DB_HOST": "localhost"}
└── staging/env.json → {"DB_HOST": "10.0.0.4"}
4. Run Command & Inject Context

# 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