Skip to content

Conversation

Siddhant-K-code
Copy link
Member

This PR adds examples to demonstrate usage of the Gitpod TypeScript SDK

Added Example

  • list_environments.ts: Lists all environments with their details including:
    • Environment ID
    • Status
    • Creation time
    • Project ID (if available)
    • Repository URL (if available)
    • Machine class

Usage

  • Set your API key

    export GITPOD_API_KEY='your-api-key-here'
  • Run example

    yarn tsn -T examples/list_environments.ts

@Siddhant-K-code Siddhant-K-code enabled auto-merge (squash) February 20, 2025 17:19
auto-merge was automatically disabled February 21, 2025 08:00

Pull request was closed

@Siddhant-K-code Siddhant-K-code deleted the examples branch February 21, 2025 08:00
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.

1 participant