Skip to content
FeedbackDashboard

Create project

$ stl projects create
POST/v0/projects

Create a new project.

ParametersExpand Collapse
--display-name: string

Human-readable project name

--org: string

Organization name

--revision: map[FileInput]

File contents to commit

--slug: string

Project name/slug

--target: array of Target

Targets to generate for

ReturnsExpand Collapse
project: object { config_repo, display_name, object, 3 more }

A project is a collection of SDKs generated from the same set of config files.

config_repo: string
display_name: string
object: "project"
org: string
slug: string
targets: array of Target
Accepts one of the following:
"node"
"typescript"
"python"
"go"
"java"
"kotlin"
"ruby"
"terraform"
"cli"
"php"
"csharp"
"sql"
"openapi"

Create project

stl projects create \
  --display-name display_name \
  --org org \
  --revision '{foo: {content: content}}' \
  --slug slug \
  --target node
{
  "config_repo": "config_repo",
  "display_name": "display_name",
  "object": "project",
  "org": "org",
  "slug": "slug",
  "targets": [
    "node"
  ]
}
Returns Examples
{
  "config_repo": "config_repo",
  "display_name": "display_name",
  "object": "project",
  "org": "org",
  "slug": "slug",
  "targets": [
    "node"
  ]
}