# Using SDK to create and test the plugin

### Install the ekstep-content-sdk

Install the node on your machine and follow the steps to install the EkStep content SDK and create a new plugin:

```
> npm install -g https://github.com/ekstep/EkStep-Content-SDK.git
> ekstep-content-sdk create <pluginname>
> ekstep-content-sdk serve <portnumber: default:8081>
```

### Create a new plugin

<figure><img src="https://1767651289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaanfWbeVT74C5lXDPde3%2Fuploads%2F3oNjDqIYpqgXC99tcd8I%2Fcreate-1.png?alt=media&#x26;token=62ee3943-4714-4122-a036-9bf14b32e05e" alt=""><figcaption></figcaption></figure>

### Serve your plugins from your local dev environment

<figure><img src="https://1767651289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaanfWbeVT74C5lXDPde3%2Fuploads%2FfgkcGQbwnlkfZQqpRKBe%2FScreenshot-from-2023-01-22-11-52-55.png?alt=media&#x26;token=b78ed1db-37a3-4dd3-89be-7d5171f65631" alt=""><figcaption></figcaption></figure>

### Enable SSL access for localhost

The local plugin repository, hosted by the EkStep-Content-SDK uses a self-signed certificate to provide SSL access to the plugins under development. You need to enable accessing the localhost with a self-signed certificate in your browser to avoid seeing a security warning. Follow the steps [outlined here](https://improveandrepeat.com/2016/09/allowing-self-signed-certificates-on-localhost-with-chrome-and-firefox/)

### Enable developer mode and load your plugins

1. Login to [https://dev.knowlg.sunbird.org](https://dev.knowlg.sunbird.org/)
2. Create content and launch the interactive editor
3. In the URL add \&developerMode=1 and click enter to reload
4. Now you can see the Add plugin button - click on it to see the editor discover your local plugins and get going That's it! Your developer environment is ready. Refer to the Plugin developer guide or a couple of Plugins from the repo to get started. You can keep editing, and reload the plugin again.

<figure><img src="https://1767651289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaanfWbeVT74C5lXDPde3%2Fuploads%2FbnvmonNnHEPpi9GoVvgI%2Fdeveloper-2.png?alt=media&#x26;token=c10a4123-f83f-45ca-8b70-284b275017db" alt=""><figcaption></figcaption></figure>
