[FEATURE] Environment variable to simplify `--token` global flag
@hello-ashleyintech is already working on this.
Since Feb 5, 2025.
Assessment
This issue has not been assessed yet.
Description
Description of the problem being solved
When using the Slack CLI in CI/CD pipelines today, an auth token must be used (instead of the traditional slack login method). This requires the usage of the --token global flag in every single command (commands which may very well appear in logs, etc.)
Instead, it would be much more secure (and also convenient) to allow an environment variable to be used as a fallback for the global flag. This is already the case for --config-dir, which can be specified via SLACK_CONFIG_DIR instead (see documentation here).
It would be wonderful if we could also specify an environment variable like SLACK_AUTH_TOKEN, instead of specifying --token for every command.
Alternative solutions
Being able to log in with a token (and not having to keep repeating it afterwards).
However, an environment variable would be even better (and probably easier to implement as well).
- Dominant language
- Go
- Stars
- 305
- Forks
- 46
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 23
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from slackapi/slack-cli
-
Installer aborts on an existing same-named `slack` binary; prefer install + warning over hard abort Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug build release
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
area:bolt-python bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
build code health
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
enhancement semver:minor
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in slackapi/slack-cli
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100