Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 960 Bytes

README.md

File metadata and controls

50 lines (36 loc) · 960 Bytes

ci-thief

Simple CLI tool to fetch GitLab CI variables and output them as exportable environment variables.

Installation

macOS (Homebrew)

brew install containeroo/tap/ci-thief

Usage

Fetch GitLab CI variables from a project

Usage:
  ci-thief [PROJECT_ID] [flags]
  ci-thief [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  login       Login to GitLab
  logout      Logout from GitLab
  version     Print the version of ci-thief

Flags:
  -h, --help            help for ci-thief
  -R, --non-recursive   Do not fetch variables from parent groups

Use "ci-thief [command] --help" for more information about a command.

Example:

ci-thief 1234

And you will get something like this:

# env scope *
export MY_ENV_VAR='secret value'
# env scope parentgroup/*
export MY_OTHER_ENV_VAR='another secret value'