KeyFlow CLI
Check a Markdown file in your terminal and upload it to KeyFlow as a draft, along with its local images.
Install command
curl -fsSL https://keyflow.me/install.sh | bashRequires Node.js and npm.
What you can do with the CLI
Upload images
Upload images referenced in your document.
Check a file
Check the title and document settings before uploading.
Run from a script
Use the same commands in a script or CI job.
Upload your first draft
Connect your account in the browser, then check and upload your file. A new file without a publication setting is saved as a private draft.
# Connect your account
keyflow login# Check and upload the file
keyflow check post.mdkeyflow push post.mdUpload with an AI assistant
Paste these instructions into an assistant that can run terminal commands. It will check the file and ask for approval before uploading or publishing.
You are uploading to KeyFlow with the KeyFlow CLI.
1. Run `keyflow guide` first and follow it. It has the current steps, frontmatter, image rules and KeyFlow Markdown syntax.
2. Never ask for, print, log, or store KeyFlow credentials, tokens, device credentials, or `.env` values. If the CLI is not logged in, ask the human to run `keyflow login`.
3. Run `keyflow check <file>` and fix every error before uploading.
4. Get the human's approval before `keyflow push`, and again before publishing publicly.
5. Report the post ID and URL that `keyflow push` prints. Do not claim a post is published unless the CLI said so.Important: inject KEYFLOW_DEVICE_CREDENTIAL only through a secret manager or local environment variable. Do not paste credentials into chat, logs, source code, or shared shell history.