Projects and logs
tc ls
Lists your projects with their production URL and latest deployment.
tc ls [--json]
Output
expenses https://expenses.apps.contoso.com d9a1b7 ready
budget https://budget.apps.contoso.com (no deployments)
JSON: an array of projects: { name, status, url, productionDeploymentId, liveDeploymentId, latestDeployment, lifecycle, createdAt }.
tc status
Project status and the 10 most recent deployments. * marks the one serving production.
tc status [--project NAME] [--json]
Output
expenses ready https://expenses.apps.contoso.com
* d9a1b7 ready node https://expenses--d9a1b7.apps.contoso.com
d8f3a2 ready node https://expenses--d8f3a2.apps.contoso.com
d7c0e1 failed node https://expenses--d7c0e1.apps.contoso.com (npm run build exited 1)
JSON: the project plus deployments, perms (what you may do) and owner.
Errors: PROJECT_NOT_FOUND if the project doesn't exist or you can't see it.
tc logs
Build and runtime logs for a deployment. Default: the live one, both kinds, last 200 lines.
tc logs [--project NAME] [--build | --runtime] [--deployment ID] [--tail N] [--json]
| Flag | Description |
|---|---|
--build | Build log only |
--runtime | Runtime log only |
--deployment ID, -d | A specific deployment |
--tail N, -n | Lines, 1–5000. Default 200. |
Output
--- build (d9a1b7) ---
…
--- runtime (d9a1b7) ---
listening on 8080
JSON: { "deploymentId": "…", "build": "…", "runtime": "…" }.
Errors: NO_DEPLOYMENTS, DEPLOYMENT_NOT_FOUND.
Was this page helpful?