Skip to main content

Usage

npx @linktr.ee/linkapp test-url-match-rules <url>
Tests your local url_match_rules.json against the provided URL using the LinkApp API and prints the result payload.

Options

FlagDescriptionDefault
--qaUse the QA environmentfalse
--endpoint <url>Override the LinkApp API endpointderived from config
-h, --helpShow command help-

Prerequisites

  • Logged in (uses your stored production token).
  • url_match_rules.json present in the current working directory with valid JSON.

What happens

  1. Loads LinkApp API configuration (production by default) and your saved token.
  2. Reads and parses url_match_rules.json.
  3. Calls the LinkApp API to evaluate the provided URL against your rules.
  4. Prints whether the match succeeded and the API response JSON.

Example

npx @linktr.ee/linkapp test-url-match-rules https://example.com/path