diff --git a/guide/chaining_functions.md b/guide/chaining_functions.md
index 1fb572e27947d461294a5c40cfebc8d4ad77fdf8..c5f89a48486bdbab22baae7b6e7ed71913fb610d 100644
--- a/guide/chaining_functions.md
+++ b/guide/chaining_functions.md
@@ -18,8 +18,8 @@ $ curl -d "# test" localhost:8080/function/markdown | \
 You could also do this via code, or through the `faas-cli`:
 
 ```
-$ echo "test" | faas-cli invoke --name markdown | \
-faas-cli invoke --name slack
+$ echo "test" | faas-cli invoke markdown | \
+faas-cli invoke slack
 ```
 
 ## Server-side access via gateway
diff --git a/guide/deployment_k8s.md b/guide/deployment_k8s.md
index 55cc4917a36849248d8f08b7a8176169122ec5aa..d86c0fa9c9ddcd2c2d41bf3cdb2b9664930f9520 100644
--- a/guide/deployment_k8s.md
+++ b/guide/deployment_k8s.md
@@ -89,8 +89,8 @@ Your function will appear after a few seconds and you can click "Invoke"
 You can also use the CLI like this:
 
 ```
-$ echo -n "" | faas-cli invoke --gateway http://kubernetes-ip:31112 --name nodeinfo
-$ echo -n "verbose" | faas-cli invoke --gateway http://kubernetes-ip:31112 --name nodeinfo
+$ echo -n "" | faas-cli invoke --gateway http://kubernetes-ip:31112 nodeinfo
+$ echo -n "verbose" | faas-cli invoke --gateway http://kubernetes-ip:31112 nodeinfo
 ```
 
 ## Asynchronous functions