@logfox/cli
v0.3.1
Published
Logfox CLI for local development logging
Readme
@logfox/cli
CLI tool for sending local development logs to Logfox.
npm setup: Uses private @logfoxai packages. See home for the one-time npm + gh auth setup.
Installation
npm install -g @logfox/cliQuick Start
# Authenticate
logfox login
# Run your app with logging
logfox run --name my-app -- npm startLogs appear in Logfox under environment "local".
Commands
Run logfox --help to see all available commands.
How it Works
logfox runwraps your command and captures stdout/stderr- Logs are parsed (JSON or plain text) and batched
- Sent to Logfox under environment "local" with app name
local-{hash}-{name} - Issues are detected and grouped just like production logs
Log Parsing
- JSON logs (pino, winston, bunyan): Structure is extracted automatically
- Plain text: Log levels detected from common patterns (ERROR, WARN, INFO, DEBUG)
Configuration
Config is stored in ~/.logfox/config.json. Use logfox config to view current settings.
| Key | Default | Description |
|-----|---------|-------------|
| apiUrl | https://api.logfox.ai | Logfox API endpoint |
| appUrl | https://app.logfox.ai | Logfox web app (for login) |
| teamId | (from login) | Active team |
Local Development
To point the CLI at local services:
logfox config:set apiUrl http://localhost:3000
logfox config:set appUrl http://localhost:4000
logfox loginCommits & releases
AutoRel. Conventional commits — see the commit format.
