| Crates.io | asterisk-cli |
| lib.rs | asterisk-cli |
| version | 2.0.1 |
| created_at | 2024-12-04 01:41:03.492863+00 |
| updated_at | 2025-01-24 17:54:34.060836+00 |
| description | A lightweight command-line tool for rapidly testing API endpoints |
| homepage | |
| repository | https://github.com/saint0x/asterisk.git |
| max_upload_size | |
| id | 1470901 |
| size | 60,362 |
A lightweight command-line tool for rapidly testing API endpoints with a clean and simple interface.
cargo install asterisk-cli
asterisk <endpoint> <method> [options]
endpoint: Endpoint name or path (e.g., "users" or "api/users")method: HTTP method (GET, POST, PUT, DELETE, PATCH)-b, --body <json>: Request body as JSON string-H, --headers <headers>: Custom headers (format: "key1:value1,key2:value2")-t, --token <token>: Bearer token for authentication-u, --url <url>: Base URL (default: http://localhost:3000)-v, --verbose: Enable detailed output# Basic GET request
asterisk users get
# POST with JSON body
asterisk users post -b '{"name":"John","email":"john@example.com"}'
# Authenticated request
asterisk protected get -t "your-token-here"
# Custom headers and base URL
asterisk users get -H "Accept:application/json,API-Key:123" -u "http://api.example.com"
Asterisk is designed to be a straightforward, no-nonsense API testing tool. It focuses on doing one thing well: making HTTP requests with minimal friction. Whether you're testing a local development server or a production API, Asterisk provides a clean and efficient interface for your API testing needs.