#!/usr/bin/expect -f set timeout -1 spawn bunx prisma migrate dev --name remove_product_price expect { "We need to reset" { send "y\r"; exp_continue } "Are you sure you want to create this migration?" { send "y\r"; exp_continue } "(y/N)" { send "y\r"; exp_continue } "(y/n)" { send "y\r"; exp_continue } eof }