rails credentials:edit Specify editor EDITOR="ENTER EDITOR " bin/rails credentials:edit Example: EDITOR="nano" bin/rails credentials:edit