Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.56
v0.0.57
2 changes: 1 addition & 1 deletion skills/base44-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "The base44 CLI is used for EVERYTHING related to base44 projects:
metadata:
sourcePackage:
name: base44
version: 0.0.56
version: 0.0.57
---

# Base44 CLI
Expand Down
6 changes: 5 additions & 1 deletion skills/base44-troubleshooter/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ npx base44 logs --app-id app_123 --function <function_name> --level error

### 3. Inspect a Time Range

Correlate with user-reported issue timestamps:
Correlate with user-reported issue timestamps. Both ISO datetimes and relative shorthands are supported:

```bash
# Absolute time range
npx base44 logs --function <function_name> --since <start_time> --until <end_time>

# Relative shorthand (last hour, last 30 minutes, last 2 days)
npx base44 logs --function <function_name> --since 1h
```

### 4. Analyze the Logs
Expand Down
18 changes: 14 additions & 4 deletions skills/base44-troubleshooter/references/project-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ This command can run from a linked project, or outside a project when you pass `
| Option | Description | Required |
|--------|-------------|----------|
| `--function <names>` | Filter by function name(s), comma-separated. If omitted, fetches logs for all functions in the current app | No |
| `--since <datetime>` | Show logs from this time (ISO format) | No |
| `--until <datetime>` | Show logs until this time (ISO format) | No |
| `--since <datetime>` | Show logs from this time. ISO datetime or relative shorthand (e.g. `1h`, `30m`, `2d`) | No |
| `--until <datetime>` | Show logs until this time. ISO datetime or relative shorthand (e.g. `1h`, `30m`, `2d`) | No |
| `--level <level>` | Filter by log level: `log`, `info`, `warn`, `error`, `debug` | No |
| `-n, --limit <n>` | Number of results to return (1-1000, default: 50) | No |
| `--order <order>` | Sort order: `asc` or `desc` (default: `desc`) | No |
| `--json` | Output as JSON (clean stdout, safe to pipe to `jq`) | No |

## Examples

Expand All @@ -39,9 +40,14 @@ npx base44 logs --function my-function
# Fetch logs for multiple functions
npx base44 logs --function send-email,process-payment

# Fetch logs since a specific time
# Fetch logs since a specific time (ISO format)
npx base44 logs --since 2024-01-15T10:00:00

# Fetch logs since a relative time (last hour, last 30 minutes, last 2 days)
npx base44 logs --since 1h
npx base44 logs --since 30m
npx base44 logs --since 2d

# Fetch logs within a time range
npx base44 logs --since 2024-01-15T10:00:00 --until 2024-01-15T12:00:00

Expand All @@ -50,6 +56,9 @@ npx base44 logs -n 100 --order asc

# Last 10 errors for a specific function
npx base44 logs --function myFunction --level error --limit 10

# Output as JSON and pipe to jq
npx base44 logs --json | jq '.[] | select(.level == "error")'
```

## Notes
Expand All @@ -59,4 +68,5 @@ npx base44 logs --function myFunction --level error --limit 10
- When multiple functions are specified, logs are merged and sorted by timestamp.
- If `--function` is omitted, logs are fetched for **all functions** in the current app.
- The `--limit` applies after merging logs from all specified functions.
- The `--since` and `--until` values are normalized to UTC if no timezone is provided (appends `Z`).
- The `--since` and `--until` values accept ISO datetimes or relative shorthands (`1h`, `30m`, `2d`, etc.). Relative values are resolved to absolute UTC timestamps at the time the command runs.
- Use `--json` to get machine-readable output suitable for piping to `jq`.
Loading