{"id":22205362,"url":"https://github.com/stevertus/objd-cli","last_synced_at":"2025-09-11T06:35:06.378Z","repository":{"id":107780798,"uuid":"202876534","full_name":"Stevertus/objD-cli","owner":"Stevertus","description":"The offical CLI for the objd framework to create, modify, publish and run projects","archived":false,"fork":false,"pushed_at":"2022-03-02T21:02:19.000Z","size":2840,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T02:22:31.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Stevertus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-17T12:11:38.000Z","updated_at":"2023-10-18T06:49:16.000Z","dependencies_parsed_at":"2023-04-11T08:03:22.076Z","dependency_job_id":null,"html_url":"https://github.com/Stevertus/objD-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Stevertus/objD-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stevertus%2FobjD-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stevertus%2FobjD-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stevertus%2FobjD-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stevertus%2FobjD-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stevertus","download_url":"https://codeload.github.com/Stevertus/objD-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stevertus%2FobjD-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274589627,"owners_count":25312971,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-02T17:30:04.692Z","updated_at":"2025-09-11T06:35:06.344Z","avatar_url":"https://github.com/Stevertus.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# objD CLI\n\nThe objD CLI is an additional package to handle execution, building and deploying of your project. To activate the global package(will be available anywhere on your system), run this command:\n\n```\ndart pub global activate objd_cli\n```\n\nThis will add the commands to your console.\nTo run a command run:\n\n```\nobjd [command] [args]\n```\n\nOR\n\n```\ndart pub global run objd_cli [command] [args]\n```\n\n\u003e If the objd command is not available, you have to add the pub cache to your system path. Follow this tutorial: [https://www.dartlang.org/tools/pub/cmd/pub-global#running-a-script-from-your-path](https://www.dartlang.org/tools/pub/cmd/pub-global#running-a-script-from-your-path)\n\n## Commands\n\n- **help** - opens a help menu with all commands\n- **new** [project_name] - generates a new project from a boilerplate\n- **run** [project_root] - builds one project\n- **serve** [directory] [project_root] - watches the directory to change and builds the project on change\n- **server inject** [jar-file] - injects a server file(use bukkit with plugins to reload automatically) before starting the server(The file is not included in the package due to legal reasons)\n- **server start** [world_dir] - copies the world into the server directory and starts the server\n\n## Build Options\n\nYou can use certain arguments to pass options to the build methods.\nThis argument list can directly be edited in createProject:\n\n```dart\ncreateProject(\n\tProject(...),\n\t[\"arg1\",\"arg2\", ... ] // arguments as optional List\n)\n```\n\n**OR** (what I recommend) you can just take the program arguments from main:\n\n```dart\nvoid main(List\u003cString\u003e args) {\n  createProject(\n    Project(...),\n    args\n  );\n}\n```\n\nThis allows you to use the arguments in the execution command, like:\n\n- `dart index.dart arg1 --min`\n- `objd run index.dart arg1 --min`\n- `objd serve . index.dart --min`\n\n**All Available Arguments:**\n\n- `--hotreload`: Saves the state of your project and compares just the latest changes.\n- `--full`: Generates the full project(just for objd serve!).\n- `--min`: This minifies the file amount by ignoring the mcmeta and tag files\n- `--gen`: Using this flag runs darts build_runner before objd to apply all necessary code generators\n- `--clean`: Easily remove all files and folders that would be generated by objD with the same options to easily clean junk.\n- `--prod`: This creates a production build of your project and saves it into a zipped datapack.\n  In Production Comments and line breaks are removed and every widget can access the prod value in Context to get notified.\n- `--debug`: This creates a debug json file in your project root, that lists all properties and other generated files\n- `--zip`: Creates an Zip archive instead of a folder with your datapack contents(default in production more)\n- `--no-zip`: Forces the usual folder output instead of zip\n- `--useIsolates`: Experimental option for spawing a seperate Isolate(Multithreading) for each filesystem action(usually slower)\n\n## Hotreload\n\nThe hotreload option is an experimental feature, that just looks at the things you changed since the last build. This can improve performance significantly especially for big projects with many generated mcfunctions.\n\nThis feature is enabled by default for `objd serve`, if you include the args.\nYou can disable it with the `--full` option.\n\n**How it works:**\n\nobjD saves a representation of your project in the objd.json file of your project.\nFor each new build or reload it checks which parts of the project you changed and just generates the new necessary files to implement your change in the datapack.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevertus%2Fobjd-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevertus%2Fobjd-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevertus%2Fobjd-cli/lists"}