26 lines
971 B
Plaintext
26 lines
971 B
Plaintext
1. Install the client CLI.
|
|
|
|
Mac:
|
|
$ curl -Lo fission https://github.com/fission/fission/releases/download/1.0.0/fission-cli-osx && chmod +x fission && sudo mv fission /usr/local/bin/
|
|
|
|
Linux:
|
|
$ curl -Lo fission https://github.com/fission/fission/releases/download/1.0.0/fission-cli-linux && chmod +x fission && sudo mv fission /usr/local/bin/
|
|
|
|
Windows:
|
|
For Windows, you can use the linux binary on WSL. Or you can download this windows executable: https://github.com/fission/fission/releases/download/1.0.0/fission-cli-windows.exe
|
|
|
|
2. You're ready to use Fission!
|
|
|
|
# Create an environment
|
|
$ fission env create --name nodejs --image fission/node-env
|
|
|
|
# Get a hello world
|
|
$ curl https://raw.githubusercontent.com/fission/fission/master/examples/nodejs/hello.js > hello.js
|
|
|
|
# Register this function with Fission
|
|
$ fission function create --name hello --env nodejs --code hello.js
|
|
|
|
# Run this function
|
|
$ fission function test --name hello
|
|
Hello, world!
|