CLI Git Host Integration
Authorize providers, register repository origins, and deploy secrets.
Commands
envx githost authorize [provider]
envx githost logout [provider] [--remove-origins]
envx githost add <originName> <url>
envx githost get-hosts [provider]
envx githost deploy <originName> <deployTarget> [options]Supported providers: github, gitlab.
Deploy targets: environment, action.
Options Table
| Command | Flag | Description |
|---|---|---|
| githost logout | --remove-origins | Also remove associated origins when revoking provider auth. |
| githost deploy | -e, --environment <envxEnvironment> | Source envx environment slug. |
| githost deploy | -v, --version <version> | Source version number. Latest used when omitted. |
| githost deploy | --ge, --githost-environment <githostEnvironment> | Required when deployTarget is environment. |
| githost deploy | --no-merge | Delete remote secrets not present in source env. |
Usage Examples
envx githost authorize github
envx githost add web https://github.com/acme/web
envx githost get-hosts github
envx githost deploy web action -e production -v 3
envx githost deploy web environment -e production --ge staging --no-merge