> For the complete documentation index, see [llms.txt](https://node-api.gitbook.io/nodpi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://node-api.gitbook.io/nodpi/create-new-service.md).

# Create new service

#### Create new service with name \`users\` <a href="#starting-the-project" id="starting-the-project"></a>

```
nodpi s users
```

New service will be added with name `users.service.js` as follows

```
//*********************************************
//* Explanation 
//* Author : Node Api CLI 
//*********************************************
var mongoose = require('mongoose');
module.exports = {
    //getAllUsers,
}
    
//*********************************************
//* Explanation
//*********************************************
//async function getAllUsers(data, callback) {
//    callback({
//        code : 200,
//        msg : 'SUCCESS'
//    })
//}
```
