shc logs
shc logs
Section titled “shc logs”view deployment logs
Synopsis
Section titled “Synopsis”View logs for the deployment named with —stack (or the active context’s stack). An optional positional service narrows output to one service. —follow streams new lines as they arrive; —since accepts a timestamp or a relative duration (e.g. 1h); —tail limits how many trailing lines are shown. —all iterates every running deployment in the tenant instead of one stack.
shc logs [service] [flags]Examples
Section titled “Examples” shc logs -s myblog shc logs -s myblog -f -n 100 shc logs web -s myblog --since 1h --timestamps shc logs --allOptions
Section titled “Options” --all show logs for all stacks in tenant -e, --environment string environment name -f, --follow follow log output -h, --help help for logs --no-color disable ANSI colors --since string show logs since (timestamp or duration) -s, --stack string stack name -n, --tail int number of lines to show from end --timestamps show timestampsOptions inherited from parent commands
Section titled “Options inherited from parent commands” --config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win -d, --debug enable debug mode (default: $SHC_DEBUG) --exclude string comma-separated dotted paths to drop --fields string comma-separated columns/keys to show (and their order) --filter string comma-separated dotted paths to keep (drops everything else) -o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT) -t, --tenant string tenant name (default: $SHC_TENANT) -v, --verbose verbose output (default: $SHC_VERBOSE)SEE ALSO
Section titled “SEE ALSO”- shc - Selfhosted Cloud CLI
shc@docs:~$