Skip to main content

dartisan_cli 1.0.0-beta.3 copy "dartisan_cli: ^1.0.0-beta.3" to clipboard
dartisan_cli: ^1.0.0-beta.3 copied to clipboard

dartisan, the Daravel command-line interface. Creates projects, runs the dev server with hot reload, generators, migrations, queues and native builds.

Daravel

dartisan_cli #

dartisan, the command-line interface of Daravel, a Laravel-inspired, AOT-native backend framework for Dart.

dart pub global activate dartisan_cli
dartisan new blog                  # api template: auth, users, tokens, tests, CI
dartisan new tiny --template=minimal

Inside a project, the project-bound CLI (bin/dartisan.dart) knows your application:

Group Commands
Project about, doctor [--production], key:generate, stub:publish, lint, cache:clear, storage:link, env:encrypt, env:decrypt, env:obfuscate, adopt <laravel-path>
Serve, test & build serve [--watch] [--isolates=N] [--embed-queue] [--embed-scheduler], test [--conformance] [--security] [--coverage], build [--with-cli] [--docker], route:list, openapi:generate, coordinator:stats
Database migrate, migrate:status, migrate:rollback, migrate:reset, migrate:fresh, db:seed, model:sync
Generators make:model, make:migration, make:controller, make:request, make:middleware, make:job, make:policy, make:event, make:listener, make:resource, make:rule, make:observer, make:provider, make:command, make:seeder, make:factory, make:test
Queue & schedule queue:work, queue:failed, queue:retry, queue:forget, queue:flush, queue:clear, queue:pause, queue:continue, queue:restart, schedule:work, schedule:run, schedule:list

serve --watch hot-reloads through the Dart VM service; build runs dart build cli and produces a native bundle with SQLite included. openapi:generate documents request bodies and responses from the rules and schemas declared on routes (.validates(...), .returns(...)), and doctor --production is a pre-flight check for container entrypoints.

To embed the runner in your own entrypoint, see example/main.dart. Documentation: https://github.com/daravel-dev/daravel/blob/main/docs/guide/index.md.

License and trademarks #

MIT. "Laravel" is a trademark of Laravel Holdings Inc.; "Dart" and "Flutter" are trademarks of Google LLC. Daravel is an independent project, not affiliated with or endorsed by either. Code generated by dartisan belongs to you.

0
likes
160
points
--
downloads

Documentation

Documentation
API reference

Publisher

verified publisherdaravel.teoprayoga.my.id

dartisan, the Daravel command-line interface. Creates projects, runs the dev server with hot reload, generators, migrations, queues and native builds.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#cli #codegen #server #backend #openapi

License

MIT (license)

Dependencies

args, daravel, daravel_lints, path, vm_service, watcher

More

Packages that depend on dartisan_cli