Skip to content

[cli] Add --archive support to deploy continue#15197

Merged
ofhouse merged 4 commits intomainfrom
ofhouse/bld-3620-add-archive-flag-support-to-deploy-continue-command
Mar 25, 2026
Merged

[cli] Add --archive support to deploy continue#15197
ofhouse merged 4 commits intomainfrom
ofhouse/bld-3620-add-archive-flag-support-to-deploy-continue-command

Conversation

@ofhouse
Copy link
Copy Markdown
Member

@ofhouse ofhouse commented Feb 20, 2026

Context

vercel deploy continue is missing the --archive flag even though it shares the same semantics as deploy. Additionally, .vercel/output/provision.json must be sent as a separate file (not bundled into the tgz archive) so the API can inspect it before the build starts.

Changes

  • Add --archive support to deploy continue, reuse shared tarball packaging logic in the client, and add unit coverage. Deprecated split-tgz remains only on the normal deploy path.
  • When using --archive=tgz with deploy continue, provision.json is excluded from the tarball and sent as a standalone file alongside the archive chunks in the request body.
  • Extract createTgzFiles into a shared archive.ts utility with an optional exclude parameter, used by both createDeployment and continueDeployment.

References

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 20, 2026

🦋 Changeset detected

Latest commit: 8274bac

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/client Patch
vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Feb 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zero-config-go Ready Ready Preview, Comment Feb 20, 2026 11:37pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 20, 2026

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-l002kd9b8.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-l002kd9b8.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Python Runtime Wheel

A vercel-runtime wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_RUNTIME_PYTHON="vercel-runtime @ https://vercel-l002kd9b8.vercel.sh/tarballs/vercel_runtime-0.12.0.dev1774432030+8274bac-py3-none-any.whl"

Python Workers Wheel

A vercel-workers wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_WORKERS_PYTHON="vercel-workers @ https://vercel-l002kd9b8.vercel.sh/tarballs/vercel_workers-0.1.0.dev1774432030+8274bac-py3-none-any.whl"

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 20, 2026

🧪 Unit Test Strategy

Comparing: 69a6eab8274bac (view diff)

Strategy: Affected packages only

✅ Only testing packages that have been modified or depend on modified packages.

Affected packages - 2 (5%)
  1. @vercel/client
  2. vercel
