Skip to content

taimoorq/logister-cli

Repository files navigation

Logister CLI

logister lets developers, operators, scripts, and coding agents inspect a Logister project from the terminal. It reads projects, recent telemetry, grouped issues, and redacted investigation context without reusing the write-only API keys embedded in monitored applications.

This repository is public. Do not open issues or pull requests that include tokens, private telemetry, customer data, local credentials, private endpoints, or exploit details.

Table Of Contents

  1. Quick start
  2. What is this CLI for?
  3. How do I install it?
  4. How do I use it?
  5. How do I report issues and problems?
  6. Security model
  7. Development
  8. Release and distribution
  9. Versioning strategy

Quick start

You need Node.js 22 or newer and access to a Logister server that exposes the CLI API.

npm install -g logister-cli
logister auth login --host https://logister.example.com
logister doctor
logister projects list

The login command opens a browser so you can approve a scoped CLI token. A successful doctor response shows the server version and feature map without printing the token. Choose a project from projects list, then try:

logister overview --project <project-slug> --since 24h
logister issues list --project <project-slug> --status unresolved

If doctor reports that a feature is unavailable, the server does not expose that read endpoint yet; upgrading only the CLI will not add it.

What is this CLI for?

Use the Logister CLI when you want quick, scriptable access to the operational data Logister stores for your projects:

  • list projects available to your account
  • summarize recent project telemetry
  • inspect redacted logs and events
  • list grouped issues
  • export issue details for debugging
  • generate minimized AI context bundles for a grouped issue
  • check which CLI features a hosted or self-hosted Logister server supports

The CLI reads through user-scoped CLI access tokens. Project ingest API keys are write-only credentials for SDKs and direct HTTP clients; they are intentionally not accepted for CLI reads.

The current Logister server supports projects, overview, events, logs, issues, issues export, issues context, and transaction listing through the event API. The CLI also contains commands for traces, monitors, deployments, insights, and metrics; logister doctor keeps those commands feature-gated until the connected server exposes their endpoints.

How do I install it?

npm

Use npm when Node.js 22 or newer is already part of your toolchain:

npm install -g logister-cli
logister version

You can also run it without a global install:

npx logister-cli doctor --host https://logister.example.com

yarn and pnpm

yarn global add logister-cli
pnpm add -g logister-cli

Homebrew

Use Homebrew on macOS or Linuxbrew:

brew tap taimoorq/logister
brew install logister
logister version

Scoop

Use Scoop on Windows:

scoop bucket add logister https://github.com/taimoorq/scoop-logister
scoop install logister
logister version

The full release distribution plan is documented in docs/release-distribution.md. winget remains a later option after there is a stable portable Windows artifact.

Local development install

npm install
npm link
logister version

How do I use it?

1. Connect to Logister

Browser-approved login is the default:

logister auth login --host https://logister.example.com

If the CLI cannot open a browser, copy the displayed URL manually:

logister auth login --host https://logister.example.com --no-browser

Saved tokens use macOS Keychain when available and fall back to ~/.config/logister/config.json with 0600 permissions on other platforms. Set XDG_CONFIG_HOME or LOGISTER_CONFIG to choose a different config path.

For automation, avoid putting tokens in shell history:

printf '%s' "$LOGISTER_TOKEN" | logister auth login \
  --host https://logister.example.com \
  --token-stdin

Environment overrides are available for CI and one-off commands:

LOGISTER_HOST=https://logister.example.com \
LOGISTER_TOKEN=<cli-access-token> \
LOGISTER_PROJECT=<project-uuid-or-slug> \
logister doctor

2. Check your setup

logister doctor
logister auth status
logister version --check
logister update --check

doctor reports the local CLI version, active profile, configured host, token presence, and the server feature map. It does not print the token value.

3. Inspect projects and telemetry

logister projects list
logister projects show <project>
logister overview --project <project> --since 24h
logister events list --project <project> --type error --since 1h
logister events show <event-id> --project <project>
logister logs list --project <project> --level warn,error
logister logs tail --project <project> --follow

logs tail requests the newest matching log slice from the server. The current command makes one HTTP request; --follow is forwarded for server capability compatibility and is not a local continuous-polling loop.

4. Investigate grouped issues

logister issues list --project <project> --status unresolved
logister issues show <group-id> --project <project> --related-logs
logister issues export <group-id> --project <project> --format json
logister issues context <group-id> --project <project> --for-ai --format json

issues context returns a minimized, server-redacted bundle designed for use with AI coding tools.

For example, save a redacted Markdown bundle alongside a bug report:

logister issues context <group-id> \
  --project <project> \
  --for-ai \
  --format markdown > logister-context.md

5. Inspect transactions

logister transactions list --project <project> --status errored --min-duration-ms 500

Transactions currently use the event read capability and require server support for event reads.

6. Choose an output format

--format table
--format json
--format ndjson
--format markdown

Output is redacted by default for sensitive-looking keys. Use --no-redact only when you intentionally need raw payloads and have permission to view them.

For scripts, prefer JSON and let the command fail on authentication or capability errors:

logister events list \
  --project <project> \
  --type error \
  --since 1h \
  --format json > recent-errors.json

How do I report issues and problems?

Use GitHub Issues for bugs, confusing behavior, documentation gaps, and feature requests:

https://github.com/taimoorq/logister-cli/issues

When reporting a problem, include:

  • CLI version from logister version
  • install method, such as npm, Homebrew, Scoop, or source checkout
  • operating system and shell
  • Logister server version from logister doctor, if available
  • the command you ran
  • the error message or unexpected output

Do not include tokens, authorization headers, cookies, private telemetry, customer payloads, local config files, or exploit details. For security issues, follow SECURITY.md instead of opening a public issue.

Pull requests may be opened by contributors, but only the repository owner can approve, merge, tag releases, or publish packages.

Security model

  • CLI read access uses user-scoped CLI access tokens.
  • CLI tokens should be scoped, project-limited, expiring, revocable, and audited by the Logister server.
  • Project ingest API keys are never accepted for read access.
  • Browser-approved login issues CLI tokens through the signed-in Logister web session.
  • The CLI redacts sensitive-looking output by default.
  • Server responses for AI/debug commands should already be minimized and redacted before they reach the CLI.

Development

npm ci
npm test
npm run check

The CLI currently has no runtime npm dependencies.

Release and distribution

The npm package is the canonical release artifact. A vX.Y.Z tag makes the release workflow test and pack one tarball, publish that artifact to npm, create the matching GitHub Release, wait for npm propagation, and then open update PRs for the Homebrew tap and Scoop bucket when package-manager updates are enabled.

Distribution planning for npm, Homebrew, Scoop, and future winget support lives in docs/release-distribution.md.

Public repository controls for branch protection, CODEOWNERS, release tags, npm publishing, and issue/PR hygiene live in docs/repository-settings.md.

Versioning strategy

package.json is the CLI version source of truth. Stable releases use matching vX.Y.Z GitHub tags, npm package versions, GitHub Release artifacts, and package-manager manifest versions.

The full versioning and package-manager integration policy lives in docs/versioning.md.

About

Command line tools for self-hosted bug tacker Logister.org

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages