Skip to content

gplay recovery

Manage app recovery actions.

gplay recovery <subcommand> [flags]

Manage remote app recovery actions.

App recovery allows you to remotely trigger actions on user devices for crash mitigation, such as forcing an update or clearing app data.

Use with caution - these actions directly affect users.

List recovery actions.

gplay recovery list --package <name> [--version-code <code>]
Flag Description Default
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false
--version-code Version code (optional, filters by version) 0

Create a draft recovery action.

gplay recovery create --package <name> --json <json>

Create a draft app recovery action.

JSON format: { “targeting”: { “versionList”: { “versionCodes”: [“100”, “101”, “102”] } }, “remoteInAppUpdate”: { “isRemoteInAppUpdateRequested”: true } }

Or for data deletion: { “targeting”: { “allUsers”: {} }, “appDataDeletion”: {} }

Flag Description Default
--json CreateDraftAppRecoveryRequest JSON (or @file) ``
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false

Deploy a recovery action to users.

gplay recovery deploy --package <name> --recovery-id <id> --confirm
Flag Description Default
--confirm Confirm deployment false
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false
--recovery-id Recovery action ID 0

Cancel a recovery action.

gplay recovery cancel --package <name> --recovery-id <id>
Flag Description Default
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false
--recovery-id Recovery action ID 0

Add targeting criteria to a recovery action.

gplay recovery add-targeting --package <name> --recovery-id <id> --json <json>

Add additional targeting criteria to a draft recovery action.

JSON format: { “targetingUpdate”: { “versionList”: { “versionCodes”: [“103”, “104”] } } }

Flag Description Default
--json AddTargetingRequest JSON (or @file) ``
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false
--recovery-id Recovery action ID 0