final-form/rff-cli-example

An example of how to use 🏁 React Final Form in a CLI application with Ink

78

stars

5

commits

JavaScript

primary language

Feb 2, 2026

updated

cli
command-line
command-line-tool
final-form
forms
ink
javascript
node
pastel
react-final-form

README

rff-cli-example

This package is an example of how 🏁 React Final Form can be used to maintain form data in a CLI app using Ink and Pastel, by @vadimdemedes.

The app simulates a project scaffolding CLI app, like what happens when you run npm init.

Features

  • Text inputs
  • Select inputs
  • Multi-Select inputs
  • Sync validation – Some of the fields are required, and others must conform to a certain structure.
  • Async validation – it will check to see if the package name you have selected is available on NPM.

The main purpose is to demonstrate a proof of concept, but you are welcome to copy and reuse the TextInput, SelectInput, and MultiSelect input components as you wish.

Run it

$ npx rff-cli-example

Contributors

erikras

5 commits

final-form/rff-cli-example

An example of how to use 🏁 React Final Form in a CLI application with Ink

78

stars

5

commits

JavaScript

primary language

Feb 2, 2026

updated

cli
command-line
command-line-tool
final-form
forms
ink
javascript
node
pastel
react-final-form

README

rff-cli-example

This package is an example of how 🏁 React Final Form can be used to maintain form data in a CLI app using Ink and Pastel, by @vadimdemedes.

The app simulates a project scaffolding CLI app, like what happens when you run npm init.

Features

  • Text inputs
  • Select inputs
  • Multi-Select inputs
  • Sync validation – Some of the fields are required, and others must conform to a certain structure.
  • Async validation – it will check to see if the package name you have selected is available on NPM.

The main purpose is to demonstrate a proof of concept, but you are welcome to copy and reuse the TextInput, SelectInput, and MultiSelect input components as you wish.

Run it

$ npx rff-cli-example

Contributors

erikras

5 commits

Languages

JavaScript

100.0%