Skip to main content

Mattermost CLI for humans and agents

Project description

mattermost-cli

Mattermost CLI for humans and agents.

Install

# Run directly (no install)
uvx --from mattermost-cli mm --help

# Or install globally
pip install mattermost-cli
mm --help

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.3.tar.gz (36.4 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.3-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mattermost_cli-0.0.3.tar.gz
  • Upload date:
  • Size: 36.4 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.3.tar.gz
Algorithm Hash digest
SHA256 e4e56b306c812770d9a5a1b285d2a8eeaa0a08cc5c7f46c89fe7987595c7a616
MD5 b4212900bbbf87e687ae1cab729f0536
BLAKE2b-256 163a7bdedfd3ec8aea97c081a05d5b4fe303cd3af46aa30539f11d8a0fa3a35e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mattermost_cli-0.0.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: mattermost_cli-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 26.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b2fb16f701f0341552a44c1e747b5ae3d65398da5e45e753b3a16577b80be26
MD5 0ba318929f8f74f354b0fbc523e12050
BLAKE2b-256 edcda22ebf83f3e9de1f25a7c8535004699183ed70f84be5af43f005e23feba7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mattermost_cli-0.0.3-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