@payark/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +55587 -0
- package/dist/index.js.map +1 -0
- package/package.json +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# PayArk CLI
|
|
2
|
+
|
|
3
|
+
The official command-line interface for PayArk, designed to help developers build, test, and manage their PayArk integrations directly from the terminal.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Webhook Management**: Listen to real-time events and forward them to your local server.
|
|
8
|
+
- **Event Triggering**: Simulate events to test your integration.
|
|
9
|
+
- **Project Setup**: Quickly initialize new PayArk projects.
|
|
10
|
+
- **Authentication**: Securely log in to your PayArk account.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
Install the CLI globally via npm or bun:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install -g @payark/cli
|
|
18
|
+
# or
|
|
19
|
+
bun add -g @payark/cli
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
Run `payark` to see available commands:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
payark help
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Commands
|
|
31
|
+
|
|
32
|
+
#### `payark login`
|
|
33
|
+
Authenticate with your PayArk account.
|
|
34
|
+
|
|
35
|
+
#### `payark listen`
|
|
36
|
+
Listen for webhook events and forward them to a local URL.
|
|
37
|
+
```bash
|
|
38
|
+
payark listen --forward-to http://localhost:3000/api/webhooks
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
#### `payark trigger <event>`
|
|
42
|
+
Trigger a specific event for testing.
|
|
43
|
+
```bash
|
|
44
|
+
payark trigger payment.succeeded
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### `payark init`
|
|
48
|
+
Initialize a new PayArk project configuration.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|