Right now, pull will fetch all credentials linked to the project and you might end up with a bloated file. Is it possible to only write/include only credentials linked to the jobs?
Similarly with deploy, all credentials listed will be pushed even though they're not being used in the jobs. Well, deploy is a consequence to pull, if we fix pull then we won't have the "extra" credentials in the first place.
deploy is where it hurts the most tbh, when you want to sync a project from app.openfn and the project has "extra" credentials, you end up having to cleanup the data first before deploying to the target project. Maybe a flag could help here? Like deploy --only-active-credentials ??