Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.06 KB

File metadata and controls

54 lines (34 loc) · 1.06 KB

PayArk CLI

The official command-line interface for PayArk, designed to help developers build, test, and manage their PayArk integrations directly from the terminal.

Features

  • Webhook Management: Listen to real-time events and forward them to your local server.
  • Event Triggering: Simulate events to test your integration.
  • Project Setup: Quickly initialize new PayArk projects.
  • Authentication: Securely log in to your PayArk account.

Installation

Install the CLI globally via npm or bun:

npm install -g @payark/cli
# or
bun add -g @payark/cli

Usage

Run payark to see available commands:

payark help

Commands

payark login

Authenticate with your PayArk account.

payark listen

Listen for webhook events and forward them to a local URL.

payark listen --forward-to http://localhost:3000/api/webhooks

payark trigger <event>

Trigger a specific event for testing.

payark trigger payment.succeeded

payark init

Initialize a new PayArk project configuration.