# @architect/deploy

> Deploys @architect projects

Latest version **7.0.3** (published 2026-01-19) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @architect/deploy
pnpm add @architect/deploy
yarn add @architect/deploy
bun add @architect/deploy
```

Provides the command `arc-deploy`.

## Health

**Score 55/100 (C)** — status: stable.

Positive: no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 7.0.3 |
| Published | 2026-01-19 |
| First published | 2019-07-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=22 |
| Dependencies | 16 |
| Unpacked size | 130.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 8 |
| Maintainers | brianleroux, dam, kborchers, ryanblock, architectci, filmaj |
| Keywords | arc, deploy |

## Links

- npm: https://www.npmjs.com/package/@architect/deploy
- Repository: https://github.com/architect/deploy
- Homepage: https://github.com/architect/deploy#readme
- Issues: https://github.com/architect/deploy/issues
- npm.io page: https://npm.io/package/@architect/deploy

## Dependencies (16)

- [zipit](https://npm.io/package/zipit.md) 2.0.0
- [zip-dir](https://npm.io/package/zip-dir.md) 2.0.0
- [fs-extra](https://npm.io/package/fs-extra.md) ~11.3.3
- [mime-types](https://npm.io/package/mime-types.md) ~3.0.2
- [@aws-lite/s3](https://npm.io/package/@aws-lite/s3.md) ^0.2.6
- [@aws-lite/ssm](https://npm.io/package/@aws-lite/ssm.md) ^0.2.3
- [@architect/utils](https://npm.io/package/@architect/utils.md) ~6.0.3
- [@aws-lite/client](https://npm.io/package/@aws-lite/client.md) ^0.23.2
- [@aws-lite/lambda](https://npm.io/package/@aws-lite/lambda.md) ^0.1.5
- [@architect/create](https://npm.io/package/@architect/create.md) ~7.0.0
- [@architect/hydrate](https://npm.io/package/@architect/hydrate.md) ~6.0.0
- [@architect/package](https://npm.io/package/@architect/package.md) ~11.0.3
- [@architect/inventory](https://npm.io/package/@architect/inventory.md) ~6.1.0
- [@aws-lite/cloudfront](https://npm.io/package/@aws-lite/cloudfront.md) ^0.0.11
- [@aws-lite/apigatewayv2](https://npm.io/package/@aws-lite/apigatewayv2.md) ^0.0.9
- [@aws-lite/cloudformation](https://npm.io/package/@aws-lite/cloudformation.md) ^0.1.3

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 7.0.3 (latest) — 2026-01-19
- 7.0.0-RC.0 (RC) — 2025-11-25
- 7.0.2 — 2026-01-15
- 7.0.1 — 2025-12-15
- 7.0.0 — 2025-11-27
- 6.0.1 — 2025-11-13
- 6.0.0 — 2025-11-13
- 5.1.1-RC.1 — 2025-09-25
- 5.1.1-RC.0 — 2025-09-24
- 5.1.0 — 2025-09-10
- 5.0.9 — 2025-09-03
- 5.0.8 — 2025-01-23
- 5.0.7 — 2024-04-30
- 5.0.6 — 2024-04-29
- 5.0.5 — 2024-03-25
- … 232 more at https://npm.io/package/@architect/deploy/versions

## README

[<img src="https://assets.arc.codes/architect-logo-500b@2x.png" width=500>](https://www.npmjs.com/package/@architect/deploy)

## [`@architect/deploy`](https://www.npmjs.com/package/@architect/deploy)

> Architect serverless framework module for deploying applications to cloud infrastructure

[![GitHub CI status](https://github.com/architect/deploy/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/architect/deploy/actions?query=workflow%3A%22Node+CI%22+branch%3Amain)


## Installation

    npm i @architect/deploy
    let deploy = require('@architect/deploy')


## Requirements

You need to have the `sam` command-line utility available on your `$PATH`. Check out [AWS' docs][sam-cli] for instructions on how to install this.


## API

### `deploy.direct({ isDryRun, srcDirs }, callback)`

Deploys function code directly to one or more staging (or production) environment Lambdas _by ommitting CloudFormation and directly updating code payloads_. This is very useful for live debugging; changes made with direct deploys should be considered temporary.



### `deploy.sam({ quiet, verbose, production }, callback)`

Deploys all infrastructure associated to your @architect app.

Set `quiet` to truthy to suppress deployment progress and status messages (from the updater system). Set `verbose` to truthy to enable detailed output including CloudFormation logs, file operation details, and deployment artifact information. By default will only push to the staging environment unless `production` is truthy.


### `deploy.static({ bucket, credentials, fingerprint, prefix, prune, quiet, region, verbose, production }, callback)`

All parameters are optional.

Pushes static assets from the `public/` folder of @architect apps to S3, as defined by your @architect app's `.arc` file. Respects `fingerprint` (`true` or `external`), `prefix`, `prune`, and `ignore` params or `@static` pragma directives (more information available on the [`@static` arc guide][static-guide]).

By default will only publish to the staging environment unless `production` is truthy. Set `verbose` to truthy to enable chatty mode.

[static-guide]: https://arc.codes/reference/static
[sam-cli]: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html


### `aws-sdk` caveat

Deploy requires `aws-sdk`; earlier versions included `aws-sdk` in `peerDependencies`, which prior to npm 7 would not automatically install `aws-sdk`. This is because Architect assumes you already have `aws-sdk` installed via Architect, or that it's available at runtime if you're using Deploy in a Lambda.

However, npm 7 (once again) changed the behavior of `peerDependencies`, now automatically installing all `peerDependencies` (instead of merely printing a reminder). This means any Lambdas that use Deploy would get a >50MB dependency payload if deployed on a machine with npm 7.

As such, please ensure `aws-sdk` is installed to your project or globally to your machine. We are sorry to make this a userland issue, but we feel this is preferable to unnecessarily and invisibly causing `aws-sdk` to be double-installed in Lambdas, negatively impacting coldstart times and adding to bug vectors.

---
_Source: https://npm.io/package/@architect/deploy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
