Skip to content
Back to Docs Home返回文档首页ドキュメントホームに戻る

Install the FastMoss CLI安装 FastMoss CLIFastMoss CLI をインストール

Six short steps, from nothing installed to your agent pulling live TikTok Shop data. No prior command-line experience needed — copy each command exactly as shown.六个小步骤,从零到你的 agent 能拉取实时 TikTok 电商数据。不需要任何命令行经验——每条指令照着复制即可。6つの簡単なステップで、何もインストールしていない状態からエージェントが実際の TikTok ショップデータを取得できるようになります。コマンドラインの経験は不要です——各コマンドをそのままコピーしてください。

Before you start — two things开始前——先备好两样东西始める前に — 2つの準備

1. Node.js. The CLI runs on Node (it gives you the npm command). Open your terminal and type npm -v. If you see a version number, you're set. If it says "command not found", install Node from 1. Node.js。CLI 运行在 Node 上(它提供 npm 指令)。打开终端输入 npm -v,若显示版本号就没问题;若提示「command not found」,先到 1. Node.js。CLI は Node 上で動作します(npm コマンドを使用)。ターミナルを開いて npm -v と入力。バージョン番号が表示されれば OK。「command not found」と表示された場合は、nodejs.org first. 安装 Node。 から Node をインストールしてください。

2. A FastMoss API key. You'll paste it in Step 3. Don't have one? 2. 一个 FastMoss API Key。第 3 步会用到。还没有?2. FastMoss API キー。ステップ3で使用します。まだお持ちでないですか?Grab one — free 3-day trial ↗去领取——免费 3 天试用 ↗無料トライアルを入手 ↗

  1. Install the CLI. In your terminal, run the command below. -g installs it globally so you can call fastmoss from anywhere. This takes a few seconds.安装 CLI。在终端执行下面这条指令。-g 表示全局安装,之后在任何地方都能调用 fastmoss。大约几秒钟。CLI をインストール。ターミナルで以下のコマンドを実行。-g はグローバルインストールを意味し、どこからでも fastmoss を呼び出せるようになります。数秒かかります。
    npm install -g @fastmoss/cli@latest

    Don't want to install anything? Run npx -y @fastmoss/cli@latest instead — it downloads and runs the CLI once, nothing left behind.不想安装任何东西?改用 npx -y @fastmoss/cli@latest——它会临时下载并运行 CLI 一次,用完不留痕迹。インストールしたくない場合:代わりに npx -y @fastmoss/cli@latest を実行——CLI を一時的にダウンロードして実行し、痕跡を残しません。

  2. Start the CLI. Type fastmoss and press Enter. You'll drop into the FastMoss prompt — that fastmoss > is where every command below goes.启动 CLI。输入 fastmoss 并回车。你会进入 FastMoss 提示符——下面每条指令都在这个 fastmoss > 里输入。CLI を起動。fastmoss と入力して Enter。FastMoss プロンプトが表示されます——以下のコマンドはすべてこの fastmoss > に入力します。
    fastmoss
    $ fastmoss
    Interactive mode started. Type help to view commands, or exit to quit.
    fastmoss >
  3. Connect your API key. Easiest way: paste your key into the slot below, click Copy, then paste the whole line at the fastmoss > prompt and press Enter. It's saved for every future session.连接你的 API Key。最简单的做法:把你的 Key 贴进下面的空格,点 Copy,然后把整行贴到 fastmoss > 提示符后回车。之后每次都会自动记住。API キーを接続。簡単な方法:キーを下の欄に貼り付け、Copy をクリックし、行全体を fastmoss > プロンプトに貼り付けて Enter。以後のセッションで保存されています。
    set api-key 1
    2
    Paste your own API key into the slot before copying — the command won't work with it left blank.复制前先把你自己的 API Key 贴进空格——留空的话指令无法运作。Get your key ↗获取你的 Key ↗キーを入手 ↗

    Prefer not to show your key on screen? Type login instead and paste the key when it asks — your input stays hidden. Same result, saved the same way.不想让 Key 显示在屏幕上?改输入 login,在它提示时粘贴 Key——输入内容会被隐藏。效果相同,同样会保存。キーを画面に表示したくない場合?代わりに login と入力し、要求されたときにキーを貼り付け——入力は非表示になります。同じ結果で、同じ方法で保存されます。

  4. Check you're connected. Run whoami to confirm the key is recognized, then tools to see everything your agent can now call.确认已连接。执行 whoami 确认 Key 已被识别,再执行 tools 看看你的 agent 现在能调用哪些工具。接続を確認。whoami を実行してキーが認識されていることを確認し、次に tools を実行してエージェントが呼び出せるすべてのツールを表示。
    whoami
    tools

    whoami should print your account as JSON. If it says you're not logged in, redo Step 3 — the key slot was probably left blank.whoami 会以 JSON 打印你的账号。若提示未登录,请重做第 3 步——多半是 Key 空格没填。whoami はアカウントを JSON で表示します。ログインしていないと表示された場合は、ステップ3をやり直してください——キー欄が空欄だった可能性があります。

  5. Set the language (optional). Switch the CLI's messages between English and Chinese.设置语言(可选)。在英文与中文之间切换 CLI 的提示信息。言語設定(オプション)。CLI のメッセージを英語と中国語で切り替えます。
    set language en-US
    set language zh-CN
  6. You're done — try it. From here your agent calls tools on its own. To test it yourself, run a tool directly (real US beauty-creator search below), or type help for the full list. exit leaves the CLI.完成了——试一下。从现在起,你的 agent 会自己调用工具。想自己测试,可直接跑一个工具(下面是真实的美区美妆达人搜索),或输入 help 看完整清单。输入 exit 退出 CLI。完了 — 試してみましょう。これでエージェントは自分でツールを呼び出せるようになります。自分でテストするには、ツールを直接実行するか(以下は実際の米国ビューティークリエイター検索)、help で完全なリストを表示。exit で CLI を終了します。
    creator_search --args '{"keywords":"beauty","region":"US"}'

    General form for any tool: call --tool <name> --args '<json>'. See the 调用任意工具的通用写法:call --tool <name> --args '<json>'。完整清单见 任意のツールの一般形式:call --tool <name> --args '<json>'。詳細は Help page帮助页面ヘルプページ for every command. をご覧ください。

Community & support社区与支持コミュニティとサポート

Got stuck? Reach us on Discord, our Lark group, or by email — whichever works for you.遇到问题?通过 Discord、飞书群或邮件联系我们,哪种方便用哪种。行き詰まりましたか?Discord、Larks グループ、またはメールでお問い合わせください。
Join our Discord加入 DiscordDiscord に参加
Real-time help from the FastMoss community.在 FastMoss 社区获取实时帮助。FastMoss コミュニティからリアルタイムでヘルプを得られます。
Open Discord →前往 Discord →Discord を開く →
Email support邮件联系メールサポート
Send us an email — we reply within 24 hours.给我们发邮件,24 小时内回复。メールをお送りください。24 時間以内に返信します。