# Keep Subbly.js up to date

Pin a version in production, so a new release cannot change your storefront
before you test it.

- **npm.** `npm install` writes the exact version to your lock file. To
  upgrade, run `npm install @subbly/sdk@latest`, then test and commit the new
  lock file.
- **CDN.** The bare URL always serves the latest release. Put the version in
  the URL instead, and change it when you upgrade:

```html title="Pin the CDN version"
<script src="https://cdn.jsdelivr.net/npm/@subbly/sdk@0.6.27"></script>
```

To see which version a page runs, read
[`subbly.VERSION`](/reference/subbly-sdk/setup#version).
