---
title: "Installation"
framework: javascript
version: "36.1.0"
---

# Installation

AG Grid is available for download from NPM, CDN or as a direct download, however, we strongly recommend using either NPM or CDN. When using NPM, you need to import the package and register the modules you want to use.

## NPM Installation

Install the `ag-grid-community` package:

```bash
npm install ag-grid-community
```

To use AG Grid Enterprise features, install the `ag-grid-enterprise` package:

```bash
npm install ag-grid-enterprise
```

> **Note**
>
> You can test AG Grid Enterprise locally without a licence. To test in production, access support, and remove the watermark and console warnings, [request a trial licence](https://www.ag-grid.com/javascript-data-grid/community-vs-enterprise/#request-a-30-day-enterprise-bundle-trial-licence).

### Registering Modules

Register the `AllCommunityModule` to access all Community features or `AllEnterpriseModule` to access all Community ***and*** Enterprise features:

```js
import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';
// import { AllEnterpriseModule } from 'ag-grid-enterprise';

// Register all Community features
ModuleRegistry.registerModules([AllCommunityModule]);
```

> **Note**
>
> To minimize bundle size, only register the modules you want to use. See the [Selecting Modules](https://www.ag-grid.com/javascript-data-grid/modules/) docs for more information.

### Importing

Import `createGrid` from the `ag-grid-community` package to create a new data grid:

```js
import { createGrid } from 'ag-grid-community';
```

## CDN Installation

To install AG Grid Community, include the following script tags in your HTML file:

```html
<script src="https://cdn.jsdelivr.net/npm/ag-grid-community@36.1.0/dist/ag-grid-community.min.js"></script>
```

To install AG Grid Enterprise, include the following script tags in your HTML file:

```html
<script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@36.1.0/dist/ag-grid-enterprise.min.js"></script>
```

When installing AG Grid via a CDN, all modules are automatically registered for you. You can then access AG Grid via the `agGrid` global variable. See the [Quick Start](https://www.ag-grid.com/javascript-data-grid/getting-started/) for more information.

## Download

If your project does not use package manager and you don't want to refer AG Grid from CDN, you can download AG Grid's source files and keep them in your project structure.

> **Warning**
>
> Downloading AG Grid makes upgrading more complex and prone to errors. We recommend using AG Grid from an NPM package or from CDN.

#### Community

You can download AG Grid Community from [GitHub Repository](https://github.com/ag-grid/ag-grid/releases/download/release-36.1.0/ag-grid-community.tgz).

Once unpacked you'll see four bundle files within the `dist` folder:

- `dist/ag-grid-community.js` — standard bundle containing JavaScript and CSS
- `dist/ag-grid-community.min.js` — minified bundle containing JavaScript and CSS
- `dist/ag-grid-community.noStyle.js` — standard bundle containing JavaScript without CSS
- `dist/ag-grid-community.min.noStyle.js` — minified bundle containing JavaScript without CSS

Should you decide to use the `noStyle` versions of the bundle, the style sheet files are present in the `styles` folder.

#### Enterprise

You can download AG Grid Enterprise from [GitHub Repository](https://github.com/ag-grid/ag-grid/releases/download/release-36.1.0/ag-grid-enterprise.tgz).

Once unpacked you'll see four bundle files within the `dist` folder:

- `dist/ag-grid-enterprise.js` — standard bundle containing JavaScript and CSS
- `dist/ag-grid-enterprise.min.js` — minified bundle containing JavaScript and CSS
- `dist/ag-grid-enterprise.noStyle.js` — standard bundle containing JavaScript without CSS
- `dist/ag-grid-enterprise.min.noStyle.js ` — minified bundle containing JavaScript without CSS

Should you decide to use the `noStyle` versions of the bundle, you should use the style files from the AG Grid bundle (all the styles needed for community and enterprise are in the community CSS files).

After downloading the bundles, you can refer to the files in the same way as you would from CDN. See the [Quick Start](https://www.ag-grid.com/javascript-data-grid/getting-started/) for more information.
