Package Exports
- appium-package-depot
- appium-package-depot/dist/plugin.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (appium-package-depot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
appium-package-depot
The Appium Package Depot allows you to upload app packages (e.g. .apk, .ipa, .app, or .zip) directly to an Appium 2.x.x server instance. These packages are stored server-side and assigned a unique ID. Test sessions can then refer to these packages by specifying "app": "depot:PACKAGE_ID" in the Desired Capabilities.
Features
- Upload app packages for server-side storage
- Optionally unzip uploaded
.zipfiles - Define
setupandteardownscripts per package - Use packages via simple capabilities like
"app": "depot:PACKAGE_ID" - Platform-agnostic (Android, iOS, Windows, etc.)
⚠️ Critical Security Warning
WARNING: This plugin executes optional
setupandteardownscripts directly on the Appium server machine. These scripts may contain arbitrary shell commands and pose a significant security risk if misused.Additionally, the plugin exposes unauthenticated HTTP endpoints for uploading, listing, and removing packages. Do not expose the Appium server to untrusted networks.
Only use this plugin in isolated, trusted, and secure environments!
Installation
appium plugin install --source=npm appium-package-depotActivation
Run Appium with the following plugin and storage path configuration:
appium --use-plugins=package-depot --plugin-package-depot-dir=/path/to/package/depot/dir/Usage
1. Upload a Package
curl --location 'http://${APPIUM_SERVER_URL}/package-depot/add-package?unzip=true&executable-path=ExampleApp.app' \
--header 'Content-Type: multipart/form-data' \
--form 'setup=@"/path/to/setup.sh"' \
--form 'package=@"/path/to/ExampleApp.zip"' \
--form 'teardown=@"/path/to/teardown.sh"'Only package is required. All other fields are optional.
Example Response:
{
"message": "Package depot successfully uploaded",
"packageId": "1743542085618-1051"
}2. Use the Package in a Test
{
"platformName": "ios",
"automationName": "xcuitest",
"app": "depot:1743542085618-1051"
}3. Remove a Package
curl --location --request DELETE 'http://${APPIUM_SERVER_URL}/package-depot/remove-package?packageId=1743542085618-1051'Example Response:
{
"message": "Package 1743542085618-1051 removed successfully"
}4. Get all loaded Packages
curl --location 'http://${APPIUM_SERVER_URL}/package-depot/packages/'Example Response:
{
"1762214966168-7472": {
"id": "1762214966168-7472",
"name": "TestPackage.zip",
"packagePath": "packageDepot/packages/1762214966168-7472",
"package": {
"filename": "TestPackage.zip",
"relativePath": "TestPackage.app"
}
}
}5. Get a single Package
curl --location 'http://${APPIUM_SERVER_URL}/package-depot/packages/?packageId=1762214966168-7472'Example Response:
{
"id": "1762214966168-7472",
"name": "TestPackage.zip",
"packagePath": "packageDepot/packages/1762214966168-7472",
"package": {
"filename": "TestPackage.zip",
"relativePath": "TestPackage.app"
}
}Configuration Options
| Option | Description |
|---|---|
--plugin-package-depot-dir |
Path to the directory where uploaded packages are stored |