mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
1.4 KiB
1.4 KiB
Read this on the main serverless docs site
Fn - Installation
Installing Fn
Fn can be run in its simplest form as a docker container:
docker run --name fnserver --rm -i -v $(pwd)/data:/app/data -v \
/var/run/docker.sock:/var/run/docker.sock --privileged -p 8080:8080 \
--entrypoint ./fnserver fnproject/fnserver
For more advanced and robust install options see: Operating FN
Installing the Serverless Framework
Next, install the Serverless Framework via npm which was already installed when you installed Node.js.
Open up a terminal and type npm install -g serverless to install Serverless.
npm install -g serverless
Once the installation process is done you can verify that Serverless is installed successfully by running the following command in your terminal:
serverless
To see which version of serverless you have installed run:
serverless --version