Veilfile

Journal · · 3 min read

Your push command now tells you when the link dies

Before November 24, veilfile push printed one line and stopped. You got the share URL and nothing else. The API response already carried the expiry and a flag for whether your plan had shortened the lifetime. The CLI threw both away. A link with an expiry you could not see was a link you could not plan around.

That changed in PR #26. A push still prints the URL first. Then it tells you when the link dies, in plain language, as a UTC date and time. If your plan shortened the lifetime you asked for, it says so. It also points you to Files, where you can manage or delete the upload. A push now looks like this:

$ veilfile push screenshot.png
https://veilfile.com/f/...
Expires December 8, 2026 at 2:31 PM UTC.
Note: the lifetime was adjusted to fit your plan, so this expiry is the one that applies.
Manage or delete this file under Files: https://veilfile.com/app/files/

The date and the shortened URL above are examples. The format is the real one.

The URL stays alone on stdout. That detail matters. Scripts that capture the link with url=$(veilfile push screenshot.png) still get only the link. The expiry, the note, and the Files pointer go to stderr, where a human reads them and a script ignores them.

The TTL note is the part worth paying attention to. Every plan has a maximum lifetime. Ask for more days than your plan allows with --ttl-days and the server lowers the lifetime to the plan maximum instead of refusing the upload. The note tells you what you got, not what you asked for. Before this change, that adjustment happened in silence. On the Free plan, you asked for three months, received a week, and had no way to know from the terminal.

If the server sends back an expiry the CLI cannot read, the push still succeeds. The URL prints, the Files pointer prints, and the expiry line stays out. A display problem never fails an upload that already worked.

The same release week brought a smaller change to how keys move around. veilfile key prints the stored key and nothing else. It makes no server call. The key goes to stdout and any notes go to stderr, so export VEILFILE_API_KEY=$(veilfile key) hands the key to an agent without ever writing it into a prompt or a file. The command never prints the value of VEILFILE_API_KEY itself. If the variable is already set in the shell, it says so on stderr and prints the stored key anyway.

veilfile logout respects that handoff. If the stored key is also the value of VEILFILE_API_KEY, logout deletes the local copy and leaves the server key alone. Revoking it would cut off whatever reads the variable, and logout has no way to know what that is. Unset the variable and revoke the key in the dashboard if you mean to end it.

Small output changes like these are easy to skip over. They are also the difference between a tool you trust and a tool you work around. A link with a visible expiry is a link you can plan around. A key that moves through one documented command is a key that stays out of prompts and files. The push command now tells you the truth about what it just did. Read the lines under the URL. They are the part that changed.