Use `flyctl` Golang SDK?

I’m considering (very tentative) programmatically deploying apps.

flyctl is comprehensive but I’d prefer to tap into the SDK that’s bundled with it.

Would this be acceptable|problematic?

2 Likes

Go for it. Several people are already importing flyctl’s api directly for automation. We didn’t design it for use outside flyctl so it’s undocumented and not very friendly, but we’ll be cleaning it up for an official SDK in the coming months.

3 Likes

@michael It’s been a year since your last reply, any updates on Go SDK?

The GraphQL API is probably a better bet at this point, as that’s mostly what flyctl itself uses: Check it out (notice the docs and schema tabs on the page’s right-hand border).