npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@calycode/cli

v0.15.0

Published

Command-line interface for Xano providing terminal access to Xano workflows

Readme

@calycode/cli

Command-line interface for the providing terminal access to Xano development workflows.

!WARNING WIP and BETA. While we aim to make this CLI robust and reliable partner in everyday Xano work, several aspects might be fragile at this point. Use at own risk and we strongly suggest exploring the possibilities in sandboxed, or a free Xano instance to avoid production environment disruptions.

Overview

The CLI package provides:

  • Command-line interface
  • Interactive prompts and progress logs
  • Automation ready commands to create reliable CI/CD-like experiences for Xano

Installation

Global Installation

npm install -g @calycode/cli
## pnpm install @calycode/cli -g
xano --help

NPX Usage

npx @calycode/cli <command> <options>
## e.g.
## npx @calycode/cli generate-oas --help

Docs

See more detailed documentation here: @calycode/cli docs

Context Inheritance

Every command inherit context from:

  1. Command-line flags (highest priority)
  2. Current context configuration
  3. Default values (lowest priority)

Examples

Setup instance, generate openapi spec and ts client code and serve the open api spec locally.

# Setup instance
xano setup --name production --url https://x123.xano.io --api-key your-key

# Generate OpenAPI specs
xano generate-oas --all

# Generate TypeScript client
xano generate-code --generator typescript-fetch
# Serve documentation
xano serve-oas

Multi-Environment Setup

# Setup multiple instances
xano setup --name production --url https://prod.my-instance.xano.io --api-key prod-key
xano setup --name staging --url https://staging.my-instance.xano.io --api-key staging-key

xano generate-oas --group api
# You will be prompted to select all missing context information via prompts.

xano export-backup

Integration

CI/CD Usage

# GitHub Actions example
- name: Generate API Documentation
  run: |
     npx -y @calycode/cli generate-oas --all
     npx -y @calycode/cli generate-code --generator typescript-fetch
  env:
     XANO_TOKEN_PRODUCTION: ${{ secrets.XANO_TOKEN }}

Using in GitHub Actions

You can use this CLI as a GitHub Action as well to automate your Xano workflows.

Here is an example job that checks out your repository and uses the local composite action (./dist/actions/master-action.yml), which in turn securely downloads and runs the CLI as npm package via the npx command.

jobs:
   sync:
      runs-on: ubuntu-latest

      steps:
         - uses: actions/checkout@v4

         # 1. Setup Node.js and authenticate to the npm registry
         - uses: actions/setup-node@v4
           with:
              node-version: '20'
              registry-url: 'https://registry.npmjs.org'

         # 2. Use the Xano CLI Action from your repository
         # This composite action handles setup and (multiple or single) command execution by calling the published npm package.
         - name: Run Caly-Xano Commands
           uses: ./dist/actions/master-action.yml
           with:
              # Xano Instance name, used to identify the created configuration during command execution
              instance-name: 'production'
              instance-url: ${{ secrets.XANO_URL }}
              # Xano Metadata API token. Make sure to set it up as a secret
              api-token: ${{ secrets.XANO_API_TOKEN }}
              version: 'latest' # or a specific version like '0.1.1'
              # You can specify multiple commands in new lines and the action will execute them in order.
              # See the [documentation](/docs/README.md) for command docs.
              run: |
                 generate-oas --all

Usage with git

In order to actually use the CLI with proper git support it is advised to also define the --output flag when running the commands. This allows users to override the output and as a result keep a proper git history. The flow is as follows:

  1. run the xano setup command
  2. make sure you have git installed on your machine
  3. run git init
  4. run a command e.g. generate-repo --output lib and then commit these changes to your desired branch
  5. create new branch (possibly name similarly as on your Xano) and run the generate-repo --output lib again. After a new commit and push you know have a fully git-enabled comparison of your two Xano branches.

License

MIT