create-rapidoc
v1.0.0
Published
Interactive scaffolding CLI to create new developer portals with RapiDoc Portal
Maintainers
Readme
create-rapidoc
Scaffolds a RapiDoc Portal: a developer portal built from OpenAPI specs and Markdown guides.
npm create rapidoc@latest my-portal
cd my-portal
npm install
npm run devRun it in a folder that already has OpenAPI files and the portal uses them: one API reference and navigation tab per spec. Otherwise it adds a sample spec.
Node.js 22.12 or later.
What it writes
rapidoc.config.yaml: site, theme, header, navigation tabs and APIspackage.jsonwith@rapidoc/cliand@rapidoc/portal, anddev,build,validateandpreviewscriptsdocs/: a home page, a getting-started guide and a Markdoc guidespecs/api.yaml(when the folder has no specs),.gitignoreandREADME.md
Existing files are kept unless you pass --force.
Options
| Option | Meaning |
| :---------------- | :-------------------------------------------------------------------------------- |
| --title <title> | Site title, e.g. "Acme Developer Portal" |
| --force, -f | Overwrite existing files |
| --yes, -y | Don't ask; use the defaults (in a terminal it asks for the title and which specs) |
rapidoc init in @rapidoc/cli does the same in an existing project.
License
MIT
Part of the RapiDoc family of open-source tools for OpenAPI and Arazzo: RapiDoc (<rapi-doc>), RapiFlow, RapiDoc Portal, RapiMock, RapiPdf, the RapiDoc CLI and integrations for Express, Fastify, Hono, FastAPI, ASP.NET Core, Go, Starlight, VitePress and Docusaurus.
