Skip to main content

Mattermost CLI for humans and agents

Project description

mattermost-cli

Mattermost CLI for humans and agents.

Install

# via uvx (recommended)
uvx mattermost-cli --help

# or pip
pip install mattermost-cli

Setup

# Interactive login (password + MFA)
mm login

# Or with a Personal Access Token
mm login --token <your-pat>

# Verify
mm whoami

Usage

# List channels
mm channels

# Show unread messages
mm unread

# Read messages from a channel
mm messages general
mm messages general --since 1h
mm messages @username          # DM with a user

# Read a thread
mm thread <post-id>

# Search
mm search "deployment issue"
mm mentions

Options

--human    Human-readable markdown output (default is JSON)
--team     Filter to a specific team
--debug    Enable debug output

Auth

Two methods supported:

Password + MFA (primary): mm login prompts interactively. Session token is stored locally - password is never saved to disk. When the session expires, run mm login again.

Personal Access Token (optional): mm login --token <pat>. Requires admin to enable PATs on the Mattermost server. Tokens don't expire.

Credentials stored at ~/.config/mm/config.json (token only, 600 permissions).

Environment variables override config: MATTERMOST_URL, MATTERMOST_TOKEN, MATTERMOST_TEAM.

License

MIT

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

mattermost_cli-0.0.1.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mattermost_cli-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file mattermost_cli-0.0.1.tar.gz.

File metadata

  • Download URL: mattermost_cli-0.0.1.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mattermost_cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7a156204639e8933f8817ee0ce650c3162f784fd8f147256ced788625b3b6a19
MD5 b9855f7ebef8ddeff22a990e6dc18104
BLAKE2b-256 242c15083f781f39de3dc2943195095dbe13e8d3b783db9429d5bee1b3664f5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mattermost_cli-0.0.1.tar.gz:

Publisher: publish.yml on rhnvrm/mattermost-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mattermost_cli-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mattermost_cli-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mattermost_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 92074c531bcf4d3b5f27fc1ff95599433f4ceaabb97b8aef5988525110323de6
MD5 8d1d72dad34f1b10ceb79c518cb0130f
BLAKE2b-256 cd16f71aca6a6b540a3fce29fdfbb57729458d2666d3d78d40ef9f227d64e86b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mattermost_cli-0.0.1-py3-none-any.whl:

Publisher: publish.yml on rhnvrm/mattermost-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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