All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.13.0 - 2026-11-02
- Updated
mreg-apidependency to 0.9.0.
1.12.4 - 2026-10-26
- Updated
mreg-apidependency to 0.8.3. - Underlying
mreg-apidependencyhttpxchanged tohttpx2, which uses truststore for certificate verification by default, using the system's certificate store instead of relying on bundled certificates via certifi.
1.12.3 - 2026-10-22
- Updated
mreg-apidependency to 0.8.1.
- Dependencies affected by the eMudhra/emSign root cert vulnerabilities.
1.12.2 - 2026-10-16
- Updated
mreg-apidependency to 0.8.0.
- Commands that resolve hosts and networks throwing generic "not found" error instead of prompting for re-login on expired token.
1.12.1 - 2026-10-08
- Updated
mreg-apidependency to 0.6.1. This removes some custom error handling code for M2M errors (hostgroups->owners,hosts; roles->atoms,hosts) and instead uses the server's own error messages.
1.12.0 - 2026-10-05
- Mreg API errors are now rendered as human-readable messages instead of formatted JSON. This is a result of improved exception parsing and handling in
mreg-api0.6.0. - Large internal refactor of exceptions, drastically reducing the number of exception classes. Should have no effect on the user experience.
1.11.0 - 2026-09-09
- Cache TTL now defaults to 60 seconds.
mreg-apiupgraded to 0.5.0, which optimizes creating and updating resources.
1.10.0 - 2026-05-22
host findnow shows IP addresses for each host.host add -contactis now repeatable, with one contact per flag, so options can be placed before or after the hostname.
naptr_removeremoving all records regardless of the provided options. Now requires all options to match for a record to be removed.
policy atom_create -createdoption. This option is now hidden and will be removed in a future release.policy role_create -createdoption. This option is now hidden and will be removed in a future release.
1.9.0 - 2026-04-14
- Now uses
mreg-apipackage for all API interactions. All API code has been stripped out ofmreg-cli.
host removeprinting success messages for associated record removal when host deletion failed and no records were actually deleted.
1.8.3 - 2026-02-03
host add_contact <host> <contact> [<contact> ...]command to add one or more contacts to a host.host remove_contact <host> <contact> [<contact> ...]command to remove one or more contacts from a host.host unset_contact <host> [-force]command to remove all contacts from a host.network community_list -sort <name|global>option to sort communities by name or global name (defaults to name).
host set_contact <host> <contact> [<contact> ...]command now accepts multiple contacts to set at once, replacing all existing contacts.host add -contactoption now accepts multiple arguments.
1.8.2 - 2026-01-06
network policy_attribute_deletecommand not actually deleting the attribute.
1.8.0 - 2025-12-09
- Persistent command history.
- History is stored in a file, configurable with the
history_fileconfig option. Defaults to$XDG_DATA_HOME/mreg-cli/history. - History can be enabled/disabled with the
historyconfig option. - History can be cleared with the new
help clear_historycommand.
- History is stored in a file, configurable with the
network set_max_communities <network> <max_communities>command to set the maximum number of communities allowed on a network.network unset_max_communities <network>command to unset the maximum number of communities allowed on a network.
- Renamed
network policy_set_prefixtonetwork policy_set_pattern. - Renamed
network policy_unset_prefixtonetwork policy_unset_pattern.
logging startshowing "disabled" instead of the actual logging status.host removeerror message suggesting incorrect option and syntax when-overrideis required.
1.7.3 - 2025-11-18
- No longer requires a writable log file to start the application. In extreme cases where no writable log file directory can be found, logging will be disabled.
- Temporary file creation failing due to non-unique filename in
/tmpdirectory. Now creates a unique temporary directory for the temporary file.
1.7.2 - 2025-11-17
uv.lockfile missingrichdependency.
1.7.1 - 2025-11-17
- Missing
richdependency inpyproject.toml.
1.7.0 - 2025-11-14
policy list_hosts -exclude EXCLUDEROLE [EXCLUDEROLE ...]option to exclude hosts that have the given role(s) when listing hosts with a role. Supports multiple arguments and regular expressions.- Environment variable support for all config file options.
- Environment variables are prefixed with
MREG_CLI_and use uppercase letters and underscores instead of lowercase letters and hyphens. - For example, the
http_timeoutconfig file option can be set with theMREG_CLI_HTTP_TIMEOUTenvironment variable. - Environment variables take precedence over config file options.
- All config file options and their corresponding environment vaiables:
- Environment variables are prefixed with
| Config FIle | Env |
|---|---|
url |
MREG_CLI_URL |
user |
MREG_CLI_USER |
domain |
MREG_CLI_DOMAIN |
timeout |
MREG_CLI_TIMEOUT |
prompt |
MREG_CLI_PROMPT |
category_tags |
MREG_CLI_CATEGORY_TAGS |
location_tags |
MREG_CLI_LOCATION_TAGS |
cache |
MREG_CLI_CACHE |
cache_ttl |
MREG_CLI_CACHE_TTL |
http_timeout |
MREG_CLI_HTTP_TIMEOUT |
record_traffic |
MREG_CLI_RECORD_TRAFFIC |
record_traffic_without_timestamps |
MREG_CLI_RECORD_TRAFFIC_WITHOUT_TIMESTAMPS |
token_only |
MREG_CLI_TOKEN_ONLY |
source |
MREG_CLI_SOURCE |
verbose |
MREG_CLI_VERBOSE |
log_file |
MREG_CLI_LOG_FILE |
log_level |
MREG_CLI_LOG_LEVEL |
- New configuration options, previously only available as CLI options, exposed as both config file options and environment variables:
| Config File | Env |
|---|---|
http_timeout |
MREG_CLI_HTTP_TIMEOUT |
record_traffic |
MREG_CLI_RECORD_TRAFFIC |
record_traffic_without_timestamps |
MREG_CLI_RECORD_TRAFFIC_WITHOUT_TIMESTAMPS |
token_only |
MREG_CLI_TOKEN_ONLY |
source |
MREG_CLI_SOURCE |
verbose |
MREG_CLI_VERBOSE |
log_file* |
MREG_CLI_LOG_FILE |
log_level |
MREG_CLI_LOG_LEVEL |
*: The old name logfile is deprecated, but remains a valid alias for this field.
- Default config file location is now
$XDG_CONFIG_HOME/mreg-cli/mreg-cli.conf(was~/.config/mreg-cli.conf).- The old config file location remains supported for backwards compatibility, but will be removed in a future release.
help configurationnow shows environment variables.logging startno longer toggles logging on and off. Now aborts if logging is already enabled.logging stopnow aborts if logging is not enabled.logging statusnow shows if logging is enabled or not.network policy_set_prefixrenamed tonetwork policy_set_pattern.network policy_unset_prefixrenamed tonetwork policy_unset_pattern.
1.6.0 - 2025-10-13
network find -host <hostname>option to search for networks with IPs assigned to the given host.
network community_remove_hostcommand not utilizing the-ipargument to disambiguate between networks when multiple networks have the same community name.policy host_addterminating prematurely when using multiple hosts and one of them is already a member of the policy.
1.5.1 - 2025-09-26
network policy_set_prefixandnetwork policy_unset_prefixcommands not working due to a typo in the field name.
1.5.0 - 2025-09-01
help healthcommand for checking the health of the server. The command will display "Unknown" for fields that are not implemented on the server.- Caching of API responses. Enabled by default. Configurable:
- Enable/disable caching (default:
true)- Config file:
cache=true|false - CLI:
--no-cache(flag)
- Config file:
- Cache time-to-live (TTL) in seconds (default:
300)- Config file:
cache_ttl=<seconds> - CLI:
--cache-ttl <seconds>
- Config file:
- Enable/disable caching (default:
1.4.2 - 2025-08-15
host infofor hosts with A(AAA)-records that point to networks not managed by MREG.network community_host_addraising a 404 error for hosts with IPs in networks not managed by MREG.
1.4.1 - 2025-08-06
ptr add -forcenow allows adding PTR records for IPs that are not in a network managed by MREG.
1.4.0 - 2025-06-20
- Configurable HTTP request timeout. The timeout can be set with the
--timeoutoption or with thetimeoutoption in the config file.
- Require
-forceforhost {a,aaaa}_removeif the argument is a CNAME. - Require
-forcewhen using network or broadcast addresses as arguments for the following commands:host addhost a_addhost aaaa_addhost a_changehost aaaa_change
host info <ip>command not working for IP addresses associated with multiple hosts.
1.3.0 - 2025-05-20
- Network policy commands:
network policy_addnetwork policy_createnetwork policy_deletenetwork policy_infonetwork policy_listnetwork policy_renamenetwork policy_removenetwork policy_set_descriptionnetwork policy_set_prefixnetwork policy_unset_prefixnetwork policy_attribute_addnetwork policy_attribute_createnetwork policy_attribute_deletenetwork policy_attribute_infonetwork policy_attribute_listnetwork policy_attribute_removenetwork policy_attribute_set_descriptionnetwork community_createnetwork community_deletenetwork community_infonetwork community_listnetwork community_renamenetwork community_set_descriptionnetwork community_host_addnetwork community_host_remove
network create -policyoption for specifying the policy of the network to create.- Error handling for DRF errors.
- Handling of 404 errors that do not contain a JSON payload.
1.2.4 - 2025-01-30
- Reverse zone management was completely broken. This affected all zone-related commands when using reverse zones.
1.2.3 - 2024-12-16
a_add&aaaa_add-forceoption to force use an IP from a network that cannot be found in MREG.
- Commands that try to find networks by IP raising a 404 error instead of a proper error message when no network can be found with the given IP.
1.2.2 - 2024-12-09
dhcp assocandhost addcommands displaying unique constraint error instead of a proper error message when a MAC is already associated with an IP.- Validation errors causing the application to crash instead of displaying a proper error message.
1.2.1 - 2024-12-02
- Host lookup with IPv6 addresses raising
ValidationErrorwhen no host can be found with the given address.
- Support for fetching hosts that have a valid IP/MAC address as their hostname.
1.2.0 - 2024-11-25
- Support for
help versionswhich shows versions of the CLI and the server for servers that have implemented the/meta/version(and/meta/librariesendpoints for superusers). - Support for
help whoamiwhich shows information about the current user as the server sees them. This includes the username, attributes, groups, and permissions. This command is only available if the server has implemented the/meta/usersendpoint. - Support for
help whois <username>which allows elevated users to see information about the given user. Also requires the/meta/usersendpoint to be implemented on the server.
- REPL command completion not showing descriptions for commands.
host infowith MAC address argument not working for hosts with multiple IPs associated with the same MAC address.- Failed token file write causing the application to crash.
- Connection strings without domains and with ports are now parsed properly for prompt interpolation.
1.1.0 - 2024-11-19
- Customizable prompt with string interpolation. The prompt can be customized with the
--promptoption or with thepromptoption in the config. The prompt can be customized with the following variables:{user}: Username of active user{proto}: Protocol part of the server URL{host}: Host/domain name part of the server URL{port}: Port part of the server URL (if any){domain}: Domain name. Defaults touio.noif not specified. Uses the domain specified with--domainor thedomainoption in the config.
- MAC adress validation. Now supports all common formats. See the Pydantic docs for more information.
host add: Re-introduced support for network/IP ending with/.- Automatically deduces the correct network to assign an IP from.
host add: No longer possible to assign network address (first address of subnet) or broadcast address (last address of subnet) to a host.
1.0.1 - 2024-10-21
- Rendering of top level command autocompletion in REPL.
OK:messages not being displayed outside of--recordmode
1.0.0 - 2024-10-12
The big Pydantic update. The entire codebase has been rewritten to use Pydantic for request and response validation. This brings with it a huge improvement to the development experience and the robustness of the code.
--versionoption to display current application version and exit. Version number is in the form ofmajor.minor.patchif installed from a published version. Shows a version number including the commit hash if installed from a git repository in the form ofmajor.minor.patch.dev123+gabc1234. See Default versioning scheme in the setuptools_scm documentation for more information.- The version can be accessed programmatically with
mreg_cli.__version__.
- The version can be accessed programmatically with
label set_descriptioncommand to set the description of a label.network list_excluded_rangescommand to list the excluded ranges of a network.- Application can now store tokens for multiple servers and will pick the correct one based on the server URL.
- Building binaries for Windows, Linux and MacOS, and publishing the package to PyPI on each GitHub release.
- The application now uses Pydantic internally to validate request and response data. This should make the code more robust and easier to maintain.
- Application now attempts to send JSON for every request. This should improve the consistency of the API responses.
- Version now follows Semantic Versioning 2.0.0 and is automatically determined based on the most recent git tag (
mreg-cli-v*). As part of this change, the verison has been bumped from 0.9.10 to 1.0.0. See the Added section for more information on how version numbers are accessed.
label rename -descoption. Description modification is now done through the newlabel set_descriptioncommand.
- Hopefully more than we broke.