Title: cli: --output-format flag is not always honored · Issue #893 · stackitcloud/stackit-cli · GitHub
Open Graph Title: cli: --output-format flag is not always honored · Issue #893 · stackitcloud/stackit-cli
X Title: cli: --output-format flag is not always honored · Issue #893 · stackitcloud/stackit-cli
Description: Description The --output-format flag is not always honored. For example, if one runs a stackit ske cluster list -o json on a project that has SKE enabled but where no clusters yet exist, the CLI only outputs a plaintext error. With the c...
Open Graph Description: Description The --output-format flag is not always honored. For example, if one runs a stackit ske cluster list -o json on a project that has SKE enabled but where no clusters yet exist, the CLI on...
X Description: Description The --output-format flag is not always honored. For example, if one runs a stackit ske cluster list -o json on a project that has SKE enabled but where no clusters yet exist, the CLI on...
Opengraph URL: https://github.com/stackitcloud/stackit-cli/issues/893
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cli: --output-format flag is not always honored","articleBody":"## Description\n\nThe `--output-format` flag is not always honored. \nFor example, if one runs a `stackit ske cluster list -o json` on a project that has SKE enabled but where no clusters yet exist, the CLI only outputs a plaintext error.\nWith the current behavior, it is not easily possible to use the STACKIT cli in scripts because one cannot always parse the output correctly.\n\n## Steps to reproduce\n\u003c!-- Please provide us with the steps to reproduce the behavior. --\u003e\n\n1. Run `stackit ske cluster list --project-id=… -o json` on a project where SKE is enabled but where no cluster has yet been created\n\n## Actual behavior\n\nThe CLI exits with exit code 0 (which is fine) and the following plaintext output:\n```\nNo clusters found for project \"…\"\n```\n\n## Expected behavior\n\nThe CLI should exit with code 0 and print `[]` to stdout.\n\n## Environment\n - OS: Linux\n - Version of STACKIT CLI (see `stackit --version`): `v0.32.0`\n\n","author":{"url":"https://github.com/lilioid","@type":"Person","name":"lilioid"},"datePublished":"2025-07-28T13:32:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/893/stackit-cli/issues/893"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1ec33947-39e8-0a4d-6b9a-d535c18dafa8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E30:B9CC2:259A6C8:31C4D18:69819980 |
| html-safe-nonce | d1447639dd629dbee27e26632f7db825d0f9aa4d4514a7ce1367a24f50ab8389 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTMwOkI5Q0MyOjI1OUE2Qzg6MzFDNEQxODo2OTgxOTk4MCIsInZpc2l0b3JfaWQiOiIzNDYwNDkyNDkyNjAyOTcyNTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 17a3c8f70f0b25d359425c584c93a41524d7c8e6568b410ed710e6895ccbac4b |
| hovercard-subject-tag | issue:3269937549 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackitcloud/stackit-cli/893/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d7de8af84f0fe6a1f153b7f90b659d6d9eb72ec3562b01342bd229d3544e470/stackitcloud/stackit-cli/issues/893 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d7de8af84f0fe6a1f153b7f90b659d6d9eb72ec3562b01342bd229d3544e470/stackitcloud/stackit-cli/issues/893 |
| og:image:alt | Description The --output-format flag is not always honored. For example, if one runs a stackit ske cluster list -o json on a project that has SKE enabled but where no clusters yet exist, the CLI on... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lilioid |
| hostname | github.com |
| expected-hostname | github.com |
| None | e137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6 |
| turbo-cache-control | no-preview |
| go-import | github.com/stackitcloud/stackit-cli git https://github.com/stackitcloud/stackit-cli.git |
| octolytics-dimension-user_id | 55577607 |
| octolytics-dimension-user_login | stackitcloud |
| octolytics-dimension-repository_id | 699237555 |
| octolytics-dimension-repository_nwo | stackitcloud/stackit-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 699237555 |
| octolytics-dimension-repository_network_root_nwo | stackitcloud/stackit-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd58d68a7813bbec9c91422c8c35f4af33832d70 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width