{"id":13757722,"url":"https://github.com/fluents/cli-chain","last_synced_at":"2025-05-10T05:32:16.202Z","repository":{"id":57199953,"uuid":"90128008","full_name":"fluents/cli-chain","owner":"fluents","description":"easy, powerful, interactive, fluent cli.","archived":false,"fork":false,"pushed_at":"2017-05-04T23:52:05.000Z","size":29,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-05T14:03:08.257Z","etag":null,"topics":["chain","cli","config","fluent","interactive","prompt","step","ui"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluents.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-03T08:48:09.000Z","updated_at":"2017-05-25T07:55:47.000Z","dependencies_parsed_at":"2022-09-16T15:02:39.798Z","dependency_job_id":null,"html_url":"https://github.com/fluents/cli-chain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluents%2Fcli-chain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluents%2Fcli-chain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluents%2Fcli-chain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluents%2Fcli-chain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluents","download_url":"https://codeload.github.com/fluents/cli-chain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253371076,"owners_count":21897998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chain","cli","config","fluent","interactive","prompt","step","ui"],"created_at":"2024-08-03T12:00:46.774Z","updated_at":"2025-05-10T05:32:15.863Z","avatar_url":"https://github.com/fluents.png","language":"JavaScript","funding_links":[],"categories":["My Fluent Packages"],"sub_categories":[],"readme":"# 🖥⛓ cli-chain\n\n[![NPM version][cli-chain-npm-image]][cli-chain-npm-url]\n[![MIT License][license-image]][license-url]\n[![fliphub][gitter-badge]][gitter-url]\n[![flipfam][flipfam-image]][flipfam-url]\n\n[cli-chain-npm-image]: https://img.shields.io/npm/v/cli-chain.svg\n[cli-chain-npm-url]: https://npmjs.org/package/cli-chain\n[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: https://spdx.org/licenses/MIT\n[gitter-badge]: https://img.shields.io/gitter/room/fliphub/pink.svg\n[gitter-url]: https://gitter.im/fliphub/Lobby\n[flipfam-image]: https://img.shields.io/badge/%F0%9F%8F%97%20%F0%9F%92%A0-flipfam-9659F7.svg\n[flipfam-url]: https://www.npmjs.com/package/flipfam\n\n\u003e easy, powerful, interactive, fluent cli.\n\n## [📖 documentation](./docs)\n\n## [📘 examples](./examples)\n\nextending [vorpal](https://github.com/dthree/vorpal) it comes with all the goodies, nestable interactive command action stories with *~10x* less lines of code than any other lib.\n\n![allthat](https://cloud.githubusercontent.com/assets/4022631/24635847/06b3d836-188b-11e7-9e5c-f3362c8b70ca.gif)\n\n```js\nconst {CLI, log} = require('cli-chain')\n\nCLI.program()\n  .command('release')\n    .actionPrompt('confirm')\n      .type('confirm')\n      .message('Are you sure you want to release?')\n    .step('env')\n      .checkbox('production', true)\n      .checkbox('development', false)\n    .then((args) =\u003e {\n      if (args.continue) log.yellow('Good move.').echo()\n      else log.bold('Off we go!.').data(args).echo()\n    })\n  .command('skeleton')\n    .alias('seed')\n    .alias('scaffold')\n    .actionPrompt('is this cool or what?', 'confirm')\n  .parse()\n  .show()\n```\n\n## storytelling\n\n![cli](https://cloud.githubusercontent.com/assets/4022631/24635848/06c91a0c-188b-11e7-9d7b-9c6f1c433d46.gif)\n\n```js\nconst CLI = require('cli-chain')\n\nconst easyButton = CLI\n  .step('presets', 'checkbox', '[presets message]')\n    .checkbox('production', true)\n    .checkbox('development', false)\n  .step('approved')\n    .checkbox('magical', true)\n    .checkbox('unicorns', false)\n      .child('unicorn babies', 'input')\n        .input('so cute!')\n        .toSteps()\n  .step('confirm or deny?', 'confirm')\n    .child('fosho fosho?', 'confirm')\n    .toSteps()\n  .step('view', 'list')\n    .choice('React')\n    .choice('Inferno')\n    .choice('Vue')\n    .choice('Angular')\n    .choice('other')\n    .step('other', 'input').when(answers =\u003e answers.view == 'view.other')\n\neasyButton.run()\n```\n\n\n## 👽 exports\n\n```js\nconst {\n  vorpal,\n  inquirer,\n  log,\n\n  Program,\n  Stepper,\n  Steps,\n  Question,\n  Choice,\n  Core,\n} = require('cli-chain')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluents%2Fcli-chain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluents%2Fcli-chain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluents%2Fcli-chain/lists"}