GithubHelp home page GithubHelp logo

bellam / bcc-deploy-cli Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 22 KB

Command line interface to deploy Oracle ATG BCC projects with NodeJS and Puppeteer.

License: MIT License

JavaScript 100.00%

bcc-deploy-cli's Introduction

bcc-deploy-cli

Command line interface to deploy Oracle ATG BCC projects with NodeJS and Puppeteer.

npm version Build Status

  • Tested on Oracle Commerce 11.2.

Installation

npm install -g @bellam/bcc-deploy-cli

This command installs puppeteer's local chromium browser as part of the package.

Command line interface

To deploy a project, run bcc-deploy command with required arguments.

$ bcc-deploy --prj "project name" --url "http://127.0.0.1:8081"

You can pass username and password as arguments but it is recommended to set ATG BCC login credentials in environment variables.

Set ATG BCC username in environment variable BCC_USERNAME_<env> and ATG BCC password in environment variable BCC_PASSWORD_<env>.

Example:

  • if your --env argument is "prod", set BCC_USERNAME_PROD and BCC_PASSWORD_PROD.
  • If you are not using --env, set BCC_USERNAME and BCC_PASSWORD.

Deploying project without --url

Optionally, you can also set the BCC URL (without trailing slash) in environment variable BCC_URL_<env>.

Set up all three environment variables (username, password, url) and run bcc-deploy,

$ bcc-deploy --prj "project name" --env prod

Arguments

Usage: --prj <project_name> --env <environment_name>

Options:
  --help            Show help                                          [boolean]
  --version         Show version number                                [boolean]
  --prj, --project  Project name                             [string] [required]
  --url             BCC URL endpoint. eg: http://x.x.x.x:xxxx.
                    Optionally, set environment variable BCC_URL_<env>
                                                             [string] [required]
  --env             Environment. eg: uat, prod                          [string]
  -u, --user        BCC username.
                    Optionally, set environment variable BCC_USERNAME_<env>
                    (Recommended).                           [string] [required]
  -p, --pass        BCC Password.
                    Optionally, set environment variable BCC_PASSWORD_<env>
                    (Recommended).                           [string] [required]
  --headless        Open browser process in background and hide browser window.
                                                       [boolean] [default: true]
  --xform           Optional transform function called on -prj argument[boolean]

bcc-deploy

Versions

1.1.1 - added logout function post-deployment

1.1.0 - pass environment as argument to pickup environment-specific URL, Username, Password

1.0.3 - xform argument to transform project name

1.0.1 - npm registry docs update

1.0.0 - Initial Commit

bcc-deploy-cli's People

Contributors

bellam avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.