diff --git a/README.md b/README.md index 1457b20c1..51571874d 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ fn run # Deploy your functions to the Fn server (default localhost:8080) # This will create a route to your function as well -fn deploy myapp +fn deploy --app myapp ``` Now you can call your function: diff --git a/docs/lambda/README.md b/docs/lambda/README.md index 4831db9aa..bea05608d 100644 --- a/docs/lambda/README.md +++ b/docs/lambda/README.md @@ -9,7 +9,7 @@ Creating Lambda functions is not much different than using regular functions, ju the `lambda-node-4` runtime. ```sh -fn init --runtime lambda-node-4 /lambda-node +fn init --runtime lambda-node-4 --name lambda-node ``` Be sure the filename for your main handler is `func.js`. diff --git a/docs/lambda/import.md b/docs/lambda/import.md index 3b73f60a8..0538053a2 100644 --- a/docs/lambda/import.md +++ b/docs/lambda/import.md @@ -52,6 +52,6 @@ by passing `--version .` You can then deploy the imported lambda as follows: ``` -./fn deploy myapp +./fn deploy --app myapp ```` Now the function can be reached via ```http://$HOSTNAME/r/user/my-function``` \ No newline at end of file diff --git a/docs/writing.md b/docs/writing.md index 02b801402..670294a93 100644 --- a/docs/writing.md +++ b/docs/writing.md @@ -81,7 +81,7 @@ Creating Lambda functions is not much different than using regular functions, ju the `lambda-node` runtime. ```sh -fn init --runtime lambda-node /lambda-node +fn init --runtime lambda-node --name lambda-node ``` Be sure the filename for your main handler is `func.js`. diff --git a/examples/hash/README.md b/examples/hash/README.md index 24b4a0c7a..6e92d746b 100644 --- a/examples/hash/README.md +++ b/examples/hash/README.md @@ -13,7 +13,7 @@ Now change the code as you desire to do whatever magic you need it to do. Once d Simply run ```bash -fn init / +fn init --name ``` This will create the ```func.yaml``` file required by functions, which can be built by running: diff --git a/examples/lambda/node/README.md b/examples/lambda/node/README.md index 9480dc469..d9a8a31fa 100644 --- a/examples/lambda/node/README.md +++ b/examples/lambda/node/README.md @@ -7,7 +7,6 @@ Other than a different runtime, this is no different than any other node example To use the lambda-nodejs4.3 runtime, use this `fn init` command: ```sh -fn init --runtime lambda-nodejs4.3 /lambda-node -fn build +fn init --runtime lambda-nodejs4.3 --name lambda-node cat payload.json | fn run ``` diff --git a/examples/postgres/README.md b/examples/postgres/README.md index b0f8ccd8b..9bfeffcb8 100644 --- a/examples/postgres/README.md +++ b/examples/postgres/README.md @@ -4,7 +4,7 @@ This function executes an INSERT or SELECT against a table in a given postgres s ``` # Create your func.yaml file -fn init /func-postgres +fn init --name func-postgres # Build the function fn build # Test it diff --git a/examples/slackbot/guppy/README.md b/examples/slackbot/guppy/README.md index ddf9358e3..ecbc773da 100644 --- a/examples/slackbot/guppy/README.md +++ b/examples/slackbot/guppy/README.md @@ -4,7 +4,7 @@ This example will show you how to test and deploy a SlackBot command to Oracle F ```sh # create your func.yaml file -fn init /guppy +fn init # build the function - install dependencies from json gem fn build # test it diff --git a/examples/tutorial/async/go/README.md b/examples/tutorial/async/go/README.md index ab01765fe..49d6a9fad 100644 --- a/examples/tutorial/async/go/README.md +++ b/examples/tutorial/async/go/README.md @@ -6,7 +6,7 @@ This is an example of an [asynchronous function](/docs/async.md). ```sh # Initialize your function creating a func.yaml file -fn init --type async /hello-go-async +fn init --type async --name hello-go-async # Test your function. This will run inside a container exactly how it will on the server fn run @@ -16,7 +16,7 @@ cat sample.payload.json | fn run # Deploy your functions to the Oracle Functions server (default localhost:8080) # This will create a route to your function as well -fn deploy myapp +fn deploy --app myapp ``` ### Now call your function: diff --git a/examples/tutorial/hello/go/README.md b/examples/tutorial/hello/go/README.md index 5de531b8d..c5c4ba269 100644 --- a/examples/tutorial/hello/go/README.md +++ b/examples/tutorial/hello/go/README.md @@ -6,7 +6,7 @@ This example will show you how to test and deploy Go (Golang) code to Oracle Fun ```sh # Initialize your function creating a func.yaml file -fn init /hello-go +fn init --name hello-go # Test your function. This will run inside a container exactly how it will on the server fn run @@ -16,7 +16,7 @@ cat sample.payload.json | fn run # Deploy your functions to the Oracle Functions server (default localhost:8080) # This will create a route to your function as well -fn deploy myapp +fn deploy --app myapp ``` ### Now call your function: diff --git a/examples/tutorial/hello/go/usingdeps/README.md b/examples/tutorial/hello/go/usingdeps/README.md index 6b79b1ee1..a176f9ad3 100644 --- a/examples/tutorial/hello/go/usingdeps/README.md +++ b/examples/tutorial/hello/go/usingdeps/README.md @@ -9,7 +9,7 @@ This example will show you how to test and deploy Go (Golang) code with vendored glide install -v #Or what ever vendor tool you want. We have a glide.yaml for you here already. # Initialize your function creating a func.yaml file -fn init /hello-go +fn init --name hello-go # Test your function. This will run inside a container exactly how it will on the server fn run @@ -19,7 +19,7 @@ cat sample.payload.json | fn run # Deploy your functions to the Oracle Functions server (default localhost:8080) # This will create a route to your function as well -fn deploy myapp +fn deploy --app myapp ``` ### Now call your function: diff --git a/examples/tutorial/hello/java/README.md b/examples/tutorial/hello/java/README.md index c53ce6fe2..8ab0d6fd7 100644 --- a/examples/tutorial/hello/java/README.md +++ b/examples/tutorial/hello/java/README.md @@ -5,7 +5,7 @@ This example will show you how to test and deploy Java code to Oracle Functions. ```sh # Initialize your function creating a func.yaml file -fn init hello-java --runtime java +fn init --name hello-java --runtime java # Test your function. This will run inside a container exactly how it will on the server fn run @@ -15,7 +15,7 @@ echo "Michael FassBender" | fn run # Deploy your functions to the Oracle Functions server (default localhost:8080) # This will create a route to your function as well -fn deploy myapp +fn deploy --app myapp ``` ### Now call your function: diff --git a/examples/tutorial/hello/node/README.md b/examples/tutorial/hello/node/README.md index 72fce8a8c..3871f225a 100644 --- a/examples/tutorial/hello/node/README.md +++ b/examples/tutorial/hello/node/README.md @@ -6,7 +6,7 @@ This example will show you how to test and deploy Node code to Oracle Functions. ```sh # Initialize your function creating a func.yaml file -fn init /hello-node +fn init --name hello-node # Test your function. # This will run inside a container exactly how it will on the server. It will also install and vendor dependencies from Gemfile @@ -17,7 +17,7 @@ cat sample.payload.json | fn run # Deploy your functions to the Oracle Functions server (default localhost:8080) # This will create a route to your function as well -fn deploy myapp +fn deploy --app myapp ``` ### Now call your function: diff --git a/examples/tutorial/hello/php/README.md b/examples/tutorial/hello/php/README.md index 9276ff3e0..419e05486 100644 --- a/examples/tutorial/hello/php/README.md +++ b/examples/tutorial/hello/php/README.md @@ -6,7 +6,7 @@ This example will show you how to test and deploy PHP code to Oracle Functions. ```sh # Initialize your function creating a func.yaml file -fn init /hello-php +fn init --name hello-php # Test your function. # This will run inside a container exactly how it will on the server. It will also install and vendor dependencies from Gemfile @@ -17,7 +17,7 @@ cat sample.payload.json | fn run # Deploy your functions to the Oracle Functions server (default localhost:8080) # This will create a route to your function as well -fn deploy myapp +fn deploy --app myapp ``` ### Now call your function: diff --git a/examples/tutorial/hello/python/README.md b/examples/tutorial/hello/python/README.md index c8d1402b6..a6ddd4b16 100644 --- a/examples/tutorial/hello/python/README.md +++ b/examples/tutorial/hello/python/README.md @@ -6,7 +6,7 @@ This example will show you how to test and deploy Python code to Oracle Function ```sh # Initialize your function creating a func.yaml file -fn init /hello-python +fn init --name hello-python # Test your function. # This will run inside a container exactly how it will on the server. It will also install and vendor dependencies from Gemfile @@ -17,7 +17,7 @@ cat sample.payload.json | fn run # Deploy your functions to the Oracle Functions server (default localhost:8080) # This will create a route to your function as well -fn deploy myapp +fn deploy --app myapp ``` ### Now call your function: diff --git a/examples/tutorial/hello/ruby/README.md b/examples/tutorial/hello/ruby/README.md index 732ecef6a..acdbf387e 100644 --- a/examples/tutorial/hello/ruby/README.md +++ b/examples/tutorial/hello/ruby/README.md @@ -6,7 +6,7 @@ This example will show you how to test and deploy Ruby code to Oracle Functions. ```sh # Initialize your function creating a func.yaml file -fn init /hello-ruby +fn init --name hello-ruby # Test your function. # This will run inside a container exactly how it will on the server. It will also install and vendor dependencies from Gemfile @@ -17,7 +17,7 @@ cat sample.payload.json | fn run # Deploy your functions to the Oracle Functions server (default localhost:8080) # This will create a route to your function as well -fn deploy myapp +fn deploy --app myapp ``` ### Now call your function: diff --git a/examples/tutorial/hello/rust/README.md b/examples/tutorial/hello/rust/README.md index 24539616d..0b6e556d7 100644 --- a/examples/tutorial/hello/rust/README.md +++ b/examples/tutorial/hello/rust/README.md @@ -34,7 +34,7 @@ fn main() { ```sh # Initialize your function creating a func.yaml file -fn init /hello-rust +fn init --name hello-rust # Test your function. This will run inside a container exactly how it will on the server fn run @@ -44,7 +44,7 @@ cat sample.payload.json | fn run # Deploy your functions to the Oracle Functions server (default localhost:8080) # This will create a route to your function as well -fn deploy myapp +fn deploy --app myapp ``` ### Now call your function: