Skip to content

Add an api command#400

Merged
tomasmik merged 2 commits intomainfrom
add-api-command
Mar 17, 2026
Merged

Add an api command#400
tomasmik merged 2 commits intomainfrom
add-api-command

Conversation

@tomasmik
Copy link
Copy Markdown
Contributor

Description

This is an condensed version of #391

It works pretty much the same but does not offer any dedicated schema parsing. Instead you can parse it and explore it yourself using the graphql API. In my opinion that is sufficient.

./spacectl api 'stacks { id name }' --raw
{"data":{"stacks":[{"id":"master_stack","name":"master_stack"},{"id":"prod-infra-ireland","name":
./spacectl api \
    --variables '{"id":"aa","provider":"BITBUCKET_CLOUD","searchUsersSuggestionsInput":{"fields":null,"fullTextSearch":null,"predicates":null}}' < query
{
  "data": {
    "vcsIntegration": {
      "__typename": "VCSIntegration",
      "description": "",
      "details": {
        "__typename": "BitbucketCloudIntegration",

@tomasmik tomasmik self-assigned this Mar 16, 2026
@tomasmik tomasmik requested a review from a team as a code owner March 16, 2026 13:00
@tomasmik tomasmik requested a review from mbialon March 16, 2026 13:00
Copy link
Copy Markdown
Contributor

@mbialon mbialon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really liked that the previous PR added an option to fetch the schema. Could we easily add that (maybe without the filtering part)?

@tomasmik tomasmik requested review from a team and mbialon March 16, 2026 13:51
Copy link
Copy Markdown
Contributor

@mbialon mbialon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tomasmik tomasmik merged commit b464709 into main Mar 17, 2026
7 checks passed
@tomasmik tomasmik deleted the add-api-command branch March 17, 2026 08:35
@alexjurkiewicz
Copy link
Copy Markdown
Contributor

Thanks Tomas. Will this be released soon?

@eliecharra
Copy link
Copy Markdown
Member

eliecharra commented Mar 27, 2026

@alexjurkiewicz Sure, I'll try to find some time today to craft a release.

Actually, this is already released inside v1.20.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants