Linux command
hledger-web 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start web interface
hledger-web
Specify port
hledger-web --port [5001]
Open specific journal
hledger-web -f [ledger.journal]
Serve externally
hledger-web --serve --host [0.0.0.0]
Read-only mode
hledger-web --capabilities=view
Allow full access including editing and deleting
hledger-web --capabilities=view,add,manage
说明
hledger-web provides a web interface for hledger. It offers a browser-based way to view reports, add transactions, and manage journal entries. The interface includes account registers, balance reports, and transaction entry forms. It can run locally or be served on a network. By default it listens on 127.0.0.1 port 5000 and opens a browser automatically.
参数
- -f _FILE_
- Journal file.
- --port _PORT_
- Server port (default 5000).
- --host _HOST_
- Listen address.
- --serve
- Serve without opening a web browser.
- --serve-api
- Serve only the JSON API, without the web UI.
- --capabilities _CAPS_
- Allowed actions: view, add, manage (default: view,add).
- --cors _ORIGIN_
- Allow cross-origin requests from the specified origin.
- --base-url _URL_
- Base URL for links (useful behind a reverse proxy).
- --help
- Display help information.
FAQ
What is the hledger-web command used for?
hledger-web provides a web interface for hledger. It offers a browser-based way to view reports, add transactions, and manage journal entries. The interface includes account registers, balance reports, and transaction entry forms. It can run locally or be served on a network. By default it listens on 127.0.0.1 port 5000 and opens a browser automatically.
How do I run a basic hledger-web example?
Run `hledger-web` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f _FILE_ do in hledger-web?
Journal file.