Skip to end of banner
Go to start of banner

Access Tokens

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

To access Slack with the CLI, you will need a token for your workspace. The token needs to be provided on the token parameter on all CLI actions. Usually this is done by coding it into a setup script like slack.bat, slack.sh, atlassian.bat, or atlassian.sh examples provided in the client distribution. Tokens carry access permissions and should be treated securely like passwords. Slack has a number of different token types and, depending on how they are generated, are permitted to only do certain actions.

Generating Tokens

Legacy Tokens

  • Easy to generate
  • Represents a fixed set of permissions as defined by Slack
  • Recommendation from Slack is to use Application tokens instead
  • Information and Token Generator

App Tokens

  • A little bit more work to generate a token
  • Each permission needs to be granted separately
  • Create an app - for a CLI app token, only a few things are needed:
    • For example, call the app cli or anything you like
    • Grant permissions
    • Install into your workspace

Example Maximum Permission Choices 




  • No labels