Can use the --cert flag in the command line, but not in deno.json

I am trying to run my deno program with the following command:
deno run -A --cert ~/tmp/ca.crt main.ts
This works fine. However, if I put this command in my
deno.json
, it can no longer find the certificate:

An error occurred during route handling or page rendering. Error: Failed opening CA file: No such file or directory (os error 2)


My
deno.json
relevant line:

"start": "deno run -A --cert=/home/jlcarveth/tmp/ca.crt --watch=static/,routes/ dev.ts"


So why can Deno find the cert no problem if I run the command from the CLI, but not via deno.json?
Was this page helpful?