{"id":14155819,"url":"https://github.com/nuxt-hub/cli","last_synced_at":"2025-04-19T19:42:14.918Z","repository":{"id":226781813,"uuid":"759569733","full_name":"nuxt-hub/cli","owner":"nuxt-hub","description":"Build full-stack Nuxt application with NuxtHub command line interface (CLI).","archived":false,"fork":false,"pushed_at":"2025-04-14T21:06:35.000Z","size":616,"stargazers_count":62,"open_issues_count":5,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-14T21:49:49.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nuxt-hub.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-02-18T22:24:48.000Z","updated_at":"2025-04-14T21:06:38.000Z","dependencies_parsed_at":"2024-03-09T17:29:01.141Z","dependency_job_id":"bccc8e3f-7587-4b5c-888d-c574c4b24773","html_url":"https://github.com/nuxt-hub/cli","commit_stats":null,"previous_names":["nuxt-hub/cli"],"tags_count":63,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-hub%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-hub%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-hub%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-hub%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuxt-hub","download_url":"https://codeload.github.com/nuxt-hub/cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249783366,"owners_count":21325100,"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-08-17T08:05:01.583Z","updated_at":"2025-04-19T19:42:14.911Z","avatar_url":"https://github.com/nuxt-hub.png","language":"JavaScript","readme":"# NuxtHub CLI\n\nCommand Line Interface for the [NuxtHub Admin](https://admin.hub.nuxt.com).\n\n## Installation\n\nInstall the package globally:\n\n```sh\nnpm install -g nuxthub\n```\n\nOr use `npx` to run the CLI without installing it:\n\n```sh\nnpx nuxthub \u003ccommand\u003e\n```\n\n## Usage\n\n```bash\nUSAGE nuxthub init|deploy|link|unlink|open|manage|login|logout|logs|whoami\n\nCOMMANDS\n\n    init      Initialize a fresh NuxtHUb project, alias of nuxi init -t hub.  \n  deploy      Deploy your project to NuxtHub.                                   \n preview      Preview your project locally (using wrangler pages dev).   \n    link      Link a local directory to a NuxtHub project.                      \n  unlink      Unlink a local directory from a NuxtHub project.                  \n    open      Open in browser the project's URL linked to the current directory.\n  manage      Open in browser the NuxtHub URL for a linked project.             \n   login      Authenticate with NuxtHub.                                        \n  logout      Logout the current authenticated user.                            \n    logs      Display the logs of a deployment.                                 \n  whoami      Shows the username of the currently logged in user.\n  database    Manage database migrations.               \n  ensure    Ensure the NuxtHub Core module is installed and registered in the project.\n\nUse nuxthub \u003ccommand\u003e --help for more information about a command.\n```\n\n## Deploy\n\nTo deploy your project with NuxtHub, use the `nuxthub deploy` command. This will build your project and deploy it to your Cloudflare account with zero-configuration.\n\n```bash\n# Deploy to production or preview based on your current branch\nnuxthub deploy\n\n# Deploy to production\nnuxthub deploy --production\n\n# Deploy to preview\nnuxthub deploy --preview\n```\n\nSee [how to deploy with a GitHub action](https://hub.nuxt.com/docs/getting-started/deploy#github-action).\n\nhttps://github.com/user-attachments/assets/9d7d9206-1ee3-4f8f-a29d-8b9dd09b9913\n\n## Preview before deploy\n\nTo preview your project locally, you can use the `nuxthub preview` command. This will temporarily generate a `wrangler.toml` file and run `wrangler pages dev` to preview your project.\n\n```bash\nnuxthub preview\n```\n\nCurrent limitations:\n- The `--remote` flag is not supported\n- `hubAI()` will ask you connect within the terminal with wrangler\n- `hubBrowser()` is not supported as not supported by `wrangler pages dev`\n\n## Open in browser\n\nTo open your project in the browser, you can use the `nuxthub open` command. This will open the URL of your project in the default browser.\n\n```bash\n# Open the production or preview deployment based on your current branch\nnuxthub open\n\n# Open the production deployment\nnuxthub open --production\n\n# Open the latest preview deployment\nnuxthub open --preview\n```\n\n## Open the project admin\n\nTo open your project's admin in the browser, you can use the `nuxthub manage` command. This will open the NuxtHub admin URL of your project in the default browser.\n\n```bash\nnuxthub manage\n```\n\n## Debug\n\nTo debug the CLI, you can use the `DEBUG=1` environment variable. This will print the API call made and explicit errors.\n\n```bash\nDEBUG=1 nuxthub \u003ccommand\u003e\n```\n\n## License\n\n[Apache 2.0](./LICENSE)\n","funding_links":[],"categories":["others","JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-hub%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuxt-hub%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-hub%2Fcli/lists"}