{
  "schemaVersion": "1.0",
  "item": {
    "slug": "near-cli-tools",
    "name": "NEAR Protocol CLI installation and setup guide.",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/cuongdcdev/near-cli-tools",
    "canonicalUrl": "https://clawhub.ai/cuongdcdev/near-cli-tools",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/near-cli-tools",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=near-cli-tools",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "package.json",
      "README.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "near-cli-tools",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T23:01:56.762Z",
      "expiresAt": "2026-05-12T23:01:56.762Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=near-cli-tools",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=near-cli-tools",
        "contentDisposition": "attachment; filename=\"near-cli-tools-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "near-cli-tools"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/near-cli-tools"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/near-cli-tools",
    "agentPageUrl": "https://openagent3.xyz/skills/near-cli-tools/agent",
    "manifestUrl": "https://openagent3.xyz/skills/near-cli-tools/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/near-cli-tools/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "NEAR Tools - NEAR CLI Installation & Setup",
        "body": "CRITICAL FOR AGENTS: Before calling any near command, you MUST find the absolute path of the near binary (e.g., using which near or whereis near) and use that absolute path in your commands. This ensures consistency across different shell environments.\n\nThis skill provides comprehensive guidance for installing and setting up the NEAR Protocol CLI (near-cli-rs) on any platform."
      },
      {
        "title": "Installation Methods",
        "body": "Choose the installation method that works best for your system:"
      },
      {
        "title": "Option 1: Shell Script (Linux, macOS, WSL)",
        "body": "Best for: Most Linux and macOS users\n\ncurl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh\n\nif not add near to PATH:\nfind the near binary by whereis near\n\nAdd to PATH:\n\n# Temporary (current session only)\nexport PATH=\"$HOME/.cargo/bin:$PATH\"\n\n# Permanent (add to your shell config)\necho 'export PATH=\"$HOME/.cargo/bin:$PATH\"' >> ~/.bashrc  # For bash\necho 'export PATH=\"$HOME/.cargo/bin:$PATH\"' >> ~/.zshrc   # For zsh\n\nReload your shell or run:\n\nsource ~/.bashrc   # or ~/.zshrc"
      },
      {
        "title": "Option 2: npm/npx (Any Platform with Node.js)",
        "body": "Best for: JavaScript/TypeScript developers, Windows users\n\nRun directly without installation:\n\nnpx near-cli-rs\n\nInstall globally:\n\nnpm install -g near-cli-rs\n\nOr add to package.json:\n\nnpm install --save-dev near-cli-rs\n\nThen use:\n\nnpx near-cli-rs"
      },
      {
        "title": "Option 3: Windows Installer",
        "body": "Best for: Windows users without Node.js or Cargo\n\nVisit: https://github.com/near/near-cli-rs/releases/latest\nDownload the Windows MSI installer (e.g., near-cli-rs-installer-x64.msi)\nDouble-click the installer and follow the wizard\nThe installer automatically adds NEAR CLI to your PATH"
      },
      {
        "title": "Option 4: Cargo (Rust)",
        "body": "Best for: Rust developers, custom builds\n\nPrerequisites: Install Rust first from https://rustup.rs/\n\nInstall:\n\ncargo install near-cli-rs\n\nOr install latest from git:\n\ncargo install --git https://github.com/near/near-cli-rs\n\nLinux users may need:\n\n# Debian/Ubuntu\nsudo apt install libudev-dev\n\n# Fedora/Red Hat\nsudo dnf install libudev-devel"
      },
      {
        "title": "Verification",
        "body": "After installation, verify it's working:\n\nnear --version\n\nExpected output:\n\nnear-cli-rs 0.23.6  # or newer version\n\nIf the command is not found:\n\nMake sure the installation directory is in your PATH:\necho $PATH | grep cargo  # Check if cargo/bin is in PATH\n\n\n\nIf not found, add it manually:\nexport PATH=\"$HOME/.cargo/bin:$PATH\"\n\n\n\nTest again:\nnear --version"
      },
      {
        "title": "View Configuration Location",
        "body": "near --help\n# Output will show where config is stored, typically:\n# \"near CLI configuration is stored in ~/.config/near-cli/config.toml\""
      },
      {
        "title": "View Available Commands",
        "body": "near --help\n\nMain command groups:\n\naccount - Manage accounts (view, create, import, export)\ntokens - Manage token assets (NEAR, FT, NFT)\nstaking - Manage staking (view, add, withdraw)\ncontract - Manage smart contracts (deploy, call functions)\ntransaction - Operate transactions\nconfig - Manage connections in config.toml"
      },
      {
        "title": "View Your Account Summary",
        "body": "If you already have a NEAR account:\n\nnear account view-account-summary <your-account.near> network-config mainnet now\n\nExample:\n\nnear account view-account-summary near network-config mainnet now"
      },
      {
        "title": "Import an Existing Account",
        "body": "If you have a seed phrase or key:\n\nnear account import-account\n\nFollow the interactive prompts to sign in."
      },
      {
        "title": "Create a New Account",
        "body": "If you don't have an account yet:\n\nnear account create-account\n\nFollow the prompts to create a new account (requires existing account to fund it)."
      },
      {
        "title": "\"near: command not found\"",
        "body": "Cause: NEAR CLI is not in your PATH\n\nSolution:\n\n# For shell script installation\nexport PATH=\"$HOME/.cargo/bin:$PATH\"\n\n# For npm global installation\nexport PATH=\"$(npm config get prefix)/bin:$PATH\"\n\n# Make it permanent by adding to ~/.bashrc or ~/.zshrc"
      },
      {
        "title": "\"Permission denied\" when running installer",
        "body": "Cause: Lack of execute permissions\n\nSolution:\n\nchmod +x near-cli-rs-installer.sh\n./near-cli-rs-installer.sh"
      },
      {
        "title": "\"near-cli-rs-installer.sh: No such file\"",
        "body": "Cause: Download didn't work or file name changed\n\nSolution:\n\n# Check the releases page manually\ncurl -s https://api.github.com/repos/near/near-cli-rs/releases/latest | grep \"browser_download_url\" | grep \"installer.sh\""
      },
      {
        "title": "Installation hangs or is slow",
        "body": "Cause: Network issues or slow connection\n\nSolution:\n\n# Use a longer timeout with curl\ncurl --proto '=https' --tlsv1.2 -LsSf --connect-timeout 30 --max-time 300 https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh"
      },
      {
        "title": "Version Information",
        "body": "Latest stable version: 0.23.6 (as of documentation date)\nCheck for updates: Visit https://github.com/near/near-cli-rs/releases\nUpdate: Re-run the installation command with the desired version"
      },
      {
        "title": "Additional Resources",
        "body": "Official GitHub: https://github.com/near/near-cli-rs\nNEAR Protocol Docs: https://docs.near.org/\nNEAR Stack Overflow: https://stackoverflow.com/questions/tagged/nearprotocol\nNEAR Discord: https://discord.gg/near"
      },
      {
        "title": "Quick Reference",
        "body": "# Install (Shell script)\ncurl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh\n\n# Install (npx)\nnpx near-cli-rs\n\n# Verify installation\nnear --version\n\n# View account\nnear account view-account-summary <account-id> network-config mainnet now\n\n# Import account\nnear account import-account\n\n# Help\nnear --help\nnear account --help\nnear tokens --help"
      }
    ],
    "body": "NEAR Tools - NEAR CLI Installation & Setup\n\nCRITICAL FOR AGENTS: Before calling any near command, you MUST find the absolute path of the near binary (e.g., using which near or whereis near) and use that absolute path in your commands. This ensures consistency across different shell environments.\n\nThis skill provides comprehensive guidance for installing and setting up the NEAR Protocol CLI (near-cli-rs) on any platform.\n\nInstallation Methods\n\nChoose the installation method that works best for your system:\n\nOption 1: Shell Script (Linux, macOS, WSL)\n\nBest for: Most Linux and macOS users\n\ncurl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh\n\n\nif not add near to PATH: find the near binary by whereis near\n\nAdd to PATH:\n\n# Temporary (current session only)\nexport PATH=\"$HOME/.cargo/bin:$PATH\"\n\n# Permanent (add to your shell config)\necho 'export PATH=\"$HOME/.cargo/bin:$PATH\"' >> ~/.bashrc  # For bash\necho 'export PATH=\"$HOME/.cargo/bin:$PATH\"' >> ~/.zshrc   # For zsh\n\n\nReload your shell or run:\n\nsource ~/.bashrc   # or ~/.zshrc\n\nOption 2: npm/npx (Any Platform with Node.js)\n\nBest for: JavaScript/TypeScript developers, Windows users\n\nRun directly without installation:\n\nnpx near-cli-rs\n\n\nInstall globally:\n\nnpm install -g near-cli-rs\n\n\nOr add to package.json:\n\nnpm install --save-dev near-cli-rs\n\n\nThen use:\n\nnpx near-cli-rs\n\nOption 3: Windows Installer\n\nBest for: Windows users without Node.js or Cargo\n\nVisit: https://github.com/near/near-cli-rs/releases/latest\nDownload the Windows MSI installer (e.g., near-cli-rs-installer-x64.msi)\nDouble-click the installer and follow the wizard\nThe installer automatically adds NEAR CLI to your PATH\nOption 4: Cargo (Rust)\n\nBest for: Rust developers, custom builds\n\nPrerequisites: Install Rust first from https://rustup.rs/\n\nInstall:\n\ncargo install near-cli-rs\n\n\nOr install latest from git:\n\ncargo install --git https://github.com/near/near-cli-rs\n\n\nLinux users may need:\n\n# Debian/Ubuntu\nsudo apt install libudev-dev\n\n# Fedora/Red Hat\nsudo dnf install libudev-devel\n\nVerification\n\nAfter installation, verify it's working:\n\nnear --version\n\n\nExpected output:\n\nnear-cli-rs 0.23.6  # or newer version\n\n\nIf the command is not found:\n\nMake sure the installation directory is in your PATH:\n\necho $PATH | grep cargo  # Check if cargo/bin is in PATH\n\n\nIf not found, add it manually:\n\nexport PATH=\"$HOME/.cargo/bin:$PATH\"\n\n\nTest again:\n\nnear --version\n\nConfiguration\nView Configuration Location\nnear --help\n# Output will show where config is stored, typically:\n# \"near CLI configuration is stored in ~/.config/near-cli/config.toml\"\n\nView Available Commands\nnear --help\n\n\nMain command groups:\n\naccount - Manage accounts (view, create, import, export)\ntokens - Manage token assets (NEAR, FT, NFT)\nstaking - Manage staking (view, add, withdraw)\ncontract - Manage smart contracts (deploy, call functions)\ntransaction - Operate transactions\nconfig - Manage connections in config.toml\nFirst Steps\nView Your Account Summary\n\nIf you already have a NEAR account:\n\nnear account view-account-summary <your-account.near> network-config mainnet now\n\n\nExample:\n\nnear account view-account-summary near network-config mainnet now\n\nImport an Existing Account\n\nIf you have a seed phrase or key:\n\nnear account import-account\n\n\nFollow the interactive prompts to sign in.\n\nCreate a New Account\n\nIf you don't have an account yet:\n\nnear account create-account\n\n\nFollow the prompts to create a new account (requires existing account to fund it).\n\nTroubleshooting\n\"near: command not found\"\n\nCause: NEAR CLI is not in your PATH\n\nSolution:\n\n# For shell script installation\nexport PATH=\"$HOME/.cargo/bin:$PATH\"\n\n# For npm global installation\nexport PATH=\"$(npm config get prefix)/bin:$PATH\"\n\n# Make it permanent by adding to ~/.bashrc or ~/.zshrc\n\n\"Permission denied\" when running installer\n\nCause: Lack of execute permissions\n\nSolution:\n\nchmod +x near-cli-rs-installer.sh\n./near-cli-rs-installer.sh\n\n\"near-cli-rs-installer.sh: No such file\"\n\nCause: Download didn't work or file name changed\n\nSolution:\n\n# Check the releases page manually\ncurl -s https://api.github.com/repos/near/near-cli-rs/releases/latest | grep \"browser_download_url\" | grep \"installer.sh\"\n\nInstallation hangs or is slow\n\nCause: Network issues or slow connection\n\nSolution:\n\n# Use a longer timeout with curl\ncurl --proto '=https' --tlsv1.2 -LsSf --connect-timeout 30 --max-time 300 https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh\n\nVersion Information\nLatest stable version: 0.23.6 (as of documentation date)\nCheck for updates: Visit https://github.com/near/near-cli-rs/releases\nUpdate: Re-run the installation command with the desired version\nAdditional Resources\nOfficial GitHub: https://github.com/near/near-cli-rs\nNEAR Protocol Docs: https://docs.near.org/\nNEAR Stack Overflow: https://stackoverflow.com/questions/tagged/nearprotocol\nNEAR Discord: https://discord.gg/near\nQuick Reference\n# Install (Shell script)\ncurl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh\n\n# Install (npx)\nnpx near-cli-rs\n\n# Verify installation\nnear --version\n\n# View account\nnear account view-account-summary <account-id> network-config mainnet now\n\n# Import account\nnear account import-account\n\n# Help\nnear --help\nnear account --help\nnear tokens --help"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/cuongdcdev/near-cli-tools",
    "publisherUrl": "https://clawhub.ai/cuongdcdev/near-cli-tools",
    "owner": "cuongdcdev",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/near-cli-tools",
    "downloadUrl": "https://openagent3.xyz/downloads/near-cli-tools",
    "agentUrl": "https://openagent3.xyz/skills/near-cli-tools/agent",
    "manifestUrl": "https://openagent3.xyz/skills/near-cli-tools/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/near-cli-tools/agent.md"
  }
}