Beta

Manage agent channels (Telegram, Lark, Slack, etc.)

Usage: mf channels [command]

Options

OptionsPurpose
-h, --helpdisplay help for command

Subcommands

CommandPurpose
mf channels listList channels (optionally filter by agent)
mf channels createCreate a channel
mf channels getShow a single channel
mf channels updatePatch a channel
mf channels deleteDelete a channel
mf channels testRun a connectivity test for a channel
mf channels registerRun provider-side registration (e.g. webhook setup) for a channel
mf channels sendSend a message through a channel as its bound agent (chat, DM, or native reply)
mf channels sessionsManage channel sessions (per scope, switch active)

mf channels list

List channels (optionally filter by agent)

Usage: mf channels list [options]

Aliases: ls

Options

OptionsPurpose
--agent-id <id>filter to channels owned by this agent (client-side filter)
--jsonemit raw JSON array
-h, --helpdisplay help for command

mf channels create

Create a channel

Usage: mf channels create [options]

Options

OptionsPurpose
--agent-id <id>agent id (defaults to $MF_AGENT_ID or —agent-id global)
--provider <name>channel provider (fake|lark|telegram|slack|discord|matrix|weixin|whatsapp|linear|github|line) Required.
--label <label>channel label (1-200 chars) Required.
--config <json>channel config (@path for file, or inline JSON object) Required.
--credentials <json>channel credentials (@path for file, or inline JSON object)
--jsonoutput the result as JSON
-h, --helpdisplay help for command

mf channels get

Show a single channel

Usage: mf channels get [options] <channelId>

Arguments

ArgumentPurpose
<channelId>

Options

OptionsPurpose
--jsonoutput the result as JSON
-h, --helpdisplay help for command

mf channels update

Patch a channel

Usage: mf channels update [options] <channelId>

Arguments

ArgumentPurpose
<channelId>

Options

OptionsPurpose
--label <label>rename channel (1-200 chars)
--status <status>set channel status (draft|active|paused|error)
--config <json>new channel config (@path or inline JSON)
--credentials <json>new channel credentials (@path or inline JSON)
--jsonoutput the result as JSON
-h, --helpdisplay help for command

mf channels delete

Delete a channel

Usage: mf channels delete [options] <channelId>

Aliases: rm

Arguments

ArgumentPurpose
<channelId>

Options

OptionsPurpose
--jsonoutput the result as JSON
-h, --helpdisplay help for command

mf channels test

Run a connectivity test for a channel

Usage: mf channels test [options] <channelId>

Arguments

ArgumentPurpose
<channelId>

Options

OptionsPurpose
--jsonemit raw JSON (default)
-h, --helpdisplay help for command

mf channels register

Run provider-side registration (e.g. webhook setup) for a channel

Usage: mf channels register [options] <channelId>

Arguments

ArgumentPurpose
<channelId>

Options

OptionsPurpose
--jsonemit raw JSON (default)
-h, --helpdisplay help for command

mf channels send

Send a message through a channel as its bound agent (chat, DM, or native reply)

Usage: mf channels send [options] <channelId>

Arguments

ArgumentPurpose
<channelId>

Options

OptionsPurpose
--chat-id <chatId>target a chat/group by provider chat id
--user-id <userId>DM a provider user id (e.g. Lark open_id)
--reply-to <messageId>reply natively to a provider message id
--text <text>message text
--file <path>attach a workspace file (repeatable, max 4) Default: “.
--jsonemit raw JSON (default)
-h, --helpdisplay help for command

mf channels sessions

Manage channel sessions (per scope, switch active)

Usage: mf channels sessions [command]

Options

OptionsPurpose
-h, --helpdisplay help for command

Subcommands

CommandPurpose
mf channels sessions scopesList scopes in a channel with their active session
mf channels sessions listList channel sessions (optionally filtered by scope)
mf channels sessions newCreate a new active session in a scope (archives the current active)
mf channels sessions switchMake a session active (its scope swaps active to this session)
mf channels sessions renameRename a session (sets display_name)
mf channels sessions deleteArchive a session; with —activate-fallback, auto-activate newest remaining

mf channels sessions scopes

List scopes in a channel with their active session

Usage: mf channels sessions scopes [options] <channelId>

Arguments

ArgumentPurpose
<channelId>

Options

OptionsPurpose
--jsonemit raw JSON
-h, --helpdisplay help for command

mf channels sessions list

List channel sessions (optionally filtered by scope)

Usage: mf channels sessions list [options] <channelId>

Arguments

ArgumentPurpose
<channelId>

Options

OptionsPurpose
--scope-key <key>filter by scopeKey
--include-archivedinclude archived sessions
--jsonemit raw JSON
-h, --helpdisplay help for command

mf channels sessions new

Create a new active session in a scope (archives the current active)

Usage: mf channels sessions new [options] <channelId>

Arguments

ArgumentPurpose
<channelId>

Options

OptionsPurpose
--scope-key <key>target scope key Required.
--name <name>display name for the new session
--jsonemit raw JSON
-h, --helpdisplay help for command

mf channels sessions switch

Make a session active (its scope swaps active to this session)

Usage: mf channels sessions switch [options] <channelId> <sessionId>

Arguments

ArgumentPurpose
<channelId>
<sessionId>

Options

OptionsPurpose
--jsonemit raw JSON
-h, --helpdisplay help for command

mf channels sessions rename

Rename a session (sets display_name)

Usage: mf channels sessions rename [options] <channelId> <sessionId> <name>

Arguments

ArgumentPurpose
<channelId>
<sessionId>
<name>

Options

OptionsPurpose
--jsonemit raw JSON
-h, --helpdisplay help for command

mf channels sessions delete

Archive a session; with —activate-fallback, auto-activate newest remaining

Usage: mf channels sessions delete [options] <channelId> <sessionId>

Arguments

ArgumentPurpose
<channelId>
<sessionId>

Options

OptionsPurpose
--activate-fallbackif deleting the active session, auto-activate the newest remaining
--jsonemit raw JSON
-h, --helpdisplay help for command
Was this page helpful?