stl-cli

Automates Stainless SDK generation projects, builds, branches, and authentication via the stl CLI.

24|13|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/stainless-api/stainless-api-cli --skill stl-cli-stainless-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stl-cli
Source: https://github.com/stainless-api/stainless-api-cli/tree/main/pkg/cmd/skill/stl-cli
Command: npx skills add https://github.com/stainless-api/stainless-api-cli --skill stl-cli-stainless-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Stainless CLI (stl) accelerates and unifies the creation, configuration, and operation of SDK-generation projects, builds, and authentication workflows, replacing ad-hoc scripts with a single, declarative interface.

Core Features & Use Cases

  • Command coverage across auth, workspace, init, dev, lint, and API resources (projects, builds, orgs, user) for end-to-end SDK lifecycle management.
  • Supports project setup, branch management, builds, configuration deployment, and environment authentication in consistent, reproducible workflows.
  • Use Case: Initialize a Stainless project with an OpenAPI spec and manage subsequent builds and deployments from a centralized CLI.

Quick Start

Initialize a Stainless project by running stl init with your organization and project slug, including targets and an OpenAPI specification.

Frequently Asked Questions about stl-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate SDK generation and manage builds from an OpenAPI spec?

You can automate SDK generation by running the stl init command with your organization, project slug, build targets, and OpenAPI specification to establish a centralized declarative workflow.

What is the best way to manage Stainless branches and trigger SDK builds via CLI?

Managing Stainless builds is handled through declarative CLI commands that trigger builds, configure environments, and handle project branch operations across deployments replacing ad-hoc scripts.

Can I configure environment authentication and workspace settings for SDK projects using a CLI tool?

Yes, the CLI provides comprehensive command coverage for workspace management, environment authentication, and configuration deployment to ensure reproducible SDK lifecycle workflows.

Does the Stainless CLI support linting and local development for OpenAPI SDK generation?

Yes, the CLI includes dedicated dev and lint commands to support local development and validation within your SDK generation projects for consistent build outputs.

How do I handle global configuration flags like base-url and format when generating SDKs?

Global configuration flags including base-url, format, transform, and environment can be applied across all API resource operations to maintain consistent SDK generation parameters.

Why use a declarative CLI interface instead of custom scripts for SDK lifecycle management?

A declarative CLI interface unifies SDK creation, configuration, and authentication workflows into consistent reproducible operations, eliminating the maintenance overhead and fragility of ad-hoc scripts.