Activity
You also can do like this;
EDITOR=vim rails credentials:edit --environment=development
You need to specify your editor to open the credential file. Here is some options depends on you;
EDITOR=vim
EDITOR=code
EDITOR=sublime
EDITOR=atom
Thanks buddy :p