MessengersSlack

Slack CLI troubleshooting

Fix a missing profile, an unreadable settings file, open file modes or a refused write in the Slack CLI.

Start with the symptom, run the check, then retry the command. Keep the error code and the profile name for a support request.

SymptomWhat to do
Not sure what is set upRun slk doctor. It reads no keyring and uses no network.
slk is not foundOpen a new terminal, and check that npm's global folder is on PATH.
"name a profile"Put the profile first, as in slk personal config show, or set SLACK_PROFILE.
The settings file does not readdoctor lists every problem in the file under config.issues. Run the config unset each one gives, or fix the file by hand.
doctor lists files.problemsOther users of the computer can read config.json or enter its folder. Run each chmod that doctor prints after "to make it private:". doctor never changes a file mode itself.
A write is refusedThe profile's permissions or SLACK_READ_ONLY stop it; see settings.

Never paste a token, a password or private content into a support request.