---
schema_version: "1"
id: 38f37b9fa37c8f7b0b56a3204858d6f088f3f0f30fb67daffdde921a7f32885c
title: package push-upgrade abort
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfclireference/guides/package/cli_reference_package_push-upgrade_abort.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_package_push-upgrade_abort.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5dbc4891a2047d6d6dcfa928e4ac3ea2090cd1d28e727e1ccd9a45e446619f02
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# package push-upgrade abort

Abort a package push upgrade that has been scheduled. Only push upgrade requests with a status of Created or Pending can be aborted.

## Description for package push-upgrade abort

Specify the request ID that you want to abort. If applicable, the command displays errors related to the request.

To show all requests in the org, run "sf package pushupgrade list --package 033...".

## Flags

| Flag Name (Long) | Flag Name (Short) | Description |
|------------------|-------------------|-------------|
| <code>&#8209;&#8209;api&#8209;version</code> | N/A | **Type:** Value<br><br>Override the api version used for api requests made by this command |
| <code>&#8209;&#8209;flags&#8209;dir</code> | N/A | **Type:** Value<br><br>Import flag values from a directory. |
| <code>&#8209;&#8209;json</code> | N/A | **Type:** Boolean<br><br>Format output as json. |
| <code>&#8209;&#8209;push&#8209;request&#8209;id</code> | <code>&#8209;i</code> | **Type:** Value<br>**Required**<br><br>ID of the package push request (starts with 0DV). This ID is returned after the package push-upgrade schedule command completes successfully. |
| <code>&#8209;&#8209;target&#8209;dev&#8209;hub</code> | <code>&#8209;v</code> | **Type:** Value<br>**Required**<br><br>Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set. |

## Examples for package push-upgrade abort

Cancel the specified package push upgrade request with the specified ID; uses your default Dev Hub org:

```shell
sf package push-upgrade abort --push-request-id 0DV...
```

Cancel the specified package push upgrade request in the Dev Hub org with username devhub@example.com:

```shell
sf package push-upgrade abort --push-request-id 0DV... --target-dev-hub devhub@example.com
```
<!-- prettier-ignore-end -->
