Open
Description
We could offer a way to support a profile or context as an alias for a gateway. A user suggested something similar about an "rc" file or not having to remember multiple gateway URLs in #479
Current behaviour
You need to remember your gateway URLs or look them up in ~/.openfaas/config.yaml
Feature
This might be similar to how kubectl
handles multiple contexts.
# faas-cli create-context staging --gateway https://staging.openfaas.com
# faas-cli set-context staging
Using gateway: https://staging.openfaas.com
# faas-cli get-context staging
Using gateway: https://staging.openfaas.com
# faas-cli get-context
[x] staging
[ ] local
[ ] swarm
Activity