Unaffected packages - 38 (95%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/config
  7. @vercel/detect-agent
  8. @vercel/edge
  9. @vercel/elysia
  10. @vercel/error-utils
  11. @vercel/express
  12. @vercel/fastify
  13. @vercel/firewall
  14. @vercel/frameworks
  15. @vercel/fs-detectors
  16. @vercel/functions
  17. @vercel/gatsby-plugin-vercel-builder
  18. @vercel/go
  19. @vercel/h3
  20. @vercel/hono
  21. @vercel/hydrogen
  22. @vercel/koa
  23. @vercel/nestjs
  24. @vercel/next
  25. @vercel/node
  26. @vercel/oidc
  27. @vercel/oidc-aws-credentials-provider
  28. @vercel/python
  29. @vercel/python-analysis
  30. @vercel/redwood
  31. @vercel/related-projects
  32. @vercel/remix-builder
  33. @vercel/routing-utils
  34. @vercel/ruby
  35. @vercel/rust
  36. @vercel/static-build
  37. @vercel/static-config
  38. examples

Results

  • Unit tests: Only affected packages will run unit tests
  • E2E tests: Running in parallel via E2E Tests workflow
  • Type checks: Only affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

@ofhouse ofhouse changed the title Add --archive support to deploy continue [cli] Add --archive support to deploy continue Feb 21, 2026
@ofhouse ofhouse force-pushed the ofhouse/bld-3620-add-archive-flag-support-to-deploy-continue-command branch from cace10a to 358e7c7 Compare March 25, 2026 08:23
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 25, 2026

Low Risk — CLI feature addition with shared utility refactor + unit tests.

  • .changeset/bright-ants-build.md: added changeset for patch release
  • packages/cli/src/commands/deploy/index.ts: added --archive flag parsing and validation for continue subcommand
  • packages/client/src/utils/archive.ts: extracted tarball creation logic into reusable utility

Assessed at 8274bac.

@ofhouse ofhouse marked this pull request as ready for review March 25, 2026 16:02
@ofhouse ofhouse requested review from a team as code owners March 25, 2026 16:02
@ofhouse ofhouse merged commit ca59f61 into main Mar 25, 2026
300 of 302 checks passed
@ofhouse ofhouse deleted the ofhouse/bld-3620-add-archive-flag-support-to-deploy-continue-command branch March 25, 2026 17:12
ofhouse pushed a commit that referenced this pull request Mar 26, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/build-utils@13.11.0

### Minor Changes

- Add `process-serverless` utilities: `getLambdaEnvironment`,
`getLambdaPreloadScripts`, `getLambdaSupportsStreaming`, and
`getEncryptedEnv`.
([#15712](#15712))

## @vercel/backends@0.0.52

### Patch Changes

- Updated dependencies
\[[`a54b8f246ac6b43ac8f1674093402e3fe145fd64`](a54b8f2)]:
    -   @vercel/build-utils@13.11.0

## @vercel/cervel@0.0.39

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/backends@0.0.52

## vercel@50.37.1

### Patch Changes

- Improve agent plugin install flow: agents now receive structured JSON
prompts for plugin installation instead of auto-approving silently.
Preferences are persisted to avoid repeat prompts. On deploy, shows a
non-blocking tip if the plugin is not installed.
([#15707](#15707))

- Auto-install agent tooling on `vercel login`, `vercel link`, and
`vercel deploy`. When a supported agent platform (Claude Code, Cursor)
is detected or the user has `~/.claude`/`~/.cursor` directories, prompts
to install the Vercel plugin. On `vercel link`, also prompts to add
Vercel best practices to AGENTS.md/CLAUDE.md. On `vercel deploy`, shows
a non-blocking tip if the plugin is not installed. User preferences are
persisted to avoid repeat prompts.
([#15692](#15692))

- Add --archive support to `deploy continue` command.
([#15197](#15197))

- Updated dependencies
\[[`a54b8f246ac6b43ac8f1674093402e3fe145fd64`](a54b8f2)]:
    -   @vercel/build-utils@13.11.0
    -   @vercel/backends@0.0.52
    -   @vercel/elysia@0.1.54
    -   @vercel/express@0.1.64
    -   @vercel/fastify@0.1.57
    -   @vercel/go@3.4.6
    -   @vercel/h3@0.1.63
    -   @vercel/hono@0.2.57
    -   @vercel/hydrogen@1.3.6
    -   @vercel/koa@0.1.37
    -   @vercel/nestjs@0.2.58
    -   @vercel/next@4.16.3
    -   @vercel/node@5.6.21
    -   @vercel/python@6.28.0
    -   @vercel/redwood@2.4.12
    -   @vercel/remix-builder@5.7.2
    -   @vercel/ruby@2.3.2
    -   @vercel/rust@1.0.5
    -   @vercel/static-build@2.9.5

## @vercel/client@17.2.64

### Patch Changes

- Add --archive support to `deploy continue` command.
([#15197](#15197))

- Updated dependencies
\[[`a54b8f246ac6b43ac8f1674093402e3fe145fd64`](a54b8f2)]:
    -   @vercel/build-utils@13.11.0

## @vercel/elysia@0.1.54

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.21

## @vercel/express@0.1.64

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.21
    -   @vercel/cervel@0.0.39

## @vercel/fastify@0.1.57

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.21

## @vercel/fs-detectors@5.12.1

### Patch Changes

- Updated dependencies
\[[`a54b8f246ac6b43ac8f1674093402e3fe145fd64`](a54b8f2)]:
    -   @vercel/build-utils@13.11.0

## @vercel/gatsby-plugin-vercel-builder@2.1.5

### Patch Changes

- Updated dependencies
\[[`a54b8f246ac6b43ac8f1674093402e3fe145fd64`](a54b8f2)]:
    -   @vercel/build-utils@13.11.0

## @vercel/h3@0.1.63

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.21

## @vercel/hono@0.2.57

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.21

## @vercel/koa@0.1.37

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.21

## @vercel/nestjs@0.2.58

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.21

## @vercel/node@5.6.21

### Patch Changes

- Updated dependencies
\[[`a54b8f246ac6b43ac8f1674093402e3fe145fd64`](a54b8f2)]:
    -   @vercel/build-utils@13.11.0

## @vercel/static-build@2.9.5

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/gatsby-plugin-vercel-builder@2.1.5

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants