Skip to main content

Codely CLI Nightly

The CLI Nightly version is a daily automated snapshot build that has not undergone complete QA testing, regression, or stability verification. It is suitable for users who want to try new features early.

1. Installation Prerequisites​

Tool Dependency Check​

Windows System:

  • Requires PowerShell pre-installed (Windows 10/11 includes it by default)

Linux/macOS System:

  • Requires curl pre-installed (included in most distributions and macOS; verify with curl --version)

Node.js Version Requirements​

Requires Node.js 20.0 or higher. Verification command:

node -v

Version Upgrade Suggestions:

  • If the version is lower than 20.0, it's recommended to upgrade using the following tools:

  • Alternatively, download from the Node.js official website: https://nodejs.cn/download


2. One-Click Installation Steps​

Install via npm:

Windows Installation

# CLI Nightly version requires removing the public version first before installing
# npm remove -g @unity-china/codely-cli
iex (iwr "https://codesearch-plugins.tos-cn-shanghai.volces.com/codely-cli/install.ps1" -UseBasicParsing)

macOS Installation


# CLI Nightly version requires removing the public version first before installing

curl -fsSL "https://codesearch-plugins.tos-cn-shanghai.volces.com/codely-cli/install.sh" | bash
# mac users may need sudo

Tips:

  • macOS requires sudo. If you see a "developer cannot be verified" warning, go to System Settings → Privacy & Security to allow it.
  • Linux: If curl is missing, install it first:
    • Debian/Ubuntu: apt install curl
    • CentOS/RHEL: yum install curl
  • Windows: Use pwsh (PowerShell Core) if available. If you encounter execution policy restrictions, temporarily set the execution policy: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Performance Optimization:

  • Pre-install ripgrep to accelerate local search speed

3. Installation Verification​

After installation, execute the following command in the terminal/PowerShell to check the version number, which indicates successful installation:

codely --version

4. Login​

Enter the codely command in the terminal and press Enter. The system will automatically open the Tuanjie AI login authorization page in a new browser tab.

Complete the account login on the page. Return to the terminal, and you can start using all codely features.