feat: add auth password-login, pull, and push commands#422
Open
moranshe-max wants to merge 4 commits intomainfrom
Open
feat: add auth password-login, pull, and push commands#422moranshe-max wants to merge 4 commits intomainfrom
moranshe-max wants to merge 4 commits intomainfrom
Conversation
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.47-pr.422.e7d50a7Prefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.47-pr.422.e7d50a7"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.47-pr.422.e7d50a7"
}
}
Preview published to npm registry — try new features instantly! |
53d8672 to
60fd351
Compare
Paveltarno
reviewed
Mar 18, 2026
Add `base44 auth password-login` command for enabling/disabling username & password authentication. Introduces the `auth` command group and the core `auth-config` module with Zod schemas, API client, and camelCase transforms. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove interactive prompts in favor of explicit --enable and --disable flags. Add comprehensive input validation with agent-friendly error hints. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrate auth-config from standalone core module to the unified resources pattern. Add `auth pull` and `auth push` CLI commands for syncing auth configuration. Extend project config and deploy to support auth-config as a deployable resource. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
837aaa9 to
3cd3e7a
Compare
Replace removed runCommand/RunCommandResult imports with Base44Command and import RunCommandResult from @/cli/types.js to match the new command pattern introduced on main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Description
This PR introduces a new
authcommand group for managing app authentication settings from the CLI. It addsauth password-login(with--enable/--disableflags),auth pull(fetch remote auth config to local file), andauth push(sync local auth config to Base44). Thedeploycommand is also updated to push auth config automatically as part of deployment.Related Issue
None
Type of Change
Changes Made
packages/cli/src/cli/commands/auth/withindex.ts,password-login.ts,pull.ts, andpush.tscommandspackages/cli/src/core/resources/auth-config/resource module with API client, config file management, schema (Zod), and resource interfaceauthcommand inprogram.tsconfig.ts,schema.ts,types.ts) to includeauthDirand load auth config duringreadProjectConfig()deploycommand to push auth config to Base44 as part of the deployment flowauth password-login --enable/--disablenon-interactive flag-based API (no interactive prompts)auth_password_setup.spec.ts) and core unit tests (auth-password.spec.ts)Testing
npm test)Checklist
docs/(AGENTS.md) if I made architectural changesAdditional Notes
The
auth-configresource follows the establishedResource<T>pattern with separatepull.tsandpush.tsmodules, consistent with the existing resource architecture. Auth config is stored locally in the project'sauthDirand synced to/from the Base44 API.🤖 Generated by Claude | 2026-03-22 00:00 UTC