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

@fleetbase/cli

v0.0.3

Published

CLI tool for managing Fleetbase Extensions

Downloads

22

Readme

Fleetbase CLI

FLB (Fleetbase CLI) is a command-line interface tool designed for managing Fleetbase Extensions. It simplifies the process of publishing and managing both npm and PHP Composer packages, particularly for Fleetbase extensions.

Features

  • Publish Fleetbase Extensions to a specified registry.
  • Unpublish Extensions from the registry.
  • Automatically convert composer.json to package.json for PHP packages.
  • Scaffold new Fleetbase extensions.
  • Set registry token to a fleetbase instance.
  • Install and Uninstall extensions.
  • Flexible registry configuration.

Installation

To install FLB, run the following command:

npm install -g @fleetbase/cli

Usage

Publishing a Extension

To publish a extension, navigate to the extension directory and run:

flb publish [?path]
  • [path]: (Optional) The path to the extension directory to be published. Defaults to the current directory.

For PHP only extensions, flb will automatically convert composer.json to package.json before publishing.

Unpublishing a Extension

To unpublish a extension, use:

flb unpublish [extension]
  • [extension]: (Optional) The name of the extension to unpublish. If not provided, FLB will attempt to determine the extension name from the current directory.

Setup Registry Auth Token

To install purchased extensions you must setup authorization first which is linked to your Fleetbase account. You can generate a registry token at https://console.fleetbase.io/extensions/developers/credentials

To setup registry auth use:

flb set-auth [token] --path /fleetbase
  • -p, --path: (Optional) The path to the fleetbase instance directory. Defaults to the current directory.

Scaffolding a Extension

Fleetbase CLI has the ability to scaffold a starter extension if you intend to develop your own extension. This greatly speeds up the development process as it gives you a correct starting point to build on.

To scaffold a extension, use:

flb scaffold
  • -p, --path: The path to place the scaffold extension.
  • -n, --name: The name of the extension to scaffold.
  • -d, --description: The description of the extension to scaffold.
  • -a, --author: The name of the extension author.
  • -e, --email: The email of the extension author.
  • -k, --keywords: The keywords of the extension to scaffold.
  • -n, --namespace: The PHP Namespace of the extension to scaffold.
  • -r, --repo: The Repository URL of the extension to scaffold.

Installing a Extension

To install a extension, use:

flb install [extension] --path /fleetbase
  • [extension]: The name of the extension to install.
  • -p, --path: (Optional) The path to the fleetbase instance directory. Defaults to the current directory.

Uninstalling a Extension

To uninstall a extension, use:

flb uninstall [extension] --path /fleetbase
  • [extension]: The name of the extension to install.
  • -p, --path: (Optional) The path to the fleetbase instance directory. Defaults to the current directory.

Setting a Custom Registry

To specify a custom registry for publishing and unpublishing, use the -r or --registry option:

flb publish -r http://my-registry.com
flb unpublish -r http://my-registry.com

Configuration

FLB can be configured via command-line options. The most common options include:

  • -r, --registry [url]: Specify a custom registry URL.

Contributing

Contributions to Fleetbase CLI are welcome. Please ensure that your code adheres to the project's coding standards and include tests for new features or bug fixes.

License & Copyright

Fleetbase is made available under the terms of the GNU Affero General Public License 3.0 (AGPL 3.0). For other licenses contact us.