Skip to content

warning: SLACK_TOKEN is set in the environment, but not used #607

@gerikis

Description

@gerikis

Describe the bug
I have set ".env" file at same location where slackdump ran .
However I'm getting a warning :

$ ./slackdump 
2026-02-03 10:08:21 INFO  warning: SLACK_TOKEN is set in the environment, but
                      │   not used, run with -env flag to use it

Authentication type (please read)
If your issue is related to the automated login, and your workspace uses SSO (Single Sign On), meaning that when you login, you login with other system credentials, i.e. with your Google account, specify the SSO type, i.e. Google/Okta/Auth0/Onelogin etc.

To Reproduce
Steps to reproduce the behavior:

  1. Run slackdump like this '...'

Expected behavior
A clear and concise description of what you expected to happen.

Output
If applicable, add output to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. fedora]
  • OS Version: [e.g. 14.1]
  • Slackdump Version: [e.g. 2.4.2]
$ ./slackdump version
2026-02-03 10:13:41 INFO  warning: SLACK_TOKEN is set in the environment, but
                      │   not used, run with -env flag to use it
Slackdump 3.1.13 (commit: 738891dd) built on: 2026-01-31T12:52:30Z

Additional context
Add any other context about the problem here.

$ ./slackdump -env
flag provided but not defined: -env
Slackdump is a tool for exporting Slack conversations, emojis, users, etc.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions