Skip to main content

A CLI tool to archive many slack channels at once

Project description

slack-archiver-cli: A CLI tool to archive many slack channels at once

PyPi ver pytest pysen LICENSE budge

Basic Usage

UsageGIF

Installation

$ pip install slack-archiver-cli

Set token

$ export SLACK_BOT_TOKEN = "xoxb-your-slack-bot-token"

List channels with prefix

$ list-channels channel-prefix
channel-prefix-mychannel1
channel-prefix-mychannel2

Archive channels with prefix

$ archive-channels slackarchiver
slackarchiver-test1
slackarchiver-test2
2 channels found (prefix: slackarchiver)
Do you want to archive 2 channels? [Y/n] yes
Archived channel: slackarchiver-test1
Archived channel: slackarchiver-test2

Requirements

Version and Dependencies

  • Python >= 3.7
  • Dependencies:
    • python-dotenv
    • fire
    • slack-sdk

Slack Bot Token OAuth & Permission Scopes

  • channels:join
  • channels:manage
  • groups:write
  • im:write
  • mpim:write

License

This software is released under the MIT License, see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slack-archiver-cli-1.1.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

slack_archiver_cli-1.1.1-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page