Using below comment line:
EDITOR=nano RAILS_ENV=staging bin/rails credentials:edit -e staging
Note: both RAILS_ENV and -e staging required
Using below comment line:
EDITOR=nano RAILS_ENV=staging bin/rails credentials:edit -e staging
Note: both RAILS_ENV and -e staging required