Installing dg command

Please install dg command from here. Install Page
To verify your dg command installation, use the dg --version command.

$ dg --version

dg 0.2.0

Build and Upload

Please run dg deploy on the root directory of your Android or iOS project.

$ dg deploy

By running this command, the project is built then uploaded to DeployGate.
Or you can specify the .apk/.ipa file directly.

$ dg deploy /path/to/app

dg deploy has several options. For example, --message for adding a description of the build.
Use dg deploy --help to see other options.

$ dg deploy --message 'upload message'

$ dg deploy --help

Adding new iOS devices (for iOS Ad Hoc distributions)

When you or your Tester add a new iOS device to DeployGate, you will receive an email that ask you to add the UDID to your provisioning profile.
You can do this by just running dg add-devices in your terminal.

$ dg add-devices

The command automatically downloads the pending UDIDs, registers them on Apple Developer, refreshes the provisioning profile, rebuilds the app and uploads a new build to DeployGate.
dg add-devices can also add a specific UDID by using --udid option.
Run dg add-devices --help to see details and other options.

$ dg add-devices --udid 'xxxxxxxxxxxxx'

$ dg add-devices --help

Other commands


Run dg login to log in. If you run this command on a desktop environment, it opens a new browser window for log in.

$ dg login

If you run this command on a server environment or by running with the --terminal option, it asks your credentials on the terminal.

$ dg login --terminal


Run dg logout to log out from DeployGate.

$ dg logout


You can see the list of commands anytime by running dg --help.

$ dg help


To uninstall dg command, please run gem uninstall deploygate.

$ gem uninstall deploygate

Other resources

dg command is open source. Feel free to visit GitHub repository to join the discussion!