{"library":"serverless-plugin-scripts","title":"Serverless Plugin Scripts","description":"serverless-plugin-scripts is a utility plugin for the Serverless Framework that extends its capabilities by allowing users to define custom shell commands and attach scripts to existing Serverless lifecycle events directly within their `serverless.yml` configuration files. The latest stable version, 1.0.2, was released in October 2017. As the project has not seen any updates or commits since then, it is considered abandoned and is no longer actively maintained. While it might still function with older Serverless Framework versions (specifically pre-v2, and likely struggling with v3+), it lacks compatibility with recent major Serverless releases and modern JavaScript/TypeScript project setups. There is no active release cadence, and users should be aware of potential security vulnerabilities or runtime issues due to its age. Its key differentiator was offering a simple, declarative way to embed shell commands into the Serverless deployment and development workflow, mitigating the need for external build scripts for simple operations. However, for robust CI/CD or complex build processes, more modern and maintained alternatives are recommended.","language":"javascript","status":"abandoned","last_verified":"Tue Apr 21","install":{"commands":["npm install serverless-plugin-scripts"],"cli":null},"imports":["plugins:\n  - serverless-plugin-scripts","custom:\n  scripts:\n    commands:\n      myCommand: echo 'Running my custom command'","custom:\n  scripts:\n    hooks:\n      'deploy:createDeploymentArtifacts': npm run build"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# serverless.yml\nservice: my-serverless-app\n\nplugins:\n  - serverless-plugin-scripts\n\ncustom:\n  scripts:\n    commands:\n      hello: echo \"Hello from ${self:service} service at $(date) using Serverless Framework!\"\n      greet:\n        handler: echo \"Greeting from serverless-plugin-scripts. The first argument is $1\"\n        description: \"Greets with an optional argument\"\n    hooks:\n      'deploy:createDeploymentArtifacts': npm run build-frontend # Example build step\n      'package:createPackage': echo \"Packaging started for ${self:service} at $(date)\"\n      'after:deploy:deploy': echo \"Deployment completed for ${self:service}! All resources are up.\"\n\n# Terminal commands to run after setting up serverless.yml\nnpm install --save serverless-plugin-scripts\nserverless hello\nserverless greet --param myName # Note: arguments are passed positionally as $1, $2, etc.\nserverless deploy","lang":"javascript","description":"This quickstart demonstrates how to install `serverless-plugin-scripts`, configure custom CLI commands and lifecycle hooks in `serverless.yml`, and execute them using the Serverless CLI.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}