Skip to content

A simple CLI to manage environment variable without CircleCI web interface

License

Notifications You must be signed in to change notification settings

jobteaser-oss/circleci-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI Environment Variables Management

Abstract

When the amount of CircleCI projects grows it's can be complicate to create, update or delete environment variables for each project. And sometime you would add environment variable without frontend tracking. This CLI wrap the CircleCI API to manage the environment variable.

Install

Run the following command:

$> go get -u github.com/jobteaser-oss/circleci-env

Usage

The CLI expose 4 commands: list, get, set and del.

List the environment variables in a project:

$> circleci-env \
    --token $CIRCLECI_TOKEN \
    --vcs-type github \
    --username jobteaser-oss \
    --project someproject \
    list

Get a environment variable in a project:

$> circleci-env \
    --token $CIRCLECI_TOKEN \
    --vcs-type github \
    --username jobteaser-oss \
    --project someproject \
    get FOO

Set (create or update) a environment variable in a project:

$> circleci-env \
    --token $CIRCLECI_TOKEN \
    --vcs-type github \
    --username jobteaser-oss \
    --project someproject \
    set FOO BAR

Delete a environment variable in a project:

$> circleci-env \
    --token $CIRCLECI_TOKEN \
    --vcs-type github \
    --username jobteaser-oss \
    --project someproject \
    del FOO

The flag --help or -h can give you more information about each command.

Build

Building the project requires go >= 1.13.x.

You can build the service with:

make build

The final binary is available in the bin directory.

About

A simple CLI to manage environment variable without CircleCI web interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published