1. Go to this page and download the library: Download netglue/prismic-cli library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// Local Configuration
return [
'primo' => [
// ...
'custom-type-api' => [
'token' => 'an access token retrieved from repository settings',
'repository' => 'my-repo', // The repo name such as "my-repo" as opposed to the full url or "my-repo.prismic.io"
],
// ...
],
];