Skip to content

Conversation

@bruce-hill
Copy link
Contributor

The revised workflow for initializing a workspace looks like this:

  • stl init and stl workspace init do the same thing
  • If the user is not authenticated, prompt them to authenticate
  • Prompt the user for each step, using Select choices when possible
  • For choices like selecting which project to use, the user gets a select menu with one of the options being "New Project", which lets them type in a project name.
  • The default configuration options go into .stainless/project.json, .stainless/stainless.yml, .stainless/openapi.json, but if there is a local file matching any of those names, it's suggested as the option
  • Once everything is configured, we will download your stainless.yml and OpenAPI spec and put them in the places you specified (and confirm overwriting if a file exists there already).
  • If any parameters are specified by CLI flags, we don't prompt you for them.

@bruce-hill bruce-hill requested a review from yjp20 October 9, 2025 20:26
@bruce-hill
Copy link
Contributor Author

@yjp20 Bumping this review request

Copy link
Member

@yjp20 yjp20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

honestly haven't had time to play with the CLI much, but the changes looks good to me

@bruce-hill bruce-hill merged commit ea4fc5a into main Oct 22, 2025
3 checks passed
@bruce-hill bruce-hill deleted the bruce/unified-init branch November 12, 2025 15:36
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.

2 participants