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.2.tar.gz (19.1 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.2-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mattermost_cli-0.0.2.tar.gz
  • Upload date:
  • Size: 19.1 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.2.tar.gz
Algorithm Hash digest
SHA256 992628494a9052fa927dfc2a46490ae01ed77048aadabb825dcd17cae5e17e67
MD5 55f72f5edc6b028a01eff0187d3e8675
BLAKE2b-256 3aa70465aa2f5bb5cba2a00062d5af065e0f2b4b344630aabe313d898ee34d85

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mattermost_cli-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bc1d129ef577fce6d23ad03edf5490d7fbf13928ab37a4a0e0099c6ff322fb5a
MD5 a47a0a61c582d080d584e9a7653e7196
BLAKE2b-256 43db4691385bf22bc130a9d743539822468fa46ad1271dc8ac59d71e711e872b

See more details on using hashes here.

Provenance

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