{"id":37075810,"url":"https://github.com/gray-adeyi/paystack-cli","last_synced_at":"2026-01-14T08:55:17.226Z","repository":{"id":183533470,"uuid":"670316166","full_name":"gray-adeyi/paystack-cli","owner":"gray-adeyi","description":"A command line app for interacting with Paystack's API","archived":false,"fork":false,"pushed_at":"2024-12-10T14:27:53.000Z","size":324,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-29T00:19:53.475Z","etag":null,"topics":["payments","paystack-api","paystack-library","paystack-sdk","paystackhq"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gray-adeyi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"buy_me_a_coffee":"jigani"}},"created_at":"2023-07-24T19:20:45.000Z","updated_at":"2024-12-10T14:27:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"abafc10a-db74-4709-b4e8-37727c85c93c","html_url":"https://github.com/gray-adeyi/paystack-cli","commit_stats":null,"previous_names":["gray-adeyi/paystack-cli"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/gray-adeyi/paystack-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gray-adeyi%2Fpaystack-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gray-adeyi%2Fpaystack-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gray-adeyi%2Fpaystack-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gray-adeyi%2Fpaystack-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gray-adeyi","download_url":"https://codeload.github.com/gray-adeyi/paystack-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gray-adeyi%2Fpaystack-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["payments","paystack-api","paystack-library","paystack-sdk","paystackhq"],"created_at":"2026-01-14T08:55:16.556Z","updated_at":"2026-01-14T08:55:17.215Z","avatar_url":"https://github.com/gray-adeyi.png","language":"Python","funding_links":["https://buymeacoffee.com/jigani"],"categories":[],"sub_categories":[],"readme":"# paystack cli\n\n[![Downloads](https://static.pepy.tech/badge/paystack-cli)](https://pepy.tech/project/paystack-cli)\n[![Downloads](https://static.pepy.tech/badge/paystack-cli/month)](https://pepy.tech/project/paystack-cli)\n[![Downloads](https://static.pepy.tech/badge/paystack-cli/week)](https://pepy.tech/project/paystack-cli)\n\nA command line app for interacting with [Paystack's](https://paystack.com/) API. Built with\n[Typer](https://typer.tiangolo.com/) and [Pypaystack2](https://gray-adeyi.github.io/pypaystack2/)\n\n![a picture of the utility in use](./paystack-cli.png)\n\n## Installation\n\nBinaries of paystack cli be found [here](https://github.com/gray-adeyi/paystack-cli/releases/tag/v0.2.1).\nAlternatively, Paystack cli can be installed from pypi with pip as shown below.\n\n```bash\npip install paystack-cli\n```\n\n## First time configurations\n\nYou're required to add your paystack integration secret key as your auth_key for the cli on first use as shown below\n\n```bash\npaystack config AUTH_KEY\n```\n\nThis sets up your paystack cli for use in development mode if the test secret key is used. This auth_key can be\nremoved with `paystack reset`. Run `paystack --help` to see available commands\n\n## Examples\n\n### Retrieve a single transaction from your integration\n\n```bash\npaystack txn get-txns --pagination 1\n```\n\nRunning the command above should yield a result similar to the dump shown below\n\n```bash\nResponse(\n    status_code=200,\n    status=True,\n    message='Transactions retrieved',\n    data=[\n        {\n            'id': 3785557723,\n            'domain': 'test',\n            'status': 'success',\n            'reference': '2769088ddc23d52947c8e845f6a6bbdebd987f457e97f71c',\n            'amount': 30000,\n            'message': None,\n            'gateway_response': 'Approved',\n            'paid_at': '2024-05-11T10:00:29.000Z',\n            'created_at': '2024-05-11T10:00:27.000Z',\n            'channel': 'card',\n            'currency': 'NGN',\n            'ip_address': None,\n            'metadata': {'invoice_action': 'create'},\n            'log': None,\n            'fees': 450,\n            'fees_split': None,\n            'customer': {'id': 47948280, 'first_name': 'Gbenga', 'last_name': 'Adeyi', 'email': 'coyotedevmail@gmail.com', 'phone': '', 'metadata': None, 'customer_code': 'CUS_73cb3biedlkbe4a', 'risk_action': 'default'},\n            'authorization': {\n                'authorization_code': 'AUTH_w1renosr9o',\n                'bin': '408408',\n                'last4': '4081',\n                'exp_month': '12',\n                'exp_year': '2030',\n                'channel': 'card',\n                'card_type': 'visa ',\n                'bank': 'TEST BANK',\n                'country_code': 'NG',\n                'brand': 'visa',\n                'reusable': True,\n                'signature': 'SIG_JOdryeujwrsZryg0Lkrg',\n                'account_name': None\n            },\n            'plan': {},\n            'split': {},\n            'subaccount': {},\n            'order_id': None,\n            'paidAt': '2024-05-11T10:00:29.000Z',\n            'createdAt': '2024-05-11T10:00:27.000Z',\n            'requested_amount': 30000,\n            'source': {'source': 'merchant_api', 'type': 'api', 'identifier': None, 'entry_point': 'charge'},\n            'connect': None,\n            'pos_transaction_data': None\n        }\n    ]\n)\n```\n\nBy default, the results you get from the cli is a `Response` object which is a `NamedTuple` returned\nby [Pypaystack2](https://gray-adeyi.github.io/pypaystack2/). To get a json result, use the `--json`\nflag.\n\n```bash\npaystack txn get-txns --pagination 1 --json\n```\n\nRunning the command above should yield a result similar to the dump shown below\n\n```bash\n[{\"id\": 3785557723, \"domain\": \"test\", \"status\": \"success\", \"reference\": \"2769088ddc23d52947c8e845f6a6bbdebd987f457e97f71c\", \"amount\": 30000, \"message\": null, \"gateway_response\": \"Approved\", \"paid_at\": \"2024-05-11T10:00:29.000Z\", \"created_at\": \n\"2024-05-11T10:00:27.000Z\", \"channel\": \"card\", \"currency\": \"NGN\", \"ip_address\": null, \"metadata\": {\"invoice_action\": \"create\"}, \"log\": null, \"fees\": 450, \"fees_split\": null, \"customer\": {\"id\": 47948280, \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \n\"johndoe@example.com\", \"phone\": \"\", \"metadata\": null, \"customer_code\": \"CUS_73cb3biedlkbe4a\", \"risk_action\": \"default\"}, \"authorization\": {\"authorization_code\": \"AUTH_w1renosr9o\", \"bin\": \"408408\", \"last4\": \"4081\", \"exp_month\": \"12\", \"exp_year\": \"2030\", \n\"channel\": \"card\", \"card_type\": \"visa \", \"bank\": \"TEST BANK\", \"country_code\": \"NG\", \"brand\": \"visa\", \"reusable\": true, \"signature\": \"SIG_JOdryeujwrsZryg0Lkrg\", \"account_name\": null}, \"plan\": {}, \"split\": {}, \"subaccount\": {}, \"order_id\": null, \"paidAt\": \n\"2024-05-11T10:00:29.000Z\", \"createdAt\": \"2024-05-11T10:00:27.000Z\", \"requested_amount\": 30000, \"source\": {\"source\": \"merchant_api\", \"type\": \"api\", \"identifier\": null, \"entry_point\": \"charge\"}, \"connect\": null, \"pos_transaction_data\": null}]\n```\n\n## Source code\n\n[https://github.com/gray-adeyi/paystack-cli](https://github.com/gray-adeyi/paystack-cli)\n\n## Videos\n\n* [Installing paystack cli on windows from binaries](https://youtu.be/N8TfuJJ9ycI?si=oFJM4hZQSbl5QBuH)\n* [Installing paystack cli via pip on windows](https://youtu.be/JWWkTwER9xg?si=ZEdnFwSgaShkj7_H)\n* [How to use paystack cli](https://youtu.be/GuYtyh1Ew5E?si=WQaBQshViLjawUft)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgray-adeyi%2Fpaystack-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgray-adeyi%2Fpaystack-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgray-adeyi%2Fpaystack-cli/lists"}