Serverless plugin missing

Hi,
I have an existing project with server-less, When I try to deploy using the command sls client deploy it says
" Serverless command “install plugins” not found. Did you mean “install”? Run “serverless help” for a list of all available commands."
Then I have installed the plugin using
“sls plugin install -n serverless-apig-s3”
but even after installing the plugin I am still facing the same issue.

api-serverless@0.36.0 deploy D:\PROJECTS\Dev\Rover\Code\api-serverless
npm run build && sls deploy && sls client deploy

api-serverless@0.36.0 build D:\PROJECTS\Dev\Rover\Code\api-serverless
SET NODE_ENV=production gulp serverless

Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Packaging service…
Serverless: Excluding development dependencies…
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials

Serverless Error ---------------------------------------

Serverless command “client” not found. Did you mean “list”? Run “serverless help” for a list of all available commands.

Stack Trace --------------------------------------------

ServerlessError: Serverless command “client” not found. Did you mean “list”? Run “serverless help” for a list of all available commands.
at _.reduce (D:\PROJECTS\Dev\Rover\Code\api-serverless\node_modules\serverless\lib\classes\PluginManager.js:352:13)
at arrayReduce (D:\PROJECTS\Dev\Rover\Code\api-serverless\node_modules\serverless\node_modules\lodash\lodash.js:683:21)
at Function.reduce (D:\PROJECTS\Dev\Rover\Code\api-serverless\node_modules\serverless\node_modules\lodash\lodash.js:9681:14)
at PluginManager.getCommand (D:\PROJECTS\Dev\Rover\Code\api-serverless\node_modules\serverless\lib\classes\PluginManager.js:340:14)
at PluginManager.validateCommand (D:\PROJECTS\Dev\Rover\Code\api-serverless\node_modules\serverless\lib\classes\PluginManager.js:429:10)
at Serverless.run (D:\PROJECTS\Dev\Rover\Code\api-serverless\node_modules\serverless\lib\Serverless.js:107:24)
at serverless.init.then (D:\PROJECTS\Dev\Rover\Code\api-serverless\node_modules\serverless\bin\serverless:43:50)
at
From previous event:
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at D:\PROJECTS\Dev\Rover\Code\api-serverless\node_modules\serverless\bin\serverless:29:46
at Object. (D:\PROJECTS\Dev\Rover\Code\api-serverless\node_modules\serverless\bin\serverless:63:4)
at Module._compile (module.js:652:30)
at Object.Module._extensions…js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3

Get Support --------------------------------------------
Docs: .docs.serverless.com

Bugs: .github.com/serverless/serverless/issues
Issues: .forum.serverless.com

Your Environment Information -----------------------------
OS: win32
Node Version: 8.11.3
Serverless Version: 1.29.2

1 Like

sls client deploy isn’t a standard Serverless command. You might be missing a plugin that adds that command. Check your serverless.yml file to see what plugins are referenced and then make sure they are installed in your package.json file.