The CLI is being re-released with Ona branding. Until then, continue using
gitpod as the command name.Installation
macOS and Linux
Direct download
After downloading, make the binary executable and move it to your PATH:macOS security warning
macOS security warning
If macOS shows a security warning, approve the app in System Settings → Privacy & Security, or run:
Verify download integrity
Verify download integrity
Verified installationUse SLSA verification during initial installation:Requirements: Manual SLSA verificationSLSA verification cryptographically proves the CLI was built by the official build system.The verification script checks:Option 2: Checksum VerificationGet the expected checksum:Calculate your file’s checksum and compare:
jq, openssl, curlIf SLSA verification fails, the installation aborts with an error. There is no fallback to unverified download - this ensures you’re always notified of potential tampering.
- Artifact SHA256 matches the attestation subject digest
- Provenance metadata confirms the build came from
gitpod-io/gitpod-next - Certificate was issued by Sigstore
- Entry exists in the Rekor transparency log
- DSSE envelope structure is valid
jq, openssl, curlAuthentication
Browser login
Personal access token
For CI/CD pipelines and scripts, use a personal access token:Inside Ona environments
The CLI is pre-installed and automatically authenticated with limited access. Rungitpod login to upgrade to full access.
When running inside an environment, the CLI automatically detects the current environment context. This means:
- Environment ID is inferred: Commands like
gitpod automations,gitpod environment port, and other environment-specific commands work without requiring--environment-id - Context preserved after login: When you run
gitpod logininside an environment, the environment ID is preserved in your CLI context (as long as the login host matches the environment’s host). This allows you to continue using environment-specific commands after authentication.
If you log into a different host than your environment (e.g., logging into
app.gitpod.io from an environment on ona.e-corp.com), the environment ID will not be preserved.Common commands
| Command | Description |
|---|---|
gitpod whoami | Show current user and access level |
gitpod environment list | List your environments |
gitpod environment create <repo-url> | Create a new environment |
gitpod environment start <id> | Start an environment |
gitpod environment stop <id> | Stop an environment |
gitpod environment delete <id> | Delete an environment |
gitpod environment ssh <id> | SSH into an environment |
gitpod environment logs <id> | View environment logs |
gitpod environment keep-alive | Keep environment alive while a process runs |
-o json or -o yaml for machine-readable output.
Using partial environment IDs
Instead of typing full UUIDs, you can use any substring of an environment ID:gitpod environment list to see available environments.
SSH access
Configure SSH for direct access:gitpod environment ssh command:
-O flag:
Port management
Automation commands
Dotfiles management
Manage your dotfiles configuration directly from the CLI:get command supports output formats:
Project and group management
Configuration
The CLI stores configuration at~/.gitpod/configuration.yaml.
Shell completion
Updates
SLSA verification for updates
Enable cryptographic verification of CLI updates to ensure binary integrity: Per-update verification:--verify-slsa flag takes precedence over the config value when explicitly set.
If SLSA verification fails, the update aborts with an error. There is no fallback to unverified download - this ensures you’re always notified of potential tampering.
Troubleshooting
Authentication issues
Authentication issues
SSH connection failures
SSH connection failures
If you see Debug with:
too many authentication failures, add to ~/.ssh/gitpod/config:gitpod help or add --help to any command for more information.