FlexMeasures CLI Changelog
since v0.30.0 | December 02, 2025
Major overhaul of
flexmeasures add forecasts(use the--helpoption to learn more).Fix the interpretation of
--start-offsetand--end-offsetoptions inflexmeasures add report, which was not using the correct time at which the command was run; instead, that time was off by and offset corresponding to the offset between theFLEXMEASURES_TIMEZONEconfig setting and UTC).Add –force option to
flexmeasures delete beliefsThe
flexmeasures delete beliefs,flexmeasures delete nan-beliefsandflexmeasures delete unchanged-beliefsCLI commands now support limiting the action to a given set of data sources.Allow asset-level scheduling in
flexmeasures add scheduleusing the--assetoption.Allow modifying asset trees with the CLI using
flexmeasures edit transfer-parenthood.flexmeasures show assetwill now also display the flex model.
since v0.29.0 | October 14, 2025
Include finished and canceled jobs in the overview printed by the CLI command
flexmeasures jobs show-queues.The
flexmeasures delete unchanged-beliefsCLI command now supports limiting the action to a given period.
since v0.28.0 | September 10, 2025
Removed command
flexmeasures db-ops saveandflexmeasures db-ops loadfor folder&file - base backup management.
since v0.27.0 | July 20, 2025
Add
flexmeasures show assetsCLI command for listing public assets and option--account <account-id>to list assets owned by a specific account.
since v0.26.0 | June 03, 2025
Switch to
flexmeasures jobs save-lastCLI command for saving the last n canceled/deferred/failed/finished/scheduled/started jobs (from the scheduling queue, by default).Add
flexmeasures show assetsCLI command for listing public assets and option--account <account-id>to list assets owned by a specific account.
since v0.25.0 | April 01, 2025
Report parameters set using
flexmeasures add report --parameterscan use any argument supported bySensor.search_beliefsto allow more control over input for the report.Add
flexmeasures jobs save-last-failed(since v0.26:flexmeasures jobs save-last) CLI command for saving the last n failed jobs (from the scheduling queue, by default).Add
flexmeasures jobs delete-queueCLI command for deleting an obsolete queue.
since v0.24.0 | January 6, 2025
flexmeasures show beliefsshows datetime values on x-axis labels.flexmeasures add sensorno longer requires thecapacity_in_mwattribute to be set for power sensors.
since v0.22.0 | June 29, 2024
Add
--resolutionoption toflexmeasures show chartto produce charts in different time resolutions.
since v0.21.0 | April 16, 2024
Include started, deferred and scheduled jobs in the overview printed by the CLI command
flexmeasures jobs show-queues.
since v.0.20.0 | March 26, 2024
Add command
flexmeasures edit transfer-ownershipto transfer the ownership of an asset and its children.Add
--offspringoption toflexmeasures delete beliefscommand, allowing to delete beliefs of children, as well.Add support for providing a sensor definition to the
--site-power-capacity,--site-consumption-capacityand--site-production-capacityoptions of theflexmeasures add schedule for-storagecommand.
since v0.19.1 | February 26, 2024
Fix support for providing a sensor definition to the
--storage-power-capacityoption of theflexmeasures add schedule for-storagecommand.
since v0.19.0 | February 18, 2024
Enable the use of QuantityOrSensor fields for the
flexmeasures add schedule for-storageCLI command:charging-efficiencydischarging-efficiencysoc-gainsoc-usagepower-capacityproduction-capacityconsumption-capacitystorage-efficiency
Streamline CLI option naming by favoring
--<entity>over--<entity>-id. This affects the following options:--account-id->--account--asset-id->--asset--asset-type-id->--asset-type--sensor-id->--sensor--source-id->--source--user-id->--user
since v0.18.1 | January 15, 2024
Fix the validation of the option
--parent-assetof commandflexmeasures add asset.
since v0.17.0 | November 8, 2023
Add
--consultancyoption toflexmeasures add accountto create a consultancy relationship with another account.
since v0.16.0 | September 29, 2023
Add command
flexmeasures add sourcesto add the base DataSources for the DataGenerators.Add command
flexmeasures show chartto export sensor and asset charts in PNG or SVG formats.Add
--kind reporteroption toflexmeasures add toy-accountto create the asset and sensors for the reporter tutorial.Add
--idoption toflexmeasures show data-sourcesto show just oneDataSource.Add
--show-attributesflag toflexmeasures show data-sourcesto select whether to show the attributes field or not.
since v0.15.0 | August 9, 2023
Allow deleting multiple sensors with a single call to
flexmeasures delete sensorby passing the--idoption multiple times.Add
flexmeasures add scheduleto create a new process schedule for a given power sensor. Make sure to use the--scheduler ProcessScheduleroption to use the in-built process scheduler.Add support for describing
configandparametersin YAML for the commandflexmeasures add report, editable in user’s code editor using the flags--edit-configor--edit-parameters.Add
--kind processoption to create the asset and sensors for theProcessSchedulertutorial.
since v0.14.1 | June 20, 2023
Avoid saving any NaN values to the database, when calling
flexmeasures add report.Fix defaults for the
--start-offsetand--end-offset` options to ``flexmeasures add report, which weren’t being interpreted in the local timezone of the reporting sensor.
since v0.14.0 | June 15, 2023
Allow setting a storage efficiency using the new
--storage-efficiencyoption to theflexmeasures add schedule for-storageCLI command.Add CLI command
flexmeasures add reportto calculate a custom report from sensor data and save the results to the database, with the option to export them to a CSV or Excel file.Add CLI command
flexmeasures show reportersto list available reporters, including any defined in registered plugins.Add CLI command
flexmeasures show schedulersto list available schedulers, including any defined in registered plugins.Make
--account-idoptional inflexmeasures add assetto support creating public assets, which are available to all users.
since v0.13.0 | May 1, 2023
Add
flexmeasures add sourceCLI command for adding a new data source.Add
--inflexible-device-sensoroption toflexmeasures add schedule.
since v0.12.0 | January 04, 2023
Add
--resolution,--timezoneand--to-fileoptions toflexmeasures show beliefs, to show beliefs data in a custom resolution and/or timezone, and also to save shown beliefs data to a CSV file.Add options to
flexmeasures add beliefsto 1) read CSV data with timezone naive datetimes (use--timezoneto localize the data), 2) read CSV data with datetime/timedelta units (use--unit datetimeor--unit timedelta, 3) remove rows with NaN values, and 4) add filter to read-in data by matching values in specific columns (use--filter-columnand--filter-valuetogether).Fix
flexmeasures db-ops dumpandflexmeasures db-ops restoreincorrectly reporting a success when pg_dump and pg_restore are not installed.Add
flexmeasures monitor last-seen.Rename
flexmeasures monitor taskstoflexmeasures monitor last-run.Rename
flexmeasures add scheduletoflexmeasures add schedule for-storage(in expectation of more scheduling commands, based on in-built flex models).
since v0.11.0 | August 28, 2022
Add
flexmeasures jobs show-queuesto show contents of computation job queues.--nameparameter inflexmeasures jobs run-workeris now optional.Add
--custom-messageparam toflexmeasures monitor tasks.Rename
-optimization-context-idto--consumption-price-sensorinflexmeasures add schedule, and added--production-price-sensor.
since v0.9.0 | March 25, 2022
Add CLI commands for showing data
flexmeasures show accounts,flexmeasures show account,flexmeasures show roles,flexmeasures show asset-types,flexmeasures show asset,flexmeasures show data-sources, andflexmeasures show beliefs.Add
flexmeasures db-ops resample-dataCLI command to resample sensor data to a different resolution.Add
flexmeasures edit attributeCLI command to edit/add an attribute on an asset or sensor.Add
flexmeasures add toy-accountfor tutorials and trying things.Add
flexmeasures add scheduleto create a new schedule for a given power sensor.Add
flexmeasures delete assetto delete an asset (including its sensors and data).Rename
flexmeasures add structuretoflexmeasures add initial-structure.
since v0.8.0 | January 26, 2022
Add
flexmeasures add sensor,flexmeasures add asset-type,`flexmeasures add beliefs. These were previously experimental features (under the dev-add command group).flexmeasures add assetnow directly creates an asset in the new data model.Add
flexmeasures delete sensor,flexmeasures delete nan-beliefsandflexmeasures delete unchanged-beliefs.
since v0.6.0 | April 2, 2021
Add
flexmeasures add account,flexmeasures delete account, and the--account-idparam toflexmeasures add user.
since v0.4.0 | April 2, 2021
Add the
dev-addcommand group for experimental features around the upcoming data model refactoring.
since v0.3.0 | April 2, 2021
Refactor CLI into the main groups
add,delete,jobsanddb-opsAdd
flexmeasures add asset,flexmeasures add userandflexmeasures add weather-sensorSplit the
populate-dbcommand intoflexmeasures add structureandflexmeasures add forecasts