@imtakt/cli
v0.5.1
Published
Agent-oriented CLI for German transit — JSON for pipes/agents, markdown on TTY
Maintainers
Readme
@imtakt/cli
Agent CLI for ImTakt Server — five verbs, JSON for pipes, markdown on TTY.
Install
curl -fsSL https://imtakt.dev/cli/install.sh | bashOne-off without install:
npx -y @imtakt/cli find "Berlin Hbf" --json
npx -y @imtakt/cli plan --from-id <fromStopId> --to-id <toStopId> --view board --json
# affiliate/bahn.de offer + retailer price hints ( --no-quote to skip )
npx -y @imtakt/cli show <optionId> --json
npx -y @imtakt/cli status "Berlin Hbf"
npx -y @imtakt/cli follow RUN_IDFlow: find (optional) → plan → show → follow. After find, pass --from-id / --to-id so plan does not re-snap. TTY plan adds a bahn.de search link. --quote fetches live DB prices (not ImTakt gold).
Broken imtakt (Cannot find package '@imtakt/sdk')
That error means PATH is running a local monorepo checkout (e.g. after cd packages/cli && npm install -g . / npm link) without workspace deps. Fix:
npm unlink -g @imtakt/cli 2>/dev/null || true
rm -f "$(command -v imtakt)"
curl -fsSL https://imtakt.dev/cli/install.sh | bashDo not install the CLI with npm install -g . from this repo. Use the curl installer or npm install -g @imtakt/cli from the registry.
Docs
License
MIT
