List services
kn service list
# List all services
kn service list
# List all services in JSON output format
kn service list -o json
# List service 'web'
kn service list web
# List the services in offline mode instead of kubernetes cluster
kn service list --target=/user/knfiles
kn service list --target=/user/knfiles/test.json
kn service list --target=/user/knfiles/test.yaml
kn service list -n test-ns --target=/user/knfiles
-A, --all-namespaces If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-h, --help help for list
-n, --namespace string Specify the namespace to operate in.
--no-headers When using the default output format, don't print headers (default: print headers).
-o, --output string Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.
--target string Work on local directory instead of a remote cluster (experimental)
--template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
--cluster string name of the kubeconfig cluster to use
--config string kn configuration file (default: ~/.config/kn/config.yaml)
--context string name of the kubeconfig context to use
--kubeconfig string kubectl configuration file (default: ~/.kube/config)
--log-http log http traffic
- kn service - Manage Knative services