Skip to content

docs: document packageIdentity config for the CLI generator - #6467

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1785431223-cli-generator-package-identity
Open

docs: document packageIdentity config for the CLI generator#6467
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1785431223-cli-generator-package-identity

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

The CLI generator now accepts an opt-in packageIdentity block in its config, which sets the Cargo [package] metadata of the generated crate: name, description, license, repository, homepage, authors, and keywords. Previously the generated CLI shipped with Fern's own crate identity (fern-cli-sdk, Fern's repo and authors), which is wrong for a customer-branded CLI that gets published. This PR documents the new block so customers publishing a Fern-generated CLI know how to make the crate theirs.

Changes:

  • fern/products/cli-generator/configuration.mdx: new <ParamField path="packageIdentity"> under config options, matching the page's existing pattern. Covers the YAML example, a field-to-Cargo-key table, the crate-name validation (fails at generation time rather than at cargo build), the Cargo.lock rename so cargo build --locked still resolves, and that [lib] name is intentionally not configurable.
  • fern/products/cli-generator/publishing.mdx: one-sentence pointer noting the npm package name is separate from the crate identity, linking to the reference rather than duplicating it.

No Docs-product changelog entry (CLI/SDK-side change).

Source: fern-api/fern#17282

Checks: pre-commit run --files <changed> passes (only a pre-existing Vale warning on an untouched line), and fern check --warnings reports 0 errors.

Link to Devin session: https://app.devin.ai/sessions/5e50f746ce7a442fbc559e5662646133

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot requested a review from devalog as a code owner July 30, 2026 17:07
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@github-actions

Copy link
Copy Markdown
Contributor

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.

0 participants