You can download the latest version of the binary built for your architecture here:
- Architecture i386 [ Darwin / Linux ]
- Architecture amd64 [ Darwin / Linux / Windows ]
- Architecture arm [ Linux ]
You must create your json
configurations files like (all fields are required):
// your-personal-account.json
{
"address": {
"city": "Paris",
"street": "770 rue Pepito",
"country": "France",
"zipCode": "75006"
},
"company": {
"siret": "88462068300018",
"tva": "FR77049322770",
"capital": 100.00,
"rcs": "Nanterre B",
"naf": "6201Z",
"type": "SARL"
},
"name": "Fuego by P",
"firstname": "Ilan",
"lastname": "Zerath",
"mail": "[email protected]"
}
// your-customer.json
{
"address": {
"city": "Paris",
"street": "47 rue Fuego",
"country": "France",
"zipCode": "75017"
},
"company": {
"siret": "88462068300018",
"tva": "FR77049322770",
"type": "SARL"
},
"name": "Space X"
}
// your-service.json
{
"tva": {
"pourcent": 20
},
"detail": "Prestation Pepito Fuego by P",
"quantity": 7.5,
"unitPrice": 863
}
You have AWS (flag: aws) / Local (by default) / Google Drive (flag: drive)
! You must provide following env variable before the command:
AWS_SECRET_ACCESS_KEY="YOUR-ACCESS-KEY" AWS_ACCESS_KEY_ID="YOUR-KEY-ID" AWS_REGION="eu-west-3"
! Before launch the command you must follow this link (https://console.developers.google.com/apis)[https://console.developers.google.com/apis], go to identifier section and create a ID Client OAuth for desktop app
! When you launch the command, google ask to copy/paste a url in your browser. After accept all requirement you be able to use your drive.
! You must provide following env variable before the command:
DRIVE_CLIENT_ID="YOUR-CLIENT-ID" DRIVE_CLIENT_SECRET="YOUR-CLIENT-SECRET" DRIVE_REDIRECT_URL="YOUR-REDIRECT-URL" DRIVE_AUTH_URL="YOUR-AUTH-URL" DRIVE_TOKEN_URL="YOUR-TOKEN-URL"
$ fuegoBilling generate-pdf --account-config-path your-personal-account.json --customer-config-path your-customer.json --service-config-path your-service.json --pdf-path your-pdf-path --export aws