077d8e3552
Tentative changelog: ### Features - [cli] Add interactive account selection to pulumi login command [#17618](https://github.com/pulumi/pulumi/pull/17618) - [engine] Keep computers awake while an update is running [#17675](https://github.com/pulumi/pulumi/pull/17675) - [cli/display] Colorize selected stack when listing [#17606](https://github.com/pulumi/pulumi/pull/17606) - [programgen] Implement package descriptor blocks in PCL to load parameterized packages [#17589](https://github.com/pulumi/pulumi/pull/17589) - [sdk/nodejs] Support Node.js 23 [#17639](https://github.com/pulumi/pulumi/pull/17639) ### Bug Fixes - [docs] Fix spacing and formatting of `stack init` command's long doc [#17534](https://github.com/pulumi/pulumi/pull/17534) - [engine] Spot skipped-create dependencies even when inputs don't change [#17633](https://github.com/pulumi/pulumi/pull/17633) - [engine] Normalize URNs in `DeletedWith` references [#17666](https://github.com/pulumi/pulumi/pull/17666) - [sdk/python] Add additional debug information to `ValueError` and `AssertionError` [#17577](https://github.com/pulumi/pulumi/pull/17577) ### Miscellaneous - [docs] Update function comments to remove outdated DIY backend note [#17563](https://github.com/pulumi/pulumi/pull/17563) - [yaml] Update YAML to 1.11.2 [#17637](https://github.com/pulumi/pulumi/pull/17637) |
||
---|---|---|
.. | ||
asset | ||
automation | ||
cmd | ||
dist | ||
dynamic | ||
iterable | ||
log | ||
npm | ||
proto | ||
provider | ||
queryable | ||
runtime | ||
tests | ||
tests_with_mocks | ||
types | ||
vendor | ||
.eslintrc.js | ||
.gitignore | ||
.npmignore | ||
Makefile | ||
README.md | ||
biome.json | ||
config.ts | ||
errors.ts | ||
index.ts | ||
invoke.ts | ||
metadata.ts | ||
output.ts | ||
package.json | ||
resource.ts | ||
stackReference.ts | ||
tsconfig.json | ||
tsutils.ts | ||
typescript-shim.ts | ||
utils.ts | ||
version.ts | ||
yarn.lock |
README.md
Pulumi Node.js SDK
The Pulumi Node.js SDK lets you write cloud programs in JavaScript.
Installation
Using npm:
$ npm install --save @pulumi/pulumi
Using yarn:
$ yarn add @pulumi/pulumi
This SDK is meant for use with the Pulumi CLI. Visit Pulumi's Download & Install to install the CLI.
Building and Testing
For anybody who wants to build from source, here is how you do it.
Prerequisites
This SDK uses Node.js and we support any of the Current, Active and Maintenance LTS versions. We support both NPM and Yarn for package management.
At the moment, we only support building on macOS and Linux, where standard GNU tools like make
are available.
Make Targets
To build the SDK, simply run make
from the root directory (where this README
lives, at sdk/nodejs/
from the repo's
root). This will build the code, run tests, and install the package and its supporting artifacts.
At the moment, for local development, we install everything into $HOME/.dev-pulumi
. You will want this on your $PATH
.
The tests will verify that everything works, but feel free to try running pulumi preview
and/or pulumi up
from
the examples/minimal/
directory. Remember to run tsc
first, since pulumi
expects JavaScript, not TypeScript.