Skip to content

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

Merged
devalog merged 5 commits into
mainfrom
devin/1785431223-cli-generator-package-identity
Aug 11, 2026
Merged

docs: document packageIdentity config for the CLI generator#6467
devalog merged 5 commits into
mainfrom
devin/1785431223-cli-generator-package-identity

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jul 30, 2026

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. By default the generated crate uses the template's identity (fern-cli-sdk, plus Fern's repository and authors), so customers publishing a branded CLI need a way 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 pre-existing Vale warnings on untouched lines), and fern check --warnings reports 0 errors.

Link to Devin session: https://app.devin.ai/sessions/3438a7cadeaa4f3ba6367f81f71986a5

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

devalog and others added 4 commits August 11, 2026 18:36
Describe the template crate identity as the default rather than as wrong.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Replace the field/Cargo-key table with indented per-field ParamFields, matching the nested-object pattern used elsewhere in the reference docs.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devalog devalog added the eng-review Waiting on engineering review label Aug 11, 2026
@devalog
devalog merged commit 22ed029 into main Aug 11, 2026
4 checks passed
@devalog
devalog deleted the devin/1785431223-cli-generator-package-identity branch August 11, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

eng-review Waiting on engineering review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant