# Get all console output of a instance by UUID
$ kraft cloud instance logs 77d0316a-fbbe-488d-8618-5bf7a612477a
# Get all console output of a instance by name
$ kraft cloud instance logs my-instance-431342
# Get the last 20 lines of a instance by name
$ kraft cloud instance logs my-instance-431342 --tail 20
# Get the last lines of a instance by name continuously
$ kraft cloud instance logs my-instance-431342 --follow
# Get the last 10 lines of a instance by name continuously
$ kraft cloud instance logs my-instance-431342 --follow --tail 10
Options
Code
-f, --follow Follow the logs of the instance every half second
-h, --help help for logs
--no-prefix When logging multiple machines, do not prefix each log line with the name
-n, --tail int Show the last given lines from the logs (default -1)