# Install

## **Installing**

Install the [Authereum SDK](https://www.npmjs.com/package/authereum) package from NPM:

```bash
$ npm install authereum --save
```

Please note that Authereum is meant for browser applications. For node.js support, see [this FAQ](/faq.md).

## **Upgrading package**

Upgrade to the latest version using the `@latest` tag:

```bash
$ npm install authereum@latest --save
```

## CDN

The Authereum SDK library is available on the [jsDelivr CDN](https://cdn.jsdelivr.net/npm/authereum@latest/authereum.js):

```markup
<script src="https://cdn.jsdelivr.net/npm/authereum@latest/authereum.js"></script>
```

Note: to purge the jsdeliver cache, visit this [purge url](https://purge.jsdelivr.net/npm/authereum@latest/authereum.js).

Alternatively, it's also available on the [unpkg CDN](https://unpkg.com/authereum@latest/authereum.js):

```markup
<script src="https://unpkg.com/authereum@latest/authereum.js"></script>
```

Afterwards the window function `window.Authereum` will be available to instantiate Authereum.

## Importing

#### Using ES6 modules:

```javascript
import Authereum from 'authereum'
```

#### Using commonjs modules:

```javascript
const Authereum = require('authereum').default
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.authereum.com/install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
