跳转至主要内容

nhctl exec

Execute a command in container

Usage#

nhctl exec [NAME] [flags]

Flags#

Flags:
-c, --command stringArray command to execute in container
-t, --controller-type string kind of k8s controller,such as deployment,statefulSet
-d, --deployment string k8s deployment which your developing service exists
-h, --help help for exec
Global Flags:
--debug enable debug level log
--kubeconfig string the path of the kubeconfig file
-n, --namespace string kubernetes namespace