Skip to content

Conversation

@Paveltarno
Copy link
Contributor

@Paveltarno Paveltarno commented Feb 1, 2026

Note

Description

Adds a new site browse command that opens the published site URL in the user's browser. This PR also refactors the site command structure by introducing a parent site command with deploy and browse as subcommands, making the CLI more organized and following a consistent pattern with other command groups.

Related Issue

None

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Other (please describe):

Changes Made

  • Added new site browse command that fetches and opens the published site URL
  • Created getSiteUrl() utility function in src/cli/utils/urls.ts that calls the Base44 API to retrieve the published URL
  • Refactored site commands into a proper command group structure with src/cli/commands/site/index.ts as the parent command
  • Modified getSiteDeployCommand() to return just the deploy subcommand instead of the entire site command
  • Added open package integration to open URLs in the browser (skipped in CI environments)
  • Updated tests to reflect the command structure changes

Testing

  • I have tested these changes locally
  • I have added/updated tests as needed
  • All tests pass (npm test)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • I have updated AGENTS.md if I made architectural changes

Additional Notes

The browse command will not attempt to open a browser in CI environments (checks process.env.CI). The command uses the new /api/apps/platform/{id}/published-url endpoint to fetch the live site URL dynamically.


🤖 Generated by Claude | 2026-02-01 20:00 UTC

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/cli@0.0.26-pr.169.9b72e3c

Prefer not to change any import paths? Install using npm alias so your code still imports base44:

npm i "base44@npm:@base44-preview/cli@0.0.26-pr.169.9b72e3c"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "base44": "npm:@base44-preview/cli@0.0.26-pr.169.9b72e3c"
  }
}

Preview published to npm registry — try new features instantly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants