← 返回列表
✓ 可直接安装
Claude Code 插件
自动检查通过:npm 包已发布且 engines 声明满足基线(声明 Node >=18.0.0);该结论来自程序自动检查,未经人工实机验证。 · 最近上游提交 2026/9/16 · 已提供中文文档
Postiz Agents CLI——将其连接到 Claude / OpenClaw / 等,以安排社交媒体帖子 🤖
综合分
68.9
GitHub 分
68.9
用户评分
—
★ Stars
468
周下载量
—
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add postiznpm 包 postiz 已校验归属本仓库,走 npm 安装最省事
数据截至 2026/9/17(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
安装兼容性检查✓ 自动检查通过
以下结论由程序自动检查 npm 包、engines 声明与入口文件得出,未做人工实机验证——能装不等于用着没问题。
✓npm 包postiz @ 2.0.16
✓Node 引擎要求 >=18.0.0 · 基线 Node 22.19 满足
✓dsh CLI 依赖未声明 dsh 版本约束
✓入口文件main/exports/bin 已声明
验证方式:npm registry 存在性 + package.json 静态校验 · 最后验证 2026/9/16 16:50:34
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动
README
作为技能安装
npx skills add gitroomhq/postiz-agent
Claude Code 插件
/plugin marketplace add gitroomhq/postiz-agent
/plugin install postiz@postiz-agent
Grok Build 插件
Postiz 已收录于 xAI 插件市场 —— 可在 Grok Build 内从该市场安装。本仓库也自带 .grok-plugin/plugin.json 清单和 .grok-plugin/marketplace.json 目录,因此可以直接作为市场源添加。
Grok 插件还通过 .grok-plugin/plugin.json 中的 mcpServers 字段捆绑了托管的 Postiz MCP 服务器(https://mcp.postiz.com/mcp-oauth-dynamic)—— 首次连接时会要求你登录 Postiz;无需令牌或本地安装。Claude Code 和 Cursor 插件仅提供技能/CLI,不注册 MCP 服务器。
Cursor 插件
本仓库在 .cursor-plugin/plugin.json 提供了一个 Cursor 插件清单。
- 从市场 / Customize 面板安装: 打开 Cursor 侧边栏中的 Customize,找到 postiz,然后选择 Install(项目或用户范围)。
- 本地安装(开发):
git clone https://github.com/gitroomhq/postiz-agent.git
ln -s "$(pwd)/postiz-agent" ~/.cursor/plugins/local/postiz
然后重启 Cursor 或运行 Developer: Reload Window。
该插件提供 postiz 技能,它驱动 postiz CLI(CLI 负责媒体上传,这是图片/视频帖子所必需的)。在让智能体发帖之前,请确保已安装 CLI(npm install -g postiz)并完成身份验证(postiz auth:login 或 export POSTIZ_API_KEY=...)。
Gemini CLI 扩展
本仓库是一个 Gemini CLI 扩展(根目录下的 gemini-extension.json),并已收录于扩展库。
gemini extensions install https://github.com/gitroomhq/postiz-agent
它会安装 postiz 技能和托管的 Postiz MCP 服务器(https://mcp.postiz.com/mcp-oauth-dynamic)。Gemini CLI 在首次使用时会打开浏览器登录 Postiz;运行 /mcp auth postiz 可重新进行身份验证。该技能驱动 postiz CLI 进行媒体上传,因此若要发布图片或视频帖子,请使用 npm install -g postiz 安装它。
Qwen Code
Qwen Code 直接安装 Claude Code 市场,因此无需单独的清单:
qwen extensions install gitroomhq/postiz-agent:postiz
DeepSeek Harness 插件
本仓库在 plugins/dsh-postiz 提供了一个 DeepSeek Harness(dsh)捆绑包。它将智能体连接到托管的 Postiz MCP 服务器,并注册一个 postiz 工作流技能。
dsh plugin --profile web add "github:gitroomhq/postiz-agent#path:/plugins/dsh-postiz"
export POSTIZ_API_KEY=your-api-key # Postiz → Settings → Developers → Public API
dsh web
随后 Postiz 工具会以 mcp__postiz__ 的形式出现(integrationList、integrationSchema、schedulePostTool……)。自托管实例会覆盖 postiz 行上的 baseUrl。有关配置,请参阅插件 README。
Postiz CLI
面向 AI 代理的社交媒体自动化 CLI - 以编程方式在 28+ 个平台上安排帖子。
Postiz CLI 提供了 Postiz API 的命令行界面,使开发者和 AI 代理能够自动化社交媒体发布、管理内容,并处理 Twitter/X、LinkedIn、Reddit、YouTube、TikTok、Instagram、Facebook 等平台上的媒体上传。
安装
从 npm 安装(推荐)
npm install -g postiz
or
pnpm install -g postiz
身份验证
选项 1:OAuth2(推荐)
使用设备流程进行身份验证——无需客户端 ID 或密钥:
postiz auth:login
这将:
1. 在你的终端中显示一次性代码
2. 打开浏览器进行授权
3. 自动将凭据保存到 ~/.postiz/credentials.json
Check current auth status (verifies credentials are still valid)
postiz auth:status
Remove stored credentials
postiz auth:logout
自托管身份验证服务器
默认情况下,postiz auth:login 使用位于 cli-auth.postiz.com 的托管身份验证服务器。如果你想自托管 OAuth2 设备流程服务器,请遵循 server/SERVER.md 中的指南。
选项 2:API 密钥
export POSTIZ_API_KEY=your_api_key_here
可选: 自定义 API 端点
export POSTIZ_API_URL=https://your-custom-api.com
注意: 当两者同时存在时,OAuth2 凭据优先于 API 密钥。
命令
发现与设置
列出所有已连接的集成
postiz integrations:list
postiz integrations:list --group "customer-id"
返回集成 ID、提供商名称和元数据。使用 --group 仅返回分配给特定组(客户)的频道。
列出所有组(客户)
postiz integrations:groups
以 {id, name} 的形式返回你组织的所有组(客户)。将组的 id 与 integrations:list --group 一起使用以筛选频道。
获取集成设置架构
postiz integrations:settings
返回字符限制、必需设置以及用于获取动态数据的可用工具。
触发集成工具
postiz integrations:trigger
postiz integrations:trigger -d '{"key":"value"}'
获取动态数据,例如 Reddit 标签、YouTube 播放列表、LinkedIn 公司等。
示例:
Get Reddit flairs
postiz integrations:trigger reddit-123 getFlairs -d '{"subreddit":"programming"}'
Get YouTube playlists
postiz integrations:trigger youtube-456 getPlaylists
获取 LinkedIn 公司
postiz integrations:trigger linkedin-789 getCompanies
创建帖子
简单的定时帖子bash
postiz posts:create -c "Content" -s "2024-12-31T12:00:00Z" -i "integration-id"
草稿帖子bash
postiz posts:create -c "Content" -s "2024-12-31T12:00:00Z" -t draft -i "integration-id"
带媒体的帖子bash
postiz posts:create -c "Content" -m "img1.jpg,img2.jpg" -s "2024-12-31T12:00:00Z" -i "integration-id"
带评论的帖子(每条评论都可以有自己的媒体)bash
postiz posts:create \
-c "Main post" -m "main.jpg" \
-c "First comment" -m "comment1.jpg" \
-c "Second comment" -m "comment2.jpg,comment3.jpg" \
-s "2024-12-31T12:00:00Z" \
-i "integration-id"
多平台帖子bash
postiz posts:create -c "Content" -s "2024-12-31T12:00:00Z" -i "twitter-id,linkedin-id,facebook-id"
平台特定设置bash
postiz posts:create \
-c "Content" \
-s "2024-12-31T12:00:00Z" \
--settings '{"subreddit":[{"value":{"subreddit":"programming","title":"Post Title","type":"text"}}]}' \
-i "reddit-id"
从 JSON 文件创建复杂帖子bash
postiz posts:create --json post.json
选项:
- -c, --content - 帖子/评论内容(对于带评论的帖子可多次使用)
- -s, --date - ISO 8601 格式的定时日期(必填)
- -t, --type - 帖子类型:"schedule" 或 "draft"(默认:"schedule")
- -m, --media - 与对应 -c 匹配的逗号分隔媒体 URL
- -i, --integrations - 逗号分隔的集成 ID(必填)
- -d, --delay - 评论之间的延迟(分钟)(默认:0)
- --settings - 作为 JSON 字符串的平台特定设置
- -j, --json - 包含完整帖子结构的 JSON 文件路径
- --shortLink - 使用短链接(默认:true)
管理帖子
列出帖子bash
postiz posts:list
postiz posts:list --startDate "2024-01-01T00:00:00Z" --endDate "2024-12-31T23:59:59Z"
postiz posts:list --customer "customer-id"
如果未指定日期,则默认为过去 30 天到未来 30 天。每个返回的帖子都包含其当前的 settings(以 JSON 字符串形式返回——对其执行 JSON.parse)。预期的工作流程是 posts:list(读取当前设置)→ posts:settings(修补它们)。
删除帖子bash
postiz posts:delete
更改帖子状态(草稿 ↔ 定时)bash
postiz posts:status --status draft
postiz posts:status --status schedule
将定时帖子移回草稿,或将草稿提升到发布队列。切换到 draft 还会终止该帖子已在运行的任何工作流,因此它不会被发布。切换到 schedule 会将帖子排队,在其存储的日期发布。
更新帖子的提供商特定设置bash
postiz posts:settings --settings '{"content_posting_method":"DIRECT_POST"}'
postiz posts:settings --settings '{"subreddit":[{"value":{"subreddit":"/r/selfhosted","title":"My title","type":"self","is_flair_required":true}}]}'
在服务端修补帖子的设置。后端会合并该对象——只有你传入的键会发生变化,其他所有内容都会保留——因此请传入一个部分对象,而不是完整的设置数据块。只有草稿/队列(未发布)的帖子才能更新;已发布的帖子会被拒绝。请传入主帖子 ID,而不是评论 ID。不要包含 __type——后端会根据集成自动添加它。
分析
获取平台分析数据bash
postiz analytics:platform
postiz analytics:platform -d 30
返回特定集成/渠道随时间变化的指标,如关注者、展示次数和互动量。-d 标志指定回溯的天数(默认值:7)。
获取帖子分析数据bash
postiz analytics:post
postiz analytics:post -d 30
返回特定已发布帖子的指标,如点赞、评论、分享和展示次数。
⚠️ 如果 analytics:post 返回 {"missing": true},说明帖子已发布,但平台没有返回可用的帖子 ID。你必须先解决这个问题,分析功能才能正常工作:
bash
1. 列出提供商处可用的内容
postiz posts:missing
2. 将正确的内容连接到该帖子
postiz posts:connect --release-id "7321456789012345678"
3. 分析功能现在可以正常工作了
postiz analytics:post
连接缺失的帖子
某些平台(例如 TikTok)在发布后不会立即返回帖子 ID。该帖子的 releaseId 会被设置为 "missing",在解决之前分析功能无法正常工作。
列出提供商处可用的内容bash
postiz posts:missing
返回一个由 {id, url} 项组成的数组,表示提供商最近的内容。如果提供商不支持此功能,则返回空数组。
将帖子连接到其已发布的内容bash
postiz posts:connect --release-id ""
媒体上传
上传文件并获取 URLbash
postiz upload
⚠️ 重要:发帖前先上传文件
在帖子中使用媒体文件之前,你必须先将它们上传到 Postiz。许多平台(尤其是 TikTok、Instagram 和 YouTube)要求使用经过验证/受信任的 URL,并且会拒绝外部链接。
工作流程:
1. 使用 postiz upload 上传你的文件
2. 提取返回的 URL
3. 在帖子的 -m 参数中使用该 URL
支持的格式:
- 图片: PNG、JPG、JPEG、GIF
- 视频: MP4
示例:bash
1. 先上传文件
RESULT=$(postiz upload video.mp4)
PATH=$(echo "$RESULT" | jq -r '.path')
2. 在帖子中使用 Postiz URL
postiz posts:create -c "Check out my video!" -s "2024-12-31T12:00:00Z" -m "$PATH" -i "tiktok-id"
为什么这是必需的:
- TikTok、Instagram、YouTube 仅接受来自受信任域名的 URL
- 安全性: 平台会验证媒体来源以防止滥用
- 可靠性: Postiz 确保你的媒体始终可访问
平台特定功能
Redditbash
Get available flairs
postiz integrations:trigger reddit-id getFlairs -d '{"subreddit":"programming"}'
Post with subreddit and flair
postiz posts:create \
-c "Content" \
-s "2024-12-31T12:00:00Z" \
--settings '{"subreddit":[{"value":{"subreddit":"programming","title":"My Post","type":"text","is_flair_required":true,"flair":{"id":"flair-123","name":"Discussion"}}}]}' \
-i "reddit-id"
YouTubebash
Get playlists
postiz integrations:trigger youtube-id getPlaylists
Upload video FIRST (required!)
VIDEO=$(postiz upload video.mp4)
VIDEO_URL=$(echo "$VIDEO" | jq -r '.path')
Post with uploaded video URL
postiz posts:create \
-c "Video description" \
-s "2024-12-31T12:00:00Z" \
--settings '{"title":"Video Title","type":"public","tags":[{"value":"tech","label":"Tech"}],"playlistId":"playlist-id"}' \
-m "$VIDEO_URL" \
-i "youtube-id"
TikTokbash
Upload video FIRST (TikTok only accepts verified URLs!)
VIDEO=$(postiz upload video.mp4)
VIDEO_URL=$(echo "$VIDEO" | jq -r '.path')
Post with uploaded video URL
postiz posts:create \
-c "Video caption #fyp" \
-s "2024-12-31T12:00:00Z" \
--settings '{"privacy_level":"PUBLIC_TO_EVERYONE","duet":true,"stitch":true,"content_posting_method":"DIRECT_POST"}' \
-m "$VIDEO_URL" \
-i "tiktok-id"
LinkedInbash
Get companies you can post to
postiz integrations:trigger linkedin-id getCompanies
Post as company
postiz posts:create \
-c "Company announcement" \
-s "2024-12-31T12:00:00Z" \
--settings '{"companyId":"company-123"}' \
-i "linkedin-id"
X (Twitter)bash
Create thread
postiz posts:create \
-c "Thread 1/3 🧵" \
-c "Thread 2/3" \
-c "Thread 3/3" \
-s "2024-12-31T12:00:00Z" \
-d 2000 \
-i "twitter-id"
With reply settings
postiz posts:create \
-c "Tweet content" \
-s "2024-12-31T12:00:00Z" \
--settings '{"who_can_reply_post":"everyone"}' \
-i "twitter-id"
Instagrambash
Upload image FIRST (Instagram requires verified URLs!)
IMAGE=$(postiz upload image.jpg)
IMAGE_URL=$(echo "$IMAGE" | jq -r '.path')
Regular post
postiz posts:create \
-c "Caption #hashtag" \
-s "2024-12-31T12:00:00Z" \
--settings '{"post_type":"post"}' \
-m "$IMAGE_URL" \
-i "instagram-id"
Story (upload first)
STORY=$(postiz upload story.jpg)
STORY_URL=$(echo "$STORY" | jq -r '.path')
postiz posts:create \
-c "" \
-s "2024-12-31T12:00:00Z" \
--settings '{"post_type":"story"}' \
-m "$STORY_URL" \
-i "instagram-id"
查看 PROVIDER_SETTINGS.md 了解全部 28+ 个平台。
面向 AI 代理的功能
发现工作流
该 CLI 支持动态发现集成能力:
1. 列出集成 - 获取可用的社交媒体账户
2. 获取设置 - 检索字符限制、必填字段和可用工具
3. 触发工具 - 获取动态数据(标签、播放列表、看板等)
4. 创建帖子 - 在帖子中使用发现的数据
5. 分析 - 获取帖子分析;如果返回 {"missing": true},则使用 posts:missing + posts:connect 解决
这允许 AI 代理适应不同的平台,而无需硬编码知识。
JSON 模式
适用于包含多个平台和设置的复杂帖子:
bash
postiz posts:create --json complex-post.json
JSON 结构:json
{
"integrations": ["twitter-123", "linkedin-456"],
"posts": [
{
"provider": "twitter",
"post": [
{
"content": "Tweet version",
"image": ["twitter-image.jpg"]
}
]
},
{
"provider": "linkedin",
"post": [
{
"content": "LinkedIn version with more context...",
"image": ["linkedin-image.jpg"]
}
],
"settings": {
"__type": "linkedin",
"companyId": "company-123"
}
}
]
}
所有输出均为 JSON
每个命令都输出 JSON,便于解析:
bash
INTEGRATIONS=$(postiz integrations:list | jq -r '.')
REDDIT_ID=$(echo "$INTEGRATIONS" | jq -r '.[] | select(.identifier=="reddit") | .id')
线程支持
评论会根据平台自动转换为线程/回复:
- Twitter/X:推文线程
- Reddit:评论回复
- LinkedIn:帖子评论
- Instagram:首条评论
bash
postiz posts:create \
-c "Main post" \
-c "Comment 1" \
-c "Comment 2" \
-i "integration-id"
常见工作流程
带标签的 Reddit 帖子bash
#!/bin/bash
REDDIT_ID=$(postiz integrations:list | jq -r '.[] | select(.identifier=="reddit") | .id')
FLAIRS=$(postiz integrations:trigger "$REDDIT_ID" getFlairs -d '{"subreddit":"programming"}')
FLAIR_ID=$(echo "$FLAIRS" | jq -r '.output[0].id')
postiz posts:create \
-c "My post content" \
-s "2024-12-31T12:00:00Z" \
--settings "}}]}" \
-i "$REDDIT_ID"
YouTube 视频上传bash
#!/bin/bash
VIDEO=$(postiz upload video.mp4)
VIDEO_PATH=$(echo "$VIDEO" | jq -r '.path')
postiz posts:create \
-c "Video description..." \
-s "2024-12-31T12:00:00Z" \
--settings '{"title":"My Video","type":"public","tags":[{"value":"tech","label":"Tech"}]}' \
-m "$VIDEO_PATH" \
-i "youtube-id"
多平台活动bash
#!/bin/bash
postiz posts:create \
-c "Same content everywhere" \
-s "2024-12-31T12:00:00Z" \
-m "image.jpg" \
-i "twitter-id,linkedin-id,facebook-id"
批量排期bash
#!/bin/bash
DATES=("2024-02-14T09:00:00Z" "2024-02-15T09:00:00Z" "2024-02-16T09:00:00Z")
CONTENT=("Monday motivation 💪" "Tuesday tips 💡" "Wednesday wisdom 🧠")
for i in "${!DATES[@]}"; do
postiz posts:create \
-c "${CONTENT[$i]}" \
-s "${DATES[$i]}" \
-i "twitter-id"
done
文档
面向 AI 代理:
- SKILL.md - 完整的技能参考,包含模式和示例
深入指南:
- HOW_TO_RUN.md - 安装和设置方法
- COMMAND_LINE_GUIDE.md - 完整的命令语法参考
- PROVIDER_SETTINGS.md - 所有平台设置架构
- INTEGRATION_TOOLS_WORKFLOW.md - 工具工作流指南
- INTEGRATION_SETTINGS_DISCOVERY.md - 设置发现
- SUPPORTED_FILE_TYPES.md - 媒体格式参考
- PROJECT_STRUCTURE.md - 代码架构
- PUBLISHING.md - npm 发布指南
示例:
- examples/EXAMPLES.md - 全面的示例
- examples/ - 可直接使用的脚本和 JSON 文件
API 端点
CLI 与以下 Postiz API 端点交互:
| 端点 | 方法 | 用途 |
|----------|--------|---------|
| /public/v1/posts | POST | 创建帖子 |
| /public/v1/posts | GET | 列出帖子 |
| /public/v1/posts/:id | DELETE | 删除帖子 |
| /public/v1/posts/:id/settings | PUT | 更新帖子的提供商设置(合并;仅限未发布的帖子) |
| /public/v1/posts/:id/missing | GET | 从提供商获取缺失的内容 |
| /public/v1/posts/:id/release-id | PUT | 更新帖子的发布 ID |
| /public/v1/integrations | GET | 列出集成(可选 ?group= 过滤器) |
| /public/v1/groups | GET | 列出分组(客户) |
| /public/v1/integration-settings/:id | GET | 获取集成设置 |
| /public/v1/integration-trigger/:id | POST | 触发集成工具 |
| /public/v1/analytics/:integration | GET | 获取平台分析数据 |
| /public/v1/analytics/post/:postId | GET | 获取帖子分析数据 |
| /public/v1/upload | POST | 上传媒体 |
环境变量
| 变量 | 必需 | 默认值 | 描述 |
|----------|----------|---------|-------------|
| POSTIZ_API_KEY | 否 | - | 你的 Postiz API 密钥 |
| POSTIZ_API_URL | 否 | https://api.postiz.com | 自定义 API 端点 |
| POSTIZ_AUTH_SERVER | 否 | https://cli-auth.postiz.com | 自定义认证服务器 URL |
*需要 OAuth2(通过 postiz auth:login)或 POSTIZ_API_KEY 其中之一。
错误处理
CLI 提供清晰的错误消息和退出代码:
- 退出代码 0:成功
- 退出代码 1:发生错误
常见错误:
| 错误 | 解决方案 |
|-------|----------|
| Not authenticated | 运行 postiz auth:login 或设置 POSTIZ_API_KEY |
| Integration not found | 运行 integrations:list 获取有效的 ID |
| startDate/endDate required | 使用 ISO 8601 格式:"2024-12-31T12:00:00Z" |
| Invalid settings | 检查 integrations:settings 中的必填字段 |
| Tool not found | 检查 integrations:settings 输出中的可用工具 |
| Upload failed | 验证文件存在且格式受支持 |
| analytics:post 返回 {"missing": true} | 运行 posts:missing ,然后运行 posts:connect --release-id "" |
开发
项目结构
src/
├── index.ts # 使用 yargs 的 CLI 入口点
├── api.ts # PostizAPI 客户端类
├── config.ts # 配置(OAuth2 + API 密钥)
└── commands/
├── auth.ts # OAuth2 身份验证(login/logout/status)
├── posts.ts # 帖子管理命令
├── integrations.ts # 集成命令
├── analytics.ts # 分析命令
└── upload.ts # 媒体上传命令
examples/ # 示例脚本和 JSON 文件
package.json
tsconfig.json
tsup.config.ts # 构建配置
README.md # 本文件
SKILL.md # AI 代理参考
脚本
bash
pnpm run dev # 用于开发的监视模式
pnpm run build # 构建 CLI
pnpm run start # 运行构建后的 CLI
构建
CLI 使用 tsup 进行打包:
bash
pnpm run build
输出到 dist/:
- index.js - 带 shebang 的打包可执行文件
- index.js.map - 源映射
快速参考
bash
身份验证
postiz auth:login # OAuth2 设备流程
postiz auth:status # 检查身份验证
postiz auth:logout # 删除凭据
export POSTIZ_API_KEY=your_key # 或使用 API 密钥
发现
postiz integrations:list # 列出集成
postiz integrations:list --group "" # 列出某个组中的集成
postiz integrations:groups # 列出组(客户)
postiz integrations:settings # 获取设置
postiz integrations:trigger -d '{}' # 获取数据
发布(日期为必填项)
postiz posts:create -c "text" -s "2024-12-31T12:00:00Z" -i "id" # 简单
postiz posts:create -c "text" -s "2024-12-31T12:00:00Z" -t draft -i "id" # 草稿
postiz posts:create -c "text" -m "img.jpg" -s "2024-12-31T12:00:00Z" -i "id" # 带媒体
postiz posts:create -c "main" -c "comment" -s "2024-12-31T12:00:00Z" -i "id" # 带评论
postiz posts:create -c "text" -s "2024-12-31T12:00:00Z" --settings '{}' -i "id" # 平台特定
postiz posts:create --json file.json # 复杂
管理
postiz posts:list # 列出帖子
postiz posts:delete # 删除帖子
postiz posts:status --status draft # 移至草稿(停止工作流)
postiz posts:status --status schedule # 将草稿加入发布队列
postiz posts:settings --settings '{}' # 修补帖子的设置(合并;仅限 DRAFT/QUEUE)
postiz upload # 上传媒体
分析
postiz analytics:platform # 平台分析(7 天)
postiz analytics:platform -d 30 # 平台分析(30 天)
postiz analytics:post # 帖子分析(7 天)
postiz analytics:post -d 30 # 帖子分析(30 天)
如果 analytics:post 返回 {"missing": true},请按以下方式解决:
postiz posts:missing # 列出提供商内容
postiz posts:connect --release-id "" # 将内容连接到帖子
帮助
postiz --help # 显示帮助
postiz posts:create --help # 命令帮助
贡献
此 CLI 是 Postiz monorepo 的一部分。
贡献方式:
1. Fork 仓库
2. 创建功能分支
3. 在 apps/cli/ 中进行更改
4. 运行测试:pnpm run build
5. 提交 pull request
许可证
AGPL-3.0
链接
- 网站: postiz.com
- API 文档: docs.postiz.com
- GitHub: gitroomhq/postiz-app
- 问题反馈: 报告 bug
支持的平台
28+ 个平台,包括:
| 平台 | 集成工具 | 设置 |
|----------|------------------|----------|
| Twitter/X | getLists, getCommunities | who_can_reply_post |
| LinkedIn | getCompanies | companyId, carousel |
| Reddit | getFlairs, searchSubreddits | subreddit, title, flair |
| YouTube | getPlaylists, getCategories | title, type, tags, playlistId |
| TikTok | - | content_posting_method, privacy_level, comment, brand toggles, duet/stitch/video_made_with_ai (video only), autoAddMusic (photo only) |
| Instagram | - | post_type (post/story) |
| Facebook | getPages | - |
| Pinterest | getBoards, getBoardSections | - |
| Discord | getChannels | - |
| Slack | getChannels | - |
| 以及另外 18+ 个…… | | |
完整文档请参见 PROVIDER_SETTINGS.md。扫码进群