project deploy resume
Resume watching a deploy operation and update source tracking when the deploy completes.
Use this command to resume watching a deploy operation if the original command times out or you specified the –async flag. Deploy operations include standard deploys, quick deploys, deploy validations, and deploy cancellations. This command doesn’t resume the original operation itself, because the operation always continues after you’ve started it, regardless of whether you’re watching it or not. When the deploy completes, source tracking information is updated as needed.
Run this command by either passing it a job ID or specifying the –use-most-recent flag to use the job ID of the most recent deploy operation.
deploy:metadata:resume
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑concise | N/A | Type: Boolean Show concise output of the deploy operation result. |
‑‑coverage‑formatters | N/A | Type: Value Valid Values: clover, cobertura, html-spa, html, json, json-summary, lcovonly, none, teamcity, text, text-summaryFormat of the code coverage results. For multiple formatters, repeat the flag for each formatter. –coverage-formatters lcov –coverage-formatters clover |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑job‑id | ‑i | Type: Value Job ID of the deploy operation you want to resume. These commands return a job ID if they time out or you specified the –async flag:
The job ID is valid for 10 days from when you started the deploy operation. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑junit | N/A | Type: Boolean Output JUnit test results. |
‑‑results‑dir | N/A | Type: Value Output directory for code coverage and JUnit results; defaults to the deploy ID. |
‑‑use‑most‑recent | ‑r | Type: Boolean Use the job ID of the most recent deploy operation. For performance reasons, this flag uses job IDs for deploy operations that started only in the past 3 days or less. If your most recent operation was more than 3 days ago, this flag won’t find a job ID. |
‑‑verbose | N/A | Type: Boolean Show verbose output of the deploy operation result. |
‑‑wait | ‑w | Type: Value Number of minutes to wait for the command to complete and display results. If the command continues to run after the wait period, the CLI returns control of the terminal window to you. To resume watching the deploy operation, run this command again. To check the status of the deploy operation, run “sf project deploy report”. |
Resume watching a deploy operation using a job ID:
Resume watching the most recent deploy operation: