Skip to content

Conversation

@OsamaRab3
Copy link
Contributor

Description

This PR introduces the initial setup for removing and fully migrating the CLI to Oclif.
The goal is to simplify the CLI implementation, remove the generator dependency, and make future features easier to maintain and extend.

All commands are currently working as expected, but I haven’t run the full automated test suite yet

Current Progress

Implemented so far

  • Replaced Yeoman-based commands with Oclif commands.
  • Added the new init implementation using Oclif.
  • fablo init now accepts the following optional features (order does not matter):
fablo init [node] [dev] [rest] [ccaas] [gateway]
  • Added initial Oclif commands for:
    • up
    • down
    • start
    • stop
    • recreate
    • prune

Basic usage examples

Run the network:

ffablo up -c fablo-config.json

The -c flag is optional if omitted, it will default to fablo-config.json just like the original Fablo CLI

Important Note

  • I temporarily named the executable ffablo to avoid conflicts with the existing fablo command during development.
    Once the migration is complete and fully tested, the name will be switched back to fablo
  • I haven’t removed the old Yeoman-based code yet.
    Once the new Oclif implementation is fully completed and fully tested, I will remove all legacy code.

@OsamaRab3
Copy link
Contributor Author

To run and test it locally, please follow these steps

npm install
npm run build
npm link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant