This topic describes how to install, sign in to, and use Qoder CLI CN.
Supported operating systems: macOS, Linux, and Windows
You can install Qoder CLI CN using one of the following methods:
macOS / Linux
Windows PowerShell
Windows CMD
Homebrew (macOS and Linux)
You must authenticate before using Qoder CLI CN. The CLI automatically prompts you to sign in the first time you run a command.
There are two primary authentication methods:
Choose a sign-in method:
Method 2: Sign in using an environment variable
For non-interactive sessions or automated environments, such as CI/CD pipelines, you can authenticate by setting an environment variable.
Now that you're signed in, see Using the CLI to learn how to use Qoder CLI CN.
Automatic updates are on by default. You can also manually update the CLI using one of the following methods:
cURL
Homebrew (macOS and Linux)
NPM
Use the built-in update feature
To disable automatic updates, in the
To sign out of Qoder CLI CN, run the
Install
Supported operating systems: macOS, Linux, and Windows
You can install Qoder CLI CN using one of the following methods:
macOS / Linux
After installation, run the following command. If the CLI version number is displayed, the installation was successful.
Sign in
You must authenticate before using Qoder CLI CN. The CLI automatically prompts you to sign in the first time you run a command.
There are two primary authentication methods:
- Interactive sign-in (recommended)
- Environment variables (for automated scripts)
- Sign in with browser: This opens a sign-in page in your default browser to complete authentication.
- Sign in with Qoder CN Personal Access Token: Paste your Qoder CN Personal Access Token directly into the terminal when prompted.
You can obtain your Qoder CN Personal Access Token from this page: https://qoder.cn/account/integrations
If you set a valid token using both the
/login
command and an environment variable, the token from the
/login
command takes precedence.
Usage
Now that you're signed in, see Using the CLI to learn how to use Qoder CLI CN.
Update
Automatic updates are on by default. You can also manually update the CLI using one of the following methods:
cURL
~/.qoder-cn.json file, set autoUpdates to false.
Sign out
To sign out of Qoder CLI CN, run the /logout command.
If you authenticated using the
QODERCN_PERSONAL_ACCESS_TOKEN
environment variable, you must unset it before running the
/logout
command.