https://github.com/bileljegham/api-sport-cli
Cli for https://api-sports.io/ Retreive data and convert to sql file
https://github.com/bileljegham/api-sport-cli
cli data database match nodejs sports sports-analytics
Last synced: 9 months ago
JSON representation
Cli for https://api-sports.io/ Retreive data and convert to sql file
- Host: GitHub
- URL: https://github.com/bileljegham/api-sport-cli
- Owner: BilelJegham
- Created: 2023-05-30T19:38:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-24T11:44:23.000Z (over 2 years ago)
- Last Synced: 2025-03-01T06:36:43.207Z (9 months ago)
- Topics: cli, data, database, match, nodejs, sports, sports-analytics
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/api-sport-cli
- Size: 112 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
API SPORT
===
> A cli tool for https://api-sports.io/
> Retreive data and convert to sql file
## Install
```bash
# NPX
npx api-sport-cli
# or install globally
npm -g api-sport-cli
```
## Usage
You must define environnment variable `SPORT_API_KEY`, before use cli. [Get your api key](https://dashboard.api-football.com/)
```
export SPORT_API_KEY=XXXX
```
```
api-sport [args]
Commands :
api-sport get-matchs Fetch matches from sport API
Options :
--version [boolean]
--help [boolean]
Made with ❤️ by BilelJegham
```
## Development
```bash
# Install & link dev s
npm install
npm link .
# Build & launch
npm run build && api-sport
# uninstall (unlink)
npm unlink .
```