Weβve just released v1.1.0-alpha.11
of the apimatic-cli
, bringing powerful new commands that make it easier to create, serve, and customize your API portals using APIMatic's Docs as Code offering.
Hereβs whatβs new:
Quickstartβ
Get started with your first API Portal using just a single command.
$ apimatic portal:quickstart
This command bootstraps a full API Portal project using the standard APIMatic directory structure, perfect for first-time users or rapid prototyping.
Use when: You want to quickly spin up a new project with everything set-up.
π Learn more about the Quickstart command here.
Create API Recipesβ
Generate an API Recipe file to provide step-by-step guides or workflows for your use cases, tailored to your static API portal build.
$ apimatic portal:recipe:new --name="My API Recipe"
π Learn more about the API Recipe command here.
Preview Locallyβ
Generate and live-serve your API Portal with hot reload support.
$ apimatic portal:serve --port=3000
π₯ Great for rapid iteration and local previews.
π Learn more about the Portal Serve command here.β
Generate TOCβ
Generate a Table of Contents (TOC) toc.yml
file based on your custom content guides and your API definition.
$ apimatic portal:toc:new
π Read more about the TOC command here.
β‘ Upgrade Nowβ
Install the latest CLI version from NPM:
npm install -g @apimatic-cli
For more details and usage examples, check out the official CLI README or visit the GitHub Repository.
Happy building! π