Jenkins X v2 is not in active development. Refer to the v3 documentation for the latest supported version.
list of jx commands
Tails the log of the latest pod for a deployment
Tails the logs of the newest pod for a Deployment.
jx logs [deployment] [flags]
# Tails the log of the latest pod in deployment myapp jx logs myapp # Tails the log of the container foo in the latest pod in deployment myapp jx logs myapp -c foo
-c, --container string The name of the container to log -d, --edit Use my Edit Environment to look for the Deployment pods -e, --env string the Environment to look for the Deployment. Defaults to the current environment -f, --filter string Filters the available deployments if no deployment argument is provided -h, --help help for logs -l, --label string The label to filter the pods if no deployment argument is provided -n, --namespace string the namespace to look for the Deployment. Defaults to the current namespace
Options inherited from parent commands
-b, --batch-mode Runs in batch mode without prompting for user input --verbose Enables verbose output. The environment variable JX_LOG_LEVEL has precedence over this flag and allows setting the logging level to any value of: panic, fatal, error, warn, info, debug, trace
- jx - jx is a command line tool for working with Jenkins X
Auto generated by spf13/cobra on 2-Sep-2020
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 2, 2020: updated jx commands & API docs from 2.1.138 (4fc0bedc90)