07 Jan 2025 08:21 PM
I have written a github action to try to deploy our custom app when changes are made. When doing so I am being asked to choose whether I want to overwrite the existing app or not. Since this is automation I do not want to have this question pop up but instead wish it to automatically overwrite.
Is there a way to do this?
Solved! Go to Solution.
07 Jan 2025 08:40 PM
I determined if I use the command Run npx dt-app deploy --force-overwrite instead of npm run deploy the overwrite works.
10 Jan 2025 12:55 PM
When trying to add parameters to "npm run", you have to do say via adding an additional "--" in between, e.g.:
npm run deploy -- --force-overwrite
See https://docs.npmjs.com/cli/v10/commands/npm-run-script for details.
Alternatively, as you also mentioned in your comment bellow, you can use "dt-app deploy --force-overwrite".