diff --git a/lib/plugins/deploy/deploy.js b/lib/plugins/deploy/deploy.js index d1de9f789..6a2fbb2ff 100644 --- a/lib/plugins/deploy/deploy.js +++ b/lib/plugins/deploy/deploy.js @@ -14,6 +14,16 @@ class Deploy { 'compileEvents', 'deploy', ], + options: { + stage: { + usage: 'Stage of the service', + required: true, + }, + region: { + usage: 'Region of the service', + required: true, + }, + }, }, }; } diff --git a/lib/plugins/invoke/invoke.js b/lib/plugins/invoke/invoke.js index d826ad9ef..cfffc1f88 100644 --- a/lib/plugins/invoke/invoke.js +++ b/lib/plugins/invoke/invoke.js @@ -3,12 +3,36 @@ class Invoke { constructor(serverless) { this.serverless = serverless; + this.commands = { invoke: { usage: 'Invokes a deployed function.', lifecycleEvents: [ 'invoke', ], + options: { + function: { + usage: 'The function name', + required: true, + }, + stage: { + usage: 'Stage of the service', + required: true, + }, + region: { + usage: 'Region of the service', + required: true, + }, + path: { + usage: 'Path to JSON file holding input data', + }, + type: { + usage: 'Type of invocation', + }, + log: { + usage: 'Trigger logging data output', + }, + }, }, }; } diff --git a/lib/plugins/remove/remove.js b/lib/plugins/remove/remove.js index 634707b10..731dc0d3e 100644 --- a/lib/plugins/remove/remove.js +++ b/lib/plugins/remove/remove.js @@ -10,6 +10,16 @@ class Remove { lifecycleEvents: [ 'remove', ], + options: { + stage: { + usage: 'Stage of the service', + required: true, + }, + region: { + usage: 'Region of the service', + required: true, + }, + }, }, }; }