Katana CLI
[GitHub
](https://github.com/mathrunet) | [YouTube
](https://www.youtube.com/c/mathrunetchannel) | [Packages
](https://pub.dev/publishers/mathru.net/packages) | [Twitter
](https://twitter.com/mathru) | [Threads
](https://threads.net/@mathrunet) | [LinkedIn
](https://www.linkedin.com/in/mathrunet/) | [mathru.net
](https://mathru.net)
Command line interface used in the Masamune framework.
The following features are available
- Project creation and optimization against the Masamune framework
- Code template generation
- Automatic code generation with build_runner
- Other settings
Installation
Install with the following command.
flutter pub global activate katana_cli
Check the dependencies of the commands used internally. If these do not all pass, it may not work properly.
katana doctor
How to use
The following commands are available
katana [command] [subcommand] [optional parameters]
Help for the command is available at
katana help
Project Creation
Execute the following command in the folder where the project was created.
The Application ID
should include the ID in the reverse domain (com.test.myapplication).
katana create [Application ID(e.g. com.test.myapplication)]
Code generation
The following commands can be used to generate each code template.
katana code [Code ID] [Optional Parameters]
Page
Create page templates under lib/pages
.
katana code page [PageName]
Collection Model
Create a collection model under lib/models
.
katana code collection [ModelName]
Document Model
Create a document model under lib/models
.
katana code document [ModelName]
Controller
Create controllers under lib/controllers
.
katana code controller [ControllerName]
For other codes, please see Help.
Automatic code generation with build_runner
You must have build_runner installed in your project in order to run it.
flutter pub add --dev build_runner
Automatic code generation
If you want to perform automatic code generation as a one-shot, execute the following command.
katana code generate
Code generation monitoring
If you want to monitor code changes and automatically generate code when changes are made, execute the following command.
katana code watch
For other commands, please see Help.
GitHub Sponsors
Sponsors are always welcome. Thank you for your support!
Libraries
- action/ads/ads
- action/agora/agora
- action/app/animate
- action/app/att
- action/app/calendar
- action/app/camera
- action/app/csr
- action/app/deeplink
- action/app/geocoding
- action/app/icon
- action/app/info
- action/app/introduction
- action/app/keystore
- action/app/local_notification
- action/app/location
- action/app/openai
- action/app/p12
- action/app/picker
- action/app/privacy_manifests
- action/app/speech_to_text
- action/app/spread_sheet
- action/app/text_to_speech
- action/ecosystem/ecosystem
- action/firebase/algolia
- action/firebase/authentication
- action/firebase/deploy
- action/firebase/dynamic_links
- action/firebase/init
- action/firebase/messaging
- action/firebase/scheduler
- action/firebase/terms_and_privacy
- action/git/action
- action/git/hook
- action/git/platform/android
- action/git/platform/ios
- action/git/platform/web
- action/git/review
- action/mail/gmail
- action/mail/send_grid
- action/post/firebase_deploy_post_action
- action/purchase/purchase
- action/stripe/stripe
- command/apply
- command/cer/cer
- command/code/code
- command/code/server/server
- command/code/tmp/tmp
- command/create
- command/deploy
- command/doctor
- command/git/git
- command/module
- command/pub/pub
- command/store/store
- config
- katana_cli
- Command line tool for Masamune/Katana Framework. It initializes the project and initializes the services.