Thoughts about tech, programming, and more.

Edit Rails Credentials

You can edit your Rails credentials file using the nano editor in Terminal using the following command.

These instructions will allow you to edit your Rails credentials file using the nano editor in Terminal. To use a different editor, replace "nano" with the editor of your choice. See how to edit Rails credentials in RubyMine here.


You can edit your Rails credentials file using the nano editor in Terminal using the following command:

EDITOR="nano --wait" rails credentials:edit

This command will open the file for editing in the nano editor and wait until the file is saved before saving and encrypting the encrypted version of the file.

When done making your changes, press Control + X to exit the editor, then press Y to save the changes when it asks if you want to save your changes.

Rails will then encrypt and save the changes to the encrypted version of the file.

Subscribe to Daniel Lemky

Sign up now to get access to the library of members-only issues.
Jamie Larson
Subscribe