tencent cloud

Feedback

Installing TCCLI

Last updated: 2023-05-30 10:39:35
    This document describes how to install Tencent Cloud Command Line Interface (TCCLI).

    Prerequisites

    You have installed the Python environment and pip tool.
    Note:
    Python 2.7 or later is required. For more information, visit the Python website and pip website.
    TCCLI depends on the TencentCloudApi Python SDK. If the version of the SDK is earlier than that of TCCLI, the SDK is automatically upgraded during TCCLI installation. Check the latest TCCLI version at GitHub.

    Directions

    You can install TCCLI in the following ways:
    Using pip (recommended)
    Using source code
    Using Homebrew
    1. The installation command is the same on Windows, macOS, and Linux. Open the command line window on your operating system.
    2. Run the following command to install TCCLI:
    sudo pip install tccli
    Note:
    If you upgrade TCCLI from a version earlier than 3.0.252.3, run the following commands:
    sudo pip uninstall tccli jmespath
    sudo pip install tccli
    3. After the installation is completed, run the following command to check whether the installation is successful:
    tccli --version
    Run the following commands in sequence to download the TCCLI project from tencentcloud-cli and to install TCCLI by using the setup.py script.
    git clone https://github.com/TencentCloud/tencentcloud-cli.git
    cd tencentcloud-cli
    python setup.py install
    Note:
    This method applies only to macOS. You need to install Homebrew first. See the installation method at the Homebrew website.
    Run the following commands in sequence:
    brew tap tencentcloud/tccli
    brew install tccli
    You can run the following command to upgrade TCCLI:
    brew upgrade
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support