diff --git a/lib/commands/test.js b/lib/commands/test.js
index <HASH>..<HASH> 100644
--- a/lib/commands/test.js
+++ b/lib/commands/test.js
@@ -5,11 +5,18 @@ const doctap = require('../doctap'),
 
 module.exports.command = 'test';
 module.exports.description = 'Run all doctests'
-module.exports.builder = {};
+module.exports.builder = {
+    entrypoint: {
+        describe: 'entrypoint to api.js',
+        type: 'string',
+        default: '.'
+    }
+};
 
 module.exports.handler = function test (argv) {
     argv._handled = true;
-    doctap(cwd('.', 'api.js'));
+    let entrypoint = argv.entrypoint;
+    doctap(cwd(entrypoint, 'api.js'));
     // tap-parser --json=4 > doctest.json
     console.log('Run Smappi Test Server...');
 };
Added entrypoint for smappi test