You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add flb search command to list and search available extensions
- Add `flb search [query]` command with alias `list-extensions`
- Supports keyword filtering by name, slug, subtitle, description, and tags
- Supports category filtering via --category option
- Supports --free flag to show only free extensions
- Supports --json flag for machine-readable output
- Supports --simple flag for tab-separated scripting output
- Supports --host option for self-hosted Fleetbase instances
- Uses ANSI colour codes for clean terminal output (chalk v5 is ESM-only)
- Add extensionsListApi constant pointing to /~registry/v1/extensions
- Add displayExtensionsTable() helper for formatted terminal display
- Document new command in README.md with full examples
program.name('flb').description('CLI tool for managing Fleetbase Extensions').version(`${packageJson.name}${packageJson.version}`,'-v, --version','Output the current version');
1297
1430
program.option('-r, --registry [url]','Specify a fleetbase extension repository',defaultRegistry);
1298
1431
@@ -1333,6 +1466,17 @@ program
1333
1466
awaitinstallPackage(packageName,fleetbasePath);
1334
1467
});
1335
1468
1469
+
program
1470
+
.command('search [query]')
1471
+
.alias('list-extensions')
1472
+
.description('Search and list available Fleetbase extensions')
1473
+
.option('-c, --category <category>','Filter by category name or slug')
1474
+
.option('-f, --free','Show only free extensions')
1475
+
.option('--json','Output results as raw JSON')
1476
+
.option('--simple','Output one extension per line: slug, name, version, price (for scripting)')
1477
+
.option('-h, --host <host>','API host to fetch extensions from (default: https://api.fleetbase.io)')
1478
+
.action(searchExtensionsCommand);
1479
+
1336
1480
program
1337
1481
.command('uninstall [packageName]')
1338
1482
.option('-p, --path <path>','Path of the Fleetbase instance to uninstall for')
0 commit comments