Build and Upload Apps
deploy Command
To upload an app, run dg deploy
within the target project’s directory. (For Android, use the directory with the gradlew file, and for iOS, use the directory containing *.xcworkspace
or *.xcodeproj
).
dg deploy
Running this command will start the project build and will upload the built app to DeployGate.
Alternatively, you can upload the app directly by specifying the IPA/APK file parameters.
dg deploy /path/to/app.apk
deploy
command has a variety of options, including --message
option, which allows you to add messages to uploads.
deploy Command Options
deploy command has the following available options.
Option Name | Description |
---|---|
message | Description of uploaded file |
user | Upload target’s username or Organization name |
distribution-key | Specifying the distribution page’s hash (the “xxxx” portion of the distribution page’s URL /distributions/xxxx) will update the distribution page |
open | After an upload finishes, the app details screen automatically opens in a browser (macOS only) |
disable_notify | Disables email notifications when uploading (iOS only) |
configuration | Sets the Build Configuration for the build (iOS only) |
scheme | Sets the Scheme for the build (iOS only) |
Examples
Add a message to a build
dg deploy --message 'sample upload'
Upload to the Organization
dg deploy --user ${organization_name}
Update the distribution page
dg deploy --distribution-key ${distribution_key}