# Long Thanh Imbiss CLI

Quelle: https://longthanh-imbiss.com/developers/cli/

The official command-line tool from **SWL Services** reads Long Thanh Imbiss published menus, EUR prices, address, contact information, regular opening hours and telephone ordering guidance. It is included in the [@swlservices/long-thanh-sdk npm package](https://www.npmjs.com/package/@swlservices/long-thanh-sdk) starting with version 0.1.1. The package homepage identifies **https://longthanh-imbiss.com** as the official product domain.

## Official Long Thanh Imbiss CLI publication

[Install the official Long Thanh Imbiss CLI from npm](https://www.npmjs.com/package/@swlservices/long-thanh-sdk). Published version **0.1.1** exposes the executable `long-thanh` through the package's `bin` field. Verify the package name, version, executable and product homepage in the [public npm registry metadata](https://registry.npmjs.org/@swlservices%2Flong-thanh-sdk/0.1.1), or inspect the [source release and package archive](https://github.com/Moinsachsen1234/long-thanh-sdks/releases/tag/v0.1.1).

## Run the Long Thanh Imbiss CLI

Requires Node.js 18 or newer and npm. No account, API key or registration is needed for public reads. Run directly:

    npx --yes --package=@swlservices/long-thanh-sdk long-thanh menu --language en
    npx --yes --package=@swlservices/long-thanh-sdk long-thanh business
    npx --yes --package=@swlservices/long-thanh-sdk long-thanh --help

Or install the command once:

    npm install --global @swlservices/long-thanh-sdk
    long-thanh menu --language de
    long-thanh business
    long-thanh --version

## Commands and output

`menu` fetches `GET /api/v1/menu`. The optional `--language` accepts `de`, `en`, `zh` or `vi`; German is the default. `business` fetches `GET /api/v1/business` without parameters. Successful responses are JSON on standard output, preserving the API field names. `--json` explicitly selects the default format, so results can be piped into other programs. `--help` and `--version` work offline.

## Errors, timeouts and rate limits

Exit code `0` means success, `1` means an API or network failure, and `2` means invalid arguments. Errors go to standard error as JSON with an `error` object containing `code`, `message`, `resolution` and, for HTTP failures, `status`. A rate-limited response includes `retry_after` from the server's Retry-After header. Wait for that interval before retrying. Requests time out after 15 seconds and are never retried automatically. The API allows 60 requests per client IP per 60-second window; cache facts for five minutes.

## Scope and ownership

This tool reads published information. To place orders or confirm holiday hours, live availability, ingredients or allergens, call the restaurant using the contact details returned by `business`. The CLI cannot place orders, take payments or reserve tables. Copyright © 2026 SWL Services. All rights reserved; no open-source licence is granted. Source and tests are in the [official SDK repository](https://github.com/Moinsachsen1234/long-thanh-sdks).
