Don't run deploy hook

I have set a deploy hook in cli.ini but I want to run certbot certonly without the deploy hook. There's --run-deploy-hooks but not --no-run-deploy-hooks? --no-directory-hooks stops all the hooks how can I only stop the deploy hook?

User Guide — Certbot 5.7.0 documentation

I've hit this same friction before, where I only want a one-off certonly run without the deploy hook firing. The only reliable workaround I've found is temporarily commenting out the hook in cli.ini, which is easy to forget to restore afterward.

Try using a separate "cli.ini" file for this use:
image
[review: User Guide — Certbot 5.7.0 documentation]