> For the complete documentation index, see [llms.txt](https://amukh1.gitbook.io/chakra-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://amukh1.gitbook.io/chakra-engine/guides/creating-your-first-command.md).

# Creating your first command

{% hint style="info" %}
**Good to know:** your product docs aren't just a reference of all your features! use them to encourage folks to perform certain actions and discover the value in your product.
{% endhint %}

## The basics

Add a reference to the command into index.js:

{% code title="index.js" %}

```javascript
// ...

// COMMANDS:
new engine.command('!help')

// ...
```

{% endcode %}

Then inside another folder called "commands", create a file with the same name as your command (including prefix)

{% code title="!help.js" %}

```javascript
function command(msg) {
// what to happen when the command is called

msg.reply('help message')
}

module.exports = command
```

{% endcode %}
