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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@apitable/widget-cli

v1.2.0

Published

help you to build awesome apitable widget

Downloads

39

Readme

@apitable/widget-cli

help you build awesome apitable widget

oclif Version Downloads/week License

Usage

$ npm install -g @apitable/widget-cli
$ widget-cli COMMAND
running command...
$ widget-cli (-v|--version|version)
@apitable/widget-cli/1.2.0 darwin-arm64 node-v16.15.0
$ widget-cli --help [COMMAND]
USAGE
  $ widget-cli COMMAND
...

Commands

widget-cli auth [TOKEN]

Login authentication, and cache the API Token

USAGE
  $ widget-cli auth [TOKEN]

ARGUMENTS
  TOKEN  Your API Token

OPTIONS
  -h, --host=host  Specifies the host of the server, such as https://apitable.com

EXAMPLE
  $ widget-cli auth [apiToken] --host [host]
  Succeed!

See code: lib/commands/auth.js

widget-cli help [COMMAND]

display help for widget-cli

USAGE
  $ widget-cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

widget-cli init

Create a widget project and register it in your space

USAGE
  $ widget-cli init

OPTIONS
  -c, --name=name            Name your widget and project
  -h, --host=host            Specifies the host of the server, such as https://apitable.com
  -p, --packageId=packageId  The widget package id
  -s, --spaceId=spaceId      In which space to put the widget on
  -t, --token=token          Your API Token
  -u, --template=template    The template code zip from apitable or github

EXAMPLE
  $ widget-cli init
  your widget: my-widget is successfully created, cd my-widget/ check it out!

See code: lib/commands/init.js

widget-cli list-release [PACKAGEID]

List all version information for your widget package release

USAGE
  $ widget-cli list-release [PACKAGEID]

ARGUMENTS
  PACKAGEID  The widget package you want to unpublish

OPTIONS
  -g, --global       Specify global widget package
  -h, --host=host    Specifies the host of the server, such as https://apitable.com
  -t, --token=token  Your API Token

EXAMPLE
  $ widget-cli list-release [packageId]
  Succeed!

See code: lib/commands/list-release.js

widget-cli release

Release your widget package

USAGE
  $ widget-cli release

OPTIONS
  -h, --host=host              Specifies the host of the server, such as https://apitable.com
  -l, --uploadHost=uploadHost  Specifies the upload host of the server, such as https://apitable.com
  -t, --token=token            Your API Token
  -v, --version=version        Specifies the version of the project
  --ci                         Run in CI mode, no version prompt

EXAMPLE
  $ widget-cli release
  Succeed!

See code: lib/commands/release.js

widget-cli rollback [PACKAGEID] [VERSION]

Rollback the widget package to the specified version

USAGE
  $ widget-cli rollback [PACKAGEID] [VERSION]

ARGUMENTS
  PACKAGEID  The widget package you want to rollback
  VERSION    The version of the widget package you want to rollback

OPTIONS
  -g, --global       Specify global widget package
  -h, --host=host    Specifies the host of the server, such as https://apitable.com
  -t, --token=token  Your API Token

EXAMPLE
  $ widget-cli rollback [packageId] [version] --host [host] --token [token]
  Succeed!

See code: lib/commands/rollback.js

widget-cli start

Start current widget project in develop mode

USAGE
  $ widget-cli start

OPTIONS
  -o, --protocol=protocol  [default: https] Specifies the protocol of the local server
  -p, --port=port          [default: 9000] Specifies the port of the local server
  --debug                  Show debug information for cli it self

EXAMPLE
  $ widget-cli start
  Compiling...

See code: lib/commands/start.js

widget-cli submit

Submit your widget package

USAGE
  $ widget-cli submit

OPTIONS
  -h, --host=host              Specifies the host of the server, such as https://apitable.com
  -l, --uploadHost=uploadHost  Specifies the upload host of the server, such as https://apitable.com
  -t, --token=token            Your API Token
  -v, --version=version        Specifies the version of the project
  --ci                         Run in CI mode, no prompt

EXAMPLE
  $ widget-cli submit
  Succeed!

See code: lib/commands/submit.js

widget-cli unpublish [PACKAGEID]

Unpublish your widget package

USAGE
  $ widget-cli unpublish [PACKAGEID]

ARGUMENTS
  PACKAGEID  The widget package you want to unpublish

OPTIONS
  -g, --global       Specify global widget package
  -h, --host=host    Specifies the host of the server, such as https://apitable.com
  -t, --token=token  Your API Token
  --noConfirm        Do not show confirm

EXAMPLE
  $ widget-cli unpublish
  Succeed!

See code: lib/commands/unpublish.js