Skip to content

feat: add guided setup command#753

Draft
ffantl-ld wants to merge 2 commits into
ffantl/setup-ld/4-verifierfrom
ffantl/setup-ld/6-command
Draft

feat: add guided setup command#753
ffantl-ld wants to merge 2 commits into
ffantl/setup-ld/4-verifierfrom
ffantl/setup-ld/6-command

Conversation

@ffantl-ld

Copy link
Copy Markdown
Contributor

Describe the solution you've provided

Final layer: the user-facing setup command. Adds the cmd/setup package (detect, install, init subcommands and the interactive wizard) over the internal/setup library, wires it into the root command, and deprecates quickstart in favor of setup.

The ldcli setup wizard walks a user through detecting their project, installing the SDK, creating a first flag, injecting init code, and verifying an evaluation.

Related issues

Top of the setup-ld feature stack. Stacked PR — base is ffantl/setup-ld/4-verifier.

Note: this branch's cmd/root.go also carries the PersistentPreRun change from #748; that diff drops out once #748 merges to main and this stack is rebased.

Requirements

  • I have added test coverage for new or changed functionality

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ffantl-ld
ffantl-ld force-pushed the ffantl/setup-ld/6-command branch from 56fef68 to 3680877 Compare July 23, 2026 15:16
Address two review findings on the setup wizard:

- runInstall discarded the underlying install error, so the manual-install
  screen showed only the command with no indication of why the automatic
  install failed. Carry the error onto InstallResult.FailureReason and render
  it on the failure screen.
- The "toggle your flag" link hardcoded https://app.launchdarkly.com, which is
  wrong on federal/custom instances. Derive the host from the configured
  --base-uri.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant