Coder Social home page Coder Social logo

js-env-manager's Introduction

env-manager

  • 환경변수를 관리하는 CLI Tool
  • aws 의 parameter store service 기반

Pre-requisite

Install & setup aws cli (Mac)

  • brew 를 이용하여 install
brew install awscli
  • ~/.aws/credential setting
aws configure
>>>
AWS Access Key ID [****************YDXZ]
...
  • access key 정상 설정 확인
aws sts get-caller-identity
>>>
{
    "UserId": "AIDAYZS...",
    "Account": "6047...",
    "Arn": "arn:aws:iam::6047..."
}

Install

npm install js-env-manager
npx js-env-manager --help
>>>
Usage: env-manager [options] [command]

ENV Managing CLI tool

Options:
  -s, --stage <type>        env stage. (choices: "dev", "prod")
  -p, --aws-profile <type>  aws profile (default: "default")
  -r, --repo <type>         repository name (default: "badge-tool")
  -h, --help                display help for command

Commands:
  bulk-set [options]        bulk set from env file. (remove all values which has been previously set )
  set                       set key, value pair
  print-all                 print all envs
  delete                    delete key, value pair

How To Use

bulk set

  • .env 파일에 설정된 variables 을 일괄 업데이트
  • 기존에 upload 한 env 를 모두 지우고 업데이트함
npx js-env-manager bulk-set -s [dev|prod] -p {aws profile (default: detault)} -f {env file path}

print-all

  • 등록된 환경변수 확인
  • 해당 command 를 통해 환경 변수 파일 생성 가능
npx js-env-manager print-all -s [dev|prod] -p {aws profile (default: detault)}

# file 생성
npx js-env-manager print-all -s [dev|prod] -p {aws profile (default: detault)} > {file name}

set

  • 특정 variable 을 등록/업데이트
npx js-env-manager set -s [dev|prod] -p {aws profile (default: detault)}

delete

  • 특정 variable 을 삭제
npx js-env-manager delete -s [dev|prod] -p noox

js-env-manager's People

Contributors

soobokjin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.