Ink
Developer CLI · Free
A React renderer for terminal interfaces: lets you create interactive CLIs from components and manage their state.
Also known as: vadimdemedes/ink; ink; react-cli; terminal-react

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Create an interactive CLI from React components
- Connect keyboard input and output to CLI operations
Example workflow
A possible workflow; this is not a report of hands-on testing.
Create an interactive CLI from React components.
Before you start
- Project files or environment.
- A shell and supported platform.
Steps
- Describe terminal UI components and workflow state.
- Connect keyboard input and output to CLI operations.
- Save the working command or script and the result criteria.
Check your result
- The command correctly handles paths, Unicode, and invalid inputs.
- Repeat runs behave predictably; credentials do not appear in the output.
Choosing Ink
Create an interactive CLI from React components
Choose this when
- Create an interactive CLI from React components
- Connect keyboard input and output to CLI operations
Requirements
- Configure Node.js and JSX transformation, for example Babel with a React preset, or use the documented create-ink-app.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
- Ink renders in the terminal; DOM elements and browser CSS cannot be treated as ready-made terminal widgets.
Frequently asked questions
What can you use for free in Ink?
Code and local use under MIT.
What additional costs might arise with Ink?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Ink?
MIT for the code; dependencies have separate licenses.
How do you get started with Ink?
Describe terminal UI components and workflow state. Connect keyboard input and output to CLI operations. Save the working command or script and the result criteria.
Why can't a browser React component simply be moved into Ink?
Ink uses its own renderer, Text and Box components, and flex layout through Yoga. JSX and React state are familiar, but output goes to the terminal. Terminal components and JSX build configuration are required.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Ink
- CLI
- Development