Repository navigation
Conversation
Adds internal/cloud (HTTP client for cloud.teploy.com /api/v1: bearer key + X-Organization-Id, 30s per request, both list shapes, error envelope with hints, https-only base URL except localhost) and the `teploy cloud` group: login/logout/status, servers, regions, sizes, server create, server delete. server create registers the local public key once, confirms the monthly price, posts with one Idempotency-Key across retries, polls to active, adds the server via config.AddServer (refusing an existing name) and runs the runSetup path after waiting for SSH, unless --no-setup. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
teploy cloudcommand group that talks to Teploy Cloud's public API.cloud login | logout | status: the API key is read without echo or from stdin (never a flag value) and stored incloud.ymlnext toservers.yml, mode 0600.cloud servers,cloud sizes,cloud regions: tables, or JSON with--json.cloud server create <name>: registers the local public key if needed, shows the monthly price and asks before spending, creates the server with one idempotency key, waits for it, adds it toservers.ymland runs setup (skip with--no-setup).cloud server delete <name-or-id>: confirms by name and removes the matchingservers.ymlentry only when its host matches.Tested against a fake server only (httptest); not yet run against cloud.teploy.com. Do not release until one real create and delete has been run.
🤖 Generated with Claude Code