Skip to main content

Changelog

[3.9.2] 2026-11-09​

  • [Added] login: Append allowNoEnv=true to auth links uniformly (withAllowNoEnv added in getAuthUrl hook, compatible with both direct /dev#/cli-auth and /login?_redirect_uri redirect forms; when _redirect_uri is not the last parameter, only rewrite its value without swallowing outer parameters; skip when self-built auth endpoint endpoint is non-empty), accounts without environment are no longer blocked by auth page, decoupling login from environment: login completes on success, without environment only print hint (for domestic site give environment creation address buy.cloud.tencent.com/lowcode?buyType=tcb, for international site temporarily keep original console entry) and detect other regions to distinguish 'no environment in current region' hint -r <region> from 'no environment for account' giving creation address; simultaneously change missing envId error text to hint using -e <envId> to specify or tcb env list to view, and add env_check/no_env reporting for tcb_cli_login_step
  • [Fixed] env: Align usage query with 19 modules of console 'Feature Usage Overview': add missing CBF / Gateway / CLS / EO / STORAGE_EO / CI (where CLS logs were previously missed), merge APIInvocation + HTTPInvocation into Gateway to avoid duplicate environment invocation billing, return 0 instead of error for unopened modules; change --type help list to generate from USAGE_MODULES (originally iterating MODULE_NAME_MAP would cause inconsistency)

[3.9.1] 2026-11-05​

  • [Added] logs: Add -m, --module <module> parameter for tcb logs search (accepted values function / tcbr / database / rdb / model / workflow / automation / auth / llm / app / gateway / http-gateway / cloudbase-api / mini-app-api); when -q is not passed, fetch default query string per module from MODULE_QUERIES (e.g. function changed from log:"START RequestId*" to log:"Report RequestId*"); extend display layer from three categories (cloud function/cloud run/general) to render separately by 14 resource types; move call aggregation judgment from page-level to row-level, mixed log -q '*' correctly distinguishes call view and log list, and its --json output changes from call array to raw LogResults (meta.returnCount consistent with human-readable format); change --limit from silent truncation by parseInt to strict integer validation, and change log service activation timeout error code from API_ERROR / netError to LOG_SERVICE_TIMEOUT

  • [Fixed] report: Fix invalid identity prompt text cloudbase login → tcb login; move envId injection before login state validation (avoid missing environment identifier in error events like "no valid identity information", and do not inject empty string when -e not specified); add method dimension to login funnel tcb_cli_login_step (web / key / cloudbase_api_key, uniformly mapped by new resolveLoginDimension, key/API Key login no longer recorded as device); when declarative deployment partially fails, report tcb_cli_error with added DEPLOY_PARTIAL_FAILED and exit_code

  • [Fixed] env: Add PostgreSQL and Token to module list for tcb env usage / tcb env info --type (USAGE_MODULES / MODULE_NAME_MAP each add two items, METRIC_NAME_MAP adds PostgreSQL's HourlyCU / HourlyStorage, Token expands by model to InputToken. / OutputToken. / CacheToken.<model>)

[3.9.0] 2026-11-03​

  • [Added] db: Add PostgreSQL Realtime management commands tcb db pg realtime enable / tcb db pg realtime get / tcb db pg realtime set (set only sends explicitly specified config items; --json must be used with --yes; error wrapper passes through message and requestId and is compatible with RequestId, ERROR_TYPES adds missingParam)
  • [Fixed] Fix false update prompt reporting a new version identical to current after upgrade (both reading and writing cache now compare remote latest with pkg.version using semver.gt, no longer relying on info.type or distTag fallback values)
  • [Changed] BREAKING app: Remove implicit build from declarative deploy tcb deploy (app/hosting only upload existing artifacts); consolidate build to tcb app build / tcb app deploy; buildCommand / installCommand / framework in cloudbaserc only used to infer artifact directory and no longer executed; report BUILD_OUTPUT_NOT_FOUND when artifacts missing, add buildAppOutputInfo (root / outputDir) to app item in plan under --json, upgrade dependency @cloudbase/manager-node from ~5.9.0 to ~5.10.0