Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.alpic.ai/llms.txt

Use this file to discover all available pages before exploring further.

Stream runtime logs for an environment. Fetches recent log entries and optionally follows new ones as they arrive.

Usage

alpic logs --environment-id <environmentId>
Fetches log entries for the specified environment.

Extended Usage

Show logs from the last hour:
alpic logs --environment-id <environmentId> --since 1h
Follow logs continuously as new entries arrive:
alpic logs --environment-id <environmentId> --follow
When --follow is used without --since, the CLI defaults to showing logs from the last 10 minutes before polling for new entries.
Show logs up to a specific point in time:
alpic logs --environment-id <environmentId> --since 1h --until 30m
--until cannot be used together with --follow.
Filter by one or more log levels:
alpic logs --environment-id <environmentId> --level ERROR --level WARNING
Search log entries by keyword or filter expression:
alpic logs --environment-id <environmentId> --search 'timeout' --limit 50
Disable colorized output:
alpic logs --environment-id <environmentId> --no-color

Options

FlagShortDescriptionDefault
--environment-idThe ID of the environment
--sinceShow logs after this time (e.g. 1h, 30m, 2024-01-01T00:00:00Z)
--untilShow logs before this time (e.g. 1h, 30m, 2024-01-01T00:00:00Z). Cannot be used with --follow
--limit-nMaximum number of log entries to fetch (1–1000). Cannot be used with --follow
--follow-fPoll for new logs continuouslyfalse
--levelFilter by log level (INFO, ERROR, WARNING, DEBUG). Repeatable.
--searchFilter logs by text or regex pattern
--no-colorDisable colorized output and show log levels as textfalse