Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.
/ pgb-cli Public archive
forked from goya/pgb-cli

Nodejs CLI for accessing PhoneGap Build

License

Notifications You must be signed in to change notification settings

phonegap-build/pgb-cli

 
 

Repository files navigation

pgb-cli npm

This is a nodejs CLI module to access PhoneGap Build.

The CLI can be installed by

> yarn global add pgb-cli

or

> npm install -g pgb-cli

or

> brew tap phonegap-build/build
> brew install bash-completion or zsh-completions # only required for command completion
> brew install pgb

If you don't have (or don't want) node installed you can download executables for Mac OSX, Linux and Windows here

Here is a snippet of some common actions:

# list your apps
> pgb ls

# create a new app from a github repo
> pgb new shazamable/repoodly

# create a new app from a directory
> pgb new . --ios-key 12 --share true --debug true --ignore node_modules,tmp,test,**/*.log

Here is the full list of commands:

Usage: pgb [OPTIONS] COMMAND [arg...]
       pgb [ --help | -? | --version | -v ]

Options:

  -d, --debug       Enable debug mode
  -f, --force       Skip confirmation
  -j, --json        Print raw json
  --no-progress     Don't show progress
  -c, --no-colours  Don't use colors
  -v, --version     Print version
  -?, --help        Print usage
  -b, --bare        Print numerical ids

Commands:

  app               Show information about an app
  build             Build an app
  clone             Shortcut to update and build a repo backed app
  download          Download an app package
  lock              Lock a signing key
  log               Show a build log
  login             Sign in to PhoneGap Build
  logout            Sign out of PhoneGap Build
  ls                List your apps
  key               Show information about a signing key
  keys              List your signing keys
  new               Create an app from a repository, file or directory
  new-key           Create a signing key
  phonegaps         List supported versions of PhoneGap
  rm                Delete an app
  rm-key            Delete a signing key
  unlock            Unlock a signing key
  update            Update an app
  update-key        Update a signing key
  whoami            Show signed in user

Run 'pgb COMMAND --help' for more information on a command

If you find a bug or have a feature request tell me about it here.

Follow me on twitter @brettrudd