Kater CLI Set up init
kater init write-back
Connects a GitHub repository for write-back.
This is step 9 of kater init. Run it alone first to approve Kater in GitHub, then again with the repository that you select.
Examples
# Approve Kater in GitHub, then list the accounts and repositorieskater init write-back# Connect a repository, and write back to kater/ after each publishkater init write-back --installation-id 12345678 --repository-id 87654321 --path-prefix kater/ --schedule on_publish# Connect a repository, and write back at 06:00 UTC each daykater init write-back --installation-id 12345678 --repository-id 87654321 --path-prefix kater/ --schedule cron --cron "0 6 * * *"Options
It also takes --help.
Two runs
- Alone, it opens GitHub, where you approve Kater’s GitHub App. It waits 9 minutes at most. Then it lists each account with its
installation_id, and each repository where you are an admin, with itsrepository_id. - With
--installation-id,--repository-id,--path-prefixand--scheduletogether, it connects the repository and completes the step.
When the first run lists no repository, install Kater’s GitHub App on a repository in GitHub. Then run the command again. See kater admin write-back for what Kater writes. It needs the settings:manage permission.