All the API's are there in the following document,
C:\Program Files (x86)\Cypress\Programmer\Documents\psoc_programmer_cli.pdf
I'm finding the documentation, but there is no example with a script that allows you to program a PSoC4. In the doc Example is for a PSoC1, and there are examples in Perl. For the moment I arrived to program the flash first row.
In the Perl script there is a loop on all row, but I do not know what to do with a normal script that would run .cli on command line in this way:
PPCLI "--runfile script.cli"
And i want not use a perl script.