{"id":28318,"library":"tccli","title":"Tencent Cloud CLI","description":"Official CLI for Tencent Cloud API services. Version 3.1.88.1. Maintained actively by Tencent Cloud. Follows a monthly release cadence with service updates and bug fixes.","status":"active","version":"3.1.88.1","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-cli","tags":["cloud","cli","tencentcloud","api"],"install":[{"cmd":"pip install tccli","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"SDK used for API calls","package":"tencentcloud-sdk-python","optional":false}],"imports":[{"note":"Direct import of top-level module may fail; use submodule imports","wrong":"import tccli","symbol":"tccli","correct":"from tccli import configure"}],"quickstart":{"code":"from tccli import configure\nconfigure.set(SecretId=os.environ.get('TENCENT_SECRET_ID', ''), SecretKey=os.environ.get('TENCENT_SECRET_KEY', ''), region='ap-guangzhou')\nfrom tccli.services.cvm import DescribeInstances\nresult = DescribeInstances()\nprint(result)","lang":"python","description":"Configure credentials from environment variables and call CVM DescribeInstances."},"warnings":[{"fix":"Use `from tccli.services.service_name import ...`","message":"In v3.0+, the import path for service modules changed from `tccli.services.xxx` to `tccli.services.xxx`. Old imports like `from tccli.cvm import ...` will fail.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Upgrade Python to 3.7 or later","message":"Python 3.6 support dropped in v3.1.0. Requires Python 3.7+.","severity":"breaking","affected_versions":">=3.1.0"},{"fix":"Always call `configure.set()` at the start of your script or use environment variables.","message":"Credentials must be set via `configure.set()` before any service call. Calling API without configuration raises 'SecretId cannot be empty'.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Set credentials via `configure.set(SecretId='...', SecretKey='...')` or export TENCENT_SECRET_ID and TENCENT_SECRET_KEY environment variables.","cause":"Missing or incorrect credentials configuration.","error":"tccli.exceptions.TencentCloudSDKException: [TencentCloudSDKException] code: InvalidParameter.RepeatedParameter, message: SecretId cannot be empty."},{"fix":"Install tccli with `pip install tccli` and use `from tccli.services import ...`","cause":"Old import pattern used or package not installed correctly.","error":"ModuleNotFoundError: No module named 'tccli.services'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}