docs: document fern generate --pack and --pack-mode - #6468
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
docs: document fern generate --pack and --pack-mode#6468devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
|
🌿 Preview your docs: https://fern-preview-devin-1785431301-document-fern-generate-pack.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fern generate --packis a new CLI flag that turns anylocal-file-systemSDK output into the installable package artifact for that language (npm tarball, Python wheel, JAR,.nupkg, gem, Composer zip, crate, Go source zip), written to afern-dist/folder inside the output directory.--pack-mode dockerruns each language's packaging toolchain inside its official container image, so no host toolchains are required.This matters for teams that want to hand a generated SDK to internal consumers without publishing to a public registry. Previously the CLI only produced source directories, so someone had to build the artifact by hand with the right toolchain installed.
Pages changed
fern/products/cli-api-reference/pages/commands.mdx— canonical reference. Adds[--pack] [--pack-mode <mode>]to thefern generateusage line plus### packand### pack-modesections: per-language artifact table,fern-dist/location, full-project implication (pyproject.toml,README.md, etc.), aggregatedPackaging failed for: ...behavior and empty-dir cleanup, Swift's source-package warning,--runner podmanfor docker mode, and the rejected combinations (--packwith--previewor--docs,--pack-modewithout--pack).fern/products/sdks/reference/generators-yml-reference.mdx— one-sentence pointer in thelocal-file-systemoutput accordion.fern/products/sdks/deep-dives/self-hosted.mdx— one-sentence pointer in the "Run generation locally" step.Go is documented as producing a module source archive rather than a source-distribution warning, per the follow-up fern-api/fern#17293, which shipped in the same CLI release (5.86.0) as #17284.
No changelog entry: this is a CLI/SDK change, not a Docs-product feature.
Verification
pre-commit run --files <changed files>— Vale passed; no new findings on changed lines.cd fern && npx fern-api@5.59.0 check --warnings— 0 errors.Link to Devin session: https://app.devin.ai/sessions/8e890e1535f64065a937b9f6eee77709