influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
61 stars 23 forks source link

Add CRUD support for Flux modules #458

Open nathanielc opened 1 year ago

nathanielc commented 1 year ago

Flux modules are nearly API complete. We need to a way for users to publish and interact with modules on release day and the CLI is the best option. To keep implementation simple we want to start with the following verbs:

influx module list
influx module publish
influx module download 
influx module versions 

List

influx module list should list all modules and their latest version

Publish

influx module publish should take a directory and build the Flux code within the directory and then upload the directory if the build succeeds. We need to define precisely what build means, but it will likely be compiling all the code to semantic graph and ensuring no errors.

Download

influx module download should download a zip file of a specific module and a specific version. Support for @latest and @pre should be included.

Versions

influx module versions should list all versions for a given module