Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .github/assets/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ User-visible and operationally material changes. Release notes with every commit

## [Unreleased]

## [0.3.4] - 2026-11-24
### Added
- Demo GIF in the README, with its recording script in `docs/demo.tape`.

## [0.3.3] - 2026-11-24
### Changed
- New logo and header in light and dark variants for the README and the project site.
Expand Down Expand Up @@ -33,7 +37,8 @@ First published release (Node.js; versions before it were never tagged).
- `migadu catchall`, `migadu spam` and `migadu bcc`, driven through the admin panel's forms.
- Releases are tagged, built and published automatically when the version changes on `main`.

[Unreleased]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.3...HEAD
[Unreleased]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.4...HEAD
[0.3.4]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.3...v0.3.4
[0.3.3]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.2...v0.3.3
[0.3.2]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.1...v0.3.2
[0.3.1]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.0...v0.3.1
Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Applies to humans and coding agents alike.
3. Run `scripts/verify` locally (needs [Rust](https://rustup.rs) 1.85 or newer). CI runs the same command on Linux, macOS and Windows and is the authoritative gate.
4. Open a pull request: shared and production code enters only through a PR with required checks.

## Demo GIF
The README GIF is recorded from `docs/demo.steps` and `docs/demo.tape` with [VHS](https://github.com/charmbracelet/vhs): build the release binary, put it on your `PATH` (`export PATH="$PWD/target/release:$PATH"`), then run `vhs docs/demo.tape`. It only uses commands that need no account (a fake key gets a real 401 from Migadu). Re-record it when messages or output change.

## Commit convention
Conventional Commits, see `.gitmessage.txt`: `type(scope)!: description`.
Enable the template once: `git config commit.template .gitmessage.txt`.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "migadu-cli"
version = "0.3.3"
version = "0.3.4"
edition = "2021"
rust-version = "1.85"
description = "Cross-platform CLI for the Migadu email hosting API, with password-manager credential lookup."
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ The maintained command line for [Migadu](https://www.migadu.com) email hosting:

Migadu's admin panel is great for one mailbox and slow for forty. `migadu` wraps the Migadu REST API so domains, mailboxes, aliases, identities, forwardings and rewrites are scriptable, and the API key never has to sit in a dotfile. It ships as one small native binary (about 1.4 MB, written in Rust) and is not an official Migadu product.

<p align="center">
<img src=".github/assets/demo.gif" alt="Terminal recording: migadu reports missing credentials, rejects an unsupported password-manager reference, refuses to delete without --yes, and shows Migadu's 401 for a fake key" width="900">
</p>

## Features

- **Whole API surface** — domains (records, diagnostics, usage, activate), mailboxes, aliases, rewrites, identities and forwardings, plus `migadu api <METHOD> <path>` for any other endpoint.
Expand Down
16 changes: 16 additions & 0 deletions docs/demo.steps
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# hide
export HOME="$(mktemp -d)"
export MIGADU_EMAIL=me@example.org MIGADU_DOMAIN=example.org
export PS1='$ '
clear
# show
# type-speed 25ms
migadu domains list
# sleep 1200ms
MIGADU_API_KEY_REF=oops migadu domains list
# sleep 1200ms
export MIGADU_API_KEY=not-a-real-key
migadu mailboxes delete hello
# sleep 1200ms
migadu domains list
# sleep 2s
85 changes: 67 additions & 18 deletions docs/demo.tape
Original file line number Diff line number Diff line change
@@ -1,29 +1,78 @@
# Demo recording script for the README GIF, for VHS (https://github.com/charmbracelet/vhs).
# Record against a throwaway domain and a test mailbox, then delete them:
# vhs docs/demo.tape # writes .github/assets/demo.gif
# Needs MIGADU_EMAIL set and MIGADU_API_KEY_REF pointing at your password manager.
# Record: vhs docs/demo.tape
# Edit the steps below and re-run vhs after the tool changes.

Output .github/assets/demo.gif
Require migadu

Set Shell "bash"
Set FontSize 18
Set Width 1100
Set Height 600
Set Theme "Dracula"
Set TypingSpeed 40ms
Set Width 1300
Set Height 420
Set Padding 20
Set Framerate 24
Set TypingSpeed 25ms
Set Theme "Catppuccin Mocha"
Set WaitPattern /\$$/

Hide
Type "export PS1='$ '"
Enter
Type "clear"
Enter
Sleep 200ms
Show

Type "# New project, new mailboxes: done in the terminal"
Hide
Type 'export HOME="$(mktemp -d)"'
Enter
Wait
Type "export MIGADU_EMAIL=me@example.org MIGADU_DOMAIN=example.org"
Enter
Sleep 800ms
Type "export MIGADU_API_KEY_REF='op://Private/Migadu/credential' # the key never touches a file"
Wait
Type "export PS1='$ '"
Enter
Wait
Type "clear"
Enter
Wait
Type "clear"
Enter
Sleep 200ms
Show

Type@25ms "migadu domains list"
Sleep 400ms
Enter
Wait
Sleep 1s
Type "migadu mailboxes create -d example.org -f local_part=hello -f name=Hello -f password_method=invitation -f password_recovery_email=me@example.net"

Sleep 1200ms
Type@25ms "MIGADU_API_KEY_REF=oops migadu domains list"
Sleep 400ms
Enter
Sleep 3s
Type "migadu aliases create -d example.org -f local_part=support -f destinations=hello@example.org"
Wait
Sleep 1s

Sleep 1200ms
Type@25ms "export MIGADU_API_KEY=not-a-real-key"
Sleep 400ms
Enter
Sleep 3s
Type "migadu mailboxes list -d example.org -o table"
Wait
Sleep 1s

Type@25ms "migadu mailboxes delete hello"
Sleep 400ms
Enter
Sleep 3s
Type "migadu mailboxes delete -d example.org hello --yes"
Wait
Sleep 1s

Sleep 1200ms
Type@25ms "migadu domains list"
Sleep 400ms
Enter
Wait
Sleep 1s

Sleep 2s

Sleep 3s
Loading