# 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="/files/x6M0ewWkZbRaEi6B3di9" alt=""><figcaption></figcaption></figure>

### Serve your plugins from your local dev environment

<figure><img src="/files/4yEGavaehkBzcep4TrvF" 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="/files/wnqwmAfWtiauTZ6qXhdo" alt=""><figcaption></figcaption></figure>


---

# 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://knowlg.sunbird.org/learn/product-and-developer-guide/editors/how-to-contribute-as-a-js-plugin/using-sdk-to-create-and-test-the-plugin.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.
