{% tabs %} {% tab title="NPM" %}
npm install --save @magic-sdk/admin
{% endtab %}
{% tab title="Yarn" %}
yarn add @magic-sdk/admin
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="CommonJS" %}
const { Magic } = require('@magic-sdk/admin');
const mAdmin = new Magic('SECRET_API_KEY'); // ✨
{% endtab %}
{% tab title="ES Modules/TypeScript" %}
import { Magic } from '@magic-sdk/admin';
const mAdmin = new Magic('SECRET_API_KEY'); // ✨
{% endtab %} {% endtabs %}
{% hint style="info" %} Examples for the server-side JavaScript SDK use the CommonJS pattern by default. {% endhint %}