Skip to main content

APIMatic CLI: API Copilot + Enhanced Portal & SDK Commands

ยท 2 min read

We've just released v1.1.0-alpha.18 of the apimatic-cli , introducing the new API Copilot command and bringing improvements to existing portal, SDK generation, and authentication commands.

๐Ÿš€ New Featuresโ€‹

1. Portal & Build Directory Enhancementsโ€‹

  • Unified Input Directory Structure

    • All portal commands now use a simplified directory structure which segregates input and outputs into src, portal and sdk directories.
    • Commands automatically detect the build directory structure for improved workflow consistency.
  • Portal Generation Improvements

    • Enhanced messaging across portal commands for better user experience.

2. API Copilot Integrationโ€‹

  • New Portal Command
    • Added portal:copilot command to configure AI-powered assistance in your API documentation portal.
    • Integrates API Copilot configuration directly into your APIMATIC-BUILD.json file.

๐Ÿ“„ Learn more about the Copilot command here.

3. SDK Generation Improvementsโ€‹

  • Updated Flags and Behavior
    • Replaced the --url and --file flags with a new --spec flag whose default value works seamlessly with the new directory structure.
    • Improved response handling for SDK generation.

4. Authenticationโ€‹

  • Device Login Flow
    • Added a device login flow for easier authentication through the APIMatic web application.
    • This replaces the older username and password based authentication for improved security and user experience.

โšก 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! ๐Ÿš€