cli 0.0.1
Install from the command line:
Learn more about npm packages
$ npm install @fleetbase/cli@0.0.1
Install via package.json:
"@fleetbase/cli": "0.0.1"
About this version
FLB (Fleetbase) 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.
- Publish npm and PHP Composer packages to a specified registry.
- Unpublish packages from the registry.
- Automatically convert
composer.json
topackage.json
for PHP packages. - Flexible registry configuration.
To install FLB, run the following command:
npm install -g @fleetbase/cli
To publish a package, navigate to the package directory and run:
flb publish [path]
-
[path]
: The path to the package directory. Defaults to the current directory.
For PHP packages, flb
will automatically convert composer.json
to package.json
before publishing.
To unpublish a package, use:
flb unpublish [packageName]
-
[packageName]
: The name of the package to unpublish. If not provided, FLB will attempt to determine the package name from the current directory.
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
FLB can be configured via command-line options. The most common options include:
-
-r, --registry [url]
: Specify a custom registry URL.
Contributions to FLB are welcome. Please ensure that your code adheres to the project's coding standards and include tests for new features or bug fixes.
FLB is MIT licensed.