{"id":21153317,"url":"https://github.com/alosaur/cli","last_synced_at":"2025-07-09T10:33:35.457Z","repository":{"id":41047821,"uuid":"336787984","full_name":"alosaur/cli","owner":"alosaur","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-23T06:29:00.000Z","size":44,"stargazers_count":2,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T13:24:35.525Z","etag":null,"topics":["alosaur","cli","deno"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alosaur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-07T13:02:27.000Z","updated_at":"2024-01-27T18:16:12.000Z","dependencies_parsed_at":"2023-02-12T21:01:43.940Z","dependency_job_id":null,"html_url":"https://github.com/alosaur/cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alosaur/cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alosaur%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alosaur%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alosaur%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alosaur%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alosaur","download_url":"https://codeload.github.com/alosaur/cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alosaur%2Fcli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264439176,"owners_count":23608475,"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":["alosaur","cli","deno"],"created_at":"2024-11-20T10:54:21.476Z","updated_at":"2025-07-09T10:33:35.037Z","avatar_url":"https://github.com/alosaur.png","language":"TypeScript","readme":"[中文说明](https://github.com/alosaur/cli/blob/master/README_zh.md)\n\n# Command interface for Alosaur application\n\n`deno run --allow-read --allow-write --allow-net https://deno.land/x/alosaur/cli.ts`\n\n## Getting start\n\nFor generate static files\n\n`deno run --allow-read --allow-write --allow-net https://deno.land/x/alosaur/cli.ts g controller testName`\n\nFor generate project\n\n`deno run --allow-read --allow-write --allow-net https://deno.land/x/alosaur/cli.ts new default myProject`\n\nIn local, run\n\n```ts\n// generate component home\ndeno run --allow-read --allow-write --allow-net cli.ts g c home\n```\n\n## Enviroments\n\nThe Github API is used to generate templates. By default Github has some\nlimitation, in most cases this limitation should be enough. But if you exceed\nthis limit you can run the generation script with env variable GITHUB_TOKEN.\nExample:\n`GITHUB_TOKEN=123 deno run --allow-read --allow-write --allow-net cli.ts new basic MyProject`\n\n\u003e Generate personal tokens: https://github.com/settings/tokens \u003e new token \u003e\n\u003e Select scopes \u003e check \"Access public repositories\"\n\n## Commands\n\n### alosaur new\n\n`deno run --allow-read --allow-write --allow-net cli.ts new basic MyApp`\n\n| Property                                                        | Description                                                                                 |\n| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |\n| `basic`, `cors`, `db`, `default`, `handlebars`, `spa`, `static` | Generate default application with collections in Alosaur examples or specific path resource |\n\n### alosaur g\n\nGenerate template.\n\nExample: `alosaur g controller name`\n\n| Property   | Alias | Description                                   |\n| ---------- | ----- | --------------------------------------------- |\n| area       | a     | Generate area                                 |\n| controller | c     | Generate controller                           |\n| class      |       | Generate class                                |\n| service    | s     | Generate service with `@Injectable` decorator |\n| hook       | h     | Generate hook                                 |\n| middleware | m     | Generate middleware                           |\n| path       |       | *                                             |\n\n\u003e *path: Generate one template file from url, template support the Mustache\n\u003e render. Example: `deno run --allow-read --allow-write --allow-net\n\u003e https://raw.githubusercontent.com/alosaur/cli/main/mod.ts path\n\u003e http://myhost.com/test.template name\n\n### alosaur run [TODO]\n\nRun multiple applications with configs\n\n### alosaur help [TODO]\n\n### alosaur openapi [TODO]\n\nBuild openapi docs to specific path or default to 'openapi.json'\n\n### alosaur e2e [TODO]\n\nE2E tests to REST or websockets endpoints\n\n### alosaur test [TODO]\n\nWrapper over `deno test`\n\n---\n\n## Contributing\n\nYou can put any template you want in any of the generate or apps folders. Just\nadd the desired template and change the source code file `generate.ts` or\n`new.ts`\n\nYou can also possible to improve template heplers for Mustach\n`template.helpers.ts`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falosaur%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falosaur%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falosaur%2Fcli/lists"}