AI video from the command line
Generate a finished narrated video from a terminal or a CI job. Log in by approving a code in a browser, so no secret is ever pasted into a shell.
npm install -g @makeaivideo/cliOn npm as @makeaivideo/cli, source on GitHub, MIT licensed.
What it is for
Render from a CI job
Generate a video on merge, on release, or on a schedule, without a browser anywhere in the loop. The device-code login means a build machine never needs a secret pasted into it interactively.
Batch a backlog
Loop a list of topics, scripts or article URLs from a shell script and collect the finished MP4s. The same credit allowance as the app, no separate API bill.
Try the API without writing code
Before you reach for the SDK, the CLI is the fastest way to see what a request and a finished render actually look like.
Work on a remote machine
Log in on a server or a container by approving a short code in a browser on any other device. Nothing sensitive is typed into the remote shell.
Login without a shared secret
The CLI uses the device-code flow from RFC 8628. The machine asks for a short code, a human approves it in a browser somewhere else, and the machine collects the key by polling. It is the right shape for a server, a container or a build agent, where pasting a long-lived secret into a shell history is the thing you want to avoid.
The full flow, with curl · TypeScript SDK · Agent integration · Developer hub
CLI FAQs
- Is there a MakeAIVideo CLI?
- Yes. Install it with npm install -g @makeaivideo/cli. It is MIT licensed and the source is public on GitHub.
- How do I log in from a server with no browser?
- The device-code flow. The machine requests a short code, you approve it in a browser on any other device, and the machine collects its API key by polling. No secret is ever pasted into the terminal.
- Do I need the CLI to use the API?
- No. Everything the CLI does is available over plain HTTP with curl, or through the TypeScript SDK. The CLI is a convenience for terminals and CI, not a requirement.
- Does the CLI cost extra?
- No. It is included on every plan, drawing on the same monthly credit allowance as the app, with no separate rate card. Plans start at $9 a month.
- Can I recover my API key if I lose it?
- No. It is returned once on the authorized response and never shown again, so write it straight to your config or keychain. If it is lost, issue a new key and revoke the old one.
- Is it open source?
- Yes, MIT licensed at github.com/makeaivideo-ai/cli, alongside the SDK and the MCP server.