Documentation
How to use Stubs with the stubs CLI, package managers and CI. New here? Start with the Quickstart.
Getting started
- QuickstartInstall stubs, sign in, push a module to Stubs, and use it from another.
- Install the CLIInstall stubs with the install script, Homebrew, the GitHub Action or the container image.
- Already using buf?Keep using the buf CLI with Stubs, or switch a project to stubs.
- AuthenticationTokens, their scopes, and signing in with stubs login.
Modules
Generating code
- Remote plugins & stubs generateGenerate code with plugins Stubs runs, with nothing to install.
- Generated SDKs: TypeScriptInstall a module's generated TypeScript package with npm.
- Generated SDKs: GoGet a module's generated Go module through the module proxy.
- Generated SDKs: Java & KotlinUse a module's generated Java or Kotlin artifact from Gradle or Maven.
- Generated SDKs: PythonInstall a module's generated Python package with pip.
Teams
Billing
Reference
- stubs.yaml and buf.yamlEvery key of a workspace's configuration: modules, dependencies, lint and breaking-change settings.
- stubs.gen.yaml and buf.gen.yamlEvery key of the code generation config: plugins, inputs and managed mode.
- stubs.lock and buf.lockThe lock file stubs dep update writes, which pins each dependency to a commit.
- buf.policy.yamlA policy file: lint and breaking-change settings to share between workspaces.
- Lint rulesEvery lint rule stubs checks, its categories, and the settings that change them.
- Breaking-change rulesEvery breaking-change rule stubs checks, and the categories that choose them.
- The Protobuf languageA short guide to writing .proto files, with links to the language specification.