MAX
Command reference — MAX
Find every MAX CLI command, argument, option and exit code in the generated command reference.
Choose the reference for your task. Start with First tasks if you're getting acquainted; use this reference for exact commands, arguments and options. First tasks →
Personal accountChats, messages, contacts, search, files, sending and auto-replies in your own account.
BotsBot connection, messages, updates and the full Bot API.
Group and channel administrationMembers, invitations, permissions, moderation, forum topics and statistics for groups and channels. Changes require the relevant permissions.
Setup and maintenanceLogin, profiles, configuration, the background server, the local store, diagnostics, agent connection and updates.
Find a command by name
- max session
- max session start
- max session end
- max setup
- max account
- max account list
- max account show
- max account update
- max account sessions
- max account sessions list
- max account sessions end
- max account remove
- max account privacy
- max account privacy show
- max account privacy set
- max calls
- max calls list
- max stickers
- max stickers list
- max chats
- max chats list
- max chats show
- max chats documents
- max chats documents list
- max chats events
- max chats inspect
- max chats join
- max chats mark-read
- max chats leave
- max chats create
- max chats members
- max chats members list
- max chats members check
- max chats members history
- max chats members fetch
- max chats members add
- max chats members remove
- max chats tracking
- max chats tracking list
- max chats tracking show
- max chats tracking add
- max chats tracking remove
- max chats admins
- max chats admins add
- max chats admins remove
- max chats update
- max chats links
- max chats links show
- max chats links reset
- max chats requests
- max chats requests list
- max chats requests confirm
- max chats requests reject
- max chats folders
- max chats folders list
- max chats folders show
- max chats folders create
- max chats folders update
- max chats folders delete
- max chats folders order
- max chats rules
- max chats rules show
- max chats rules set
- max chats rules unset
- max chats moderate
- max chats media
- max chats mute
- max chats unmute
- max chats delete
- max chats clear
- max chats start
- max chats app
- max contacts
- max contacts list
- max contacts show
- max contacts aliases
- max contacts aliases set
- max contacts aliases remove
- max contacts notes
- max contacts notes list
- max contacts notes show
- max contacts notes add
- max contacts notes edit
- max contacts notes remove
- max contacts sync
- max contacts lookup
- max contacts add
- max contacts remove
- max contacts block
- max contacts unblock
- max contacts rename
- max contacts import
- max contacts context
- max contacts prepare
- max contacts events
- max contacts check
- max contacts link
- max contacts unlink
- max messages
- max messages list
- max messages show
- max messages context
- max messages links
- max messages link
- max messages download
- max messages evidence
- max messages sync
- max messages transcribe
- max messages send
- max messages scheduled
- max messages edit
- max messages delete
- max messages forward
- max messages pin
- max messages unpin
- max messages press
- max store
- max store status
- max store chats
- max store chats status
- max store gaps
- max store gaps show
- max store gaps repair
- max store jobs
- max store jobs list
- max store jobs show
- max store jobs cancel
- max store jobs retry
- max store jobs clear
- max store export
- max store clear
- max store import
- max store info
- max store check
- max store migrate
- max store rebuild
- max store backup
- max store restore
- max store decrypt
- max store repair
- max store reset
- max store copies
- max store copies delete
- max store tables
- max store tables list
- max store recover
- max store recover run
- max stats
- max stats messages
- max stats messages show
- max stats messages counters
- max stats messages counters show
- max stats messages counters sync
- max stats messages unanswered
- max stats messages discussion
- max stats messages responses
- max stats messages waiting
- max stats messages top
- max stats messages evidence
- max stats contacts
- max stats contacts responses
- max stats contacts top
- max stats contacts evidence
- max stats chats
- max stats chats show
- max stats chats newcomers
- max stats chats retention
- max stats tasks
- max stats tasks show
- max stats charts
- max tasks
- max tasks list
- max tasks add
- max tasks update
- max tasks link
- max tasks show
- max tasks related
- max tasks duplicates
- max tasks duplicates list
- max tasks duplicates reject
- max tasks duplicates defer
- max tasks merge
- max tasks unmerge
- max tasks agenda
- max tasks categories
- max tasks scan
- max tasks status
- max tasks review
- max tasks acknowledge
- max tasks claim
- max tasks release
- max tasks close
- max tasks reject
- max projects
- max projects evidence
- max projects status
- max conversations
- max conversations list
- max conversations show
- max conversations related
- max conversations status
- max conversations batches
- max conversations batches status
- max conversations batches show
- max conversations links
- max conversations links rebuild
- max conversations links add
- max conversations links clear
- max conversations embeddings
- max conversations embeddings status
- max conversations embeddings clear
- max conversations rebuild
- max conversations consents
- max conversations consents list
- max conversations consents remove
- max conversations embed
- max attachments
- max attachments extract
- max attachments list
- max attachments show
- max attachments update
- max attachments download
- max attachments check
- max attachments jobs
- max attachments jobs install
- max attachments jobs start
- max attachments jobs stop
- max attachments jobs status
- max attachments jobs uninstall
- max attachments move
- max tags
- max tags rebuild
- max tags add
- max tags remove
- max tags list
- max mentions
- max mentions list
- max mentions domains
- max mentions places
- max mentions show
- max mentions confirm
- max mentions reject
- max mentions rebuild
- max images
- max images embed
- max images models
- max images models list
- max images models download
- max metadata
- max metadata show
- max metadata sync
- max search
- max search all
- max search messages
- max search notes
- max search conversations
- max search runs
- max searches
- max searches create
- max searches show
- max searches list
- max searches history
- max searches delete
- max searches clear
- max flood
- max flood clear
- max models
- max models keys
- max models keys set
- max models keys remove
- max models list
- max models download
- max models set
- max models add
- max polls
- max polls show
- max polls vote
- max polls close
- max polls create
- max reactions
- max reactions add
- max reactions remove
- max recipients
- max recipients list
- max recipients add
- max recipients remove
- max recipients clear
- max sends
- max sends list
- max inbox
- max review
- max replies
- max replies add
- max replies on
- max replies off
- max replies edit
- max replies audience
- max replies consents
- max replies consents show
- max replies consents grant
- max replies consents revoke
- max replies consents deny
- max replies consents allow
- max replies test
- max replies pause
- max replies resume
- max replies status
- max serve
- max server
- max server start
- max server stop
- max server restart
- max server status
- max server logs
- max server install
- max server uninstall
- max schedule
- max schedule command
- max schedule agent
- max schedule list
- max schedule run
- max schedule remove
- max schedule pause
- max schedule resume
- max schedule exec
- max watch
- max config
- max config show
- max config set
- max config unset
- max config migrate
- max config repair
- max doctor
- max doctor reports
- max doctor reports show
- max doctor reports create
- max runs
- max runs list
- max runs show
- max runs path
- max skill
- max skill show
- max skill install
- max skill status
- max commands
- max commands info
- max upgrade
- max complete
- max mcp
- max mcp serve
- max mcp revoke
- max mcp server
- max mcp server start
- max mcp server stop
- max mcp server status
- max mcp config
- max mcp add
- max mcp check
- max bot
- max bot auth
- max bot auth set
- max bot auth show
- max bot auth remove
- max bot list
- max bot chats
- max bot chats list
- max bot chats show
- max bot chats leave
- max bot chats action
- max bot chats admins
- max bot chats admins list
- max bot chats admins add
- max bot chats admins remove
- max bot chats members
- max bot chats members remove
- max bot chats members list
- max bot chats members add
- max bot chats rules
- max bot chats rules show
- max bot chats rules set
- max bot chats rules unset
- max bot chats moderate
- max bot messages
- max bot messages send
- max bot messages list
- max bot messages show
- max bot messages edit
- max bot messages delete
- max bot messages pin
- max bot messages unpin
- max bot messages between
- max bot messages sync
- max bot search
- max bot search messages
- max bot recipients
- max bot recipients list
- max bot recipients add
- max bot recipients remove
- max bot recipients clear
- max bot sends
- max bot sends list
- max bot watch
- max bot callbacks
- max bot callbacks answer
- max bot commands
- max bot commands list
- max bot commands set
- max bot commands clear
- max bot webhooks
- max bot webhooks list
- max bot webhooks set
- max bot webhooks delete
- max bot contacts
- max bot contacts show
- max bot mcp
- max bot mcp serve
- max bot mcp config
- max bot me
- max bot comments
- max bot comments list
- max bot comments get
- max bot comments send
- max bot comments edit
- max bot comments delete
- max bot uploads
- max bot uploads put
- max bot api
- max bot api get-my-info
- max bot api edit-my-commands
- max bot api get-chat
- max bot api edit-chat
- max bot api send-action
- max bot api get-pinned-message
- max bot api pin-message
- max bot api unpin-message
- max bot api get-membership
- max bot api leave-chat
- max bot api get-admins
- max bot api post-admins
- max bot api delete-admins
- max bot api get-members
- max bot api add-members
- max bot api remove-member
- max bot api get-subscriptions
- max bot api subscribe
- max bot api unsubscribe
- max bot api get-upload-url
- max bot api get-messages
- max bot api send-message
- max bot api edit-message
- max bot api delete-message
- max bot api get-message-by-id
- max bot api get-comments
- max bot api send-comment
- max bot api edit-comment
- max bot api delete-comment
- max bot api get-comment-by-id
- max bot api get-video-attachment-details
- max bot api answer-on-callback
- max bot api get-updates
- max guide
How commands work
max [profile] [options] <resource> <action> [arguments]- Resource first, then the action. The resource is what you work with:
chats,messages,contacts. The action is what you do with it:list,show,send. - Name the profile as the first word:
max work chats listlists the chats of profilework. No profile is ever assumed: a command that needs an account and gets none from the first word orMAX_PROFILEstops and lists your profiles, even when there is only one. - Global options work with every command:
--jsonfor scripts and agents,--dry-runto check a command without running it,--offlineto answer from the local copy only. - A command that changes something is marked in the reference: “Changes something in MAX” changes data in the messenger, “Changes something on this computer only” changes only files on this computer.
- Permission levels can make a write ask for confirmation first.
--yesgives that confirmation in advance. - Each reference ends with the exit codes.
max commandslists every command by section and marks the ones that change something;max guidelists step-by-step scenarios. Options are inmax commands --jsonandmax <command> --help.