{"id":21063968,"url":"https://github.com/dolphjs/dolph-cli","last_synced_at":"2025-05-16T02:32:11.551Z","repository":{"id":207877397,"uuid":"720241145","full_name":"dolphjs/dolph-cli","owner":"dolphjs","description":"Efficient and Fast CLI tool for generating, linking and managing dolphjs components, registering files and running dolphjs.","archived":false,"fork":false,"pushed_at":"2025-03-10T15:44:49.000Z","size":226,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-12T19:41:11.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dolphjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-11-17T22:40:11.000Z","updated_at":"2025-03-10T15:44:53.000Z","dependencies_parsed_at":"2024-05-18T00:31:42.141Z","dependency_job_id":"c28e13a0-ea7d-4f55-8bcf-5b5883432b92","html_url":"https://github.com/dolphjs/dolph-cli","commit_stats":null,"previous_names":["dolphjs/dolph-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolphjs%2Fdolph-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolphjs%2Fdolph-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolphjs%2Fdolph-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolphjs%2Fdolph-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dolphjs","download_url":"https://codeload.github.com/dolphjs/dolph-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254456016,"owners_count":22074078,"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":[],"created_at":"2024-11-19T17:47:52.401Z","updated_at":"2025-05-16T02:32:06.528Z","avatar_url":"https://github.com/dolphjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dolphjs cli\n\nThe dolphjs-cli is a tool used for efficient initialization and management of a dolphjs project.\n\n## Commands\n\n**new**: the alias for this command is `n`. This command is used to initialize / start a new project. It takes the name of the project as an option\n\n```bash\ndolph-cli new \u003cproject-name\u003e\n```\n\nor use `' . '` in place of `\u003cproject-name\u003e` to initialize the project in current directory.\n\nAfter this, you'll be prompted with few questions which would be used to configure your dolphjs project. Navigate to the project folder and run\n\n```bash\nyarn\n```\n\nto install all packages .\n\n**generate**: the alias for this command is `g` and is used to generate files and folders with setup code for :\n\n- controllers\n- services\n- models\n- routes\n\nIt is recommended to make use of the `generate` command when one wants to create these files because it generates code the dolphjs way. In a scenario when you want to create files for all of the above, let's say you want to write code for user logic and functionalities, use the `-a` flag, as in:\n\n```bash\ndolph-cli g -a user\n```\n\nthe command above creates a service, controller, model and routes file for `user` and set's you up for writing business logic. Alternatively, you might want to create one of the files (controllers, models, services, routes) so you make use of their independent flags:\n\n- controller:\n\n  ```bash\n  dolph-cli g -c \u003cname\u003e\n  ```\n\n- service:\n\n  ```bash\n  dolph-cli g -s \u003cname\u003e\n  ```\n\n- model:\n\n  ```bash\n  dolph-cli g -m \u003cname\u003e\n  ```\n\n- route:\n\n  ```bash\n  dolph-cli g -r \u003cname\u003e\n  ```\n\n## Credit\n\ndolphjs-cli is inspired by methane-cli [https://github.com/adedoyin-Emmanuel/methane-cli]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolphjs%2Fdolph-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolphjs%2Fdolph-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolphjs%2Fdolph-cli/lists"}