-
Notifications
You must be signed in to change notification settings - Fork 4
Update base44-cli skill to main March 18, 2026 #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9d344e2
Update base44-cli skill to main March 18, 2026
github-actions[bot] 818a71b
Apply suggestion from @netanelgilad
netanelgilad 3c47f01
Expand exec command description with SDK use cases
github-actions[bot] 17f3969
Fix Script Execution section: move description above table, fix funct…
github-actions[bot] 978b4dc
docs: update README to match skills (skill table, install, or links)
github-actions[bot] 58495c3
Emphasize base44 as preinitialized global SDK client in exec.md
github-actions[bot] 56da484
Add SDK reference bullet to exec.md globals list
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| v0.0.45 | ||
| v0.0.46 |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # base44 exec | ||
netanelgilad marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Run a script with the Base44 SDK pre-authenticated as the current user. Reads the script from stdin. | ||
|
|
||
| ## Syntax | ||
|
|
||
| ```bash | ||
| cat ./script.ts | npx base44 exec | ||
| echo "<code>" | npx base44 exec | ||
| ``` | ||
|
|
||
| ## How It Works | ||
|
|
||
| The `exec` command reads a script from stdin and runs it server-side with the Base44 SDK pre-authenticated as the currently logged-in user. This allows you to run one-off scripts against your app's data without writing a full function. | ||
|
|
||
| ## Available Globals | ||
|
|
||
| > **`base44`** — a preinitialized SDK client, available as a global variable in every exec script. You do not need to import or configure it — it is ready to use immediately. | ||
|
|
||
| Use it to interact with your app's resources: | ||
|
|
||
| - `base44.entities.<EntityName>` — CRUD operations on entities (`.list()`, `.get(id)`, `.create(data)`, `.update(id, data)`, `.delete(id)`) | ||
| - `base44.functions.invoke(name, data?)` — call a backend function | ||
| - `base44.agents.<AgentName>` — invoke AI agents | ||
netanelgilad marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - For more available resources and methods, see the [Base44 SDK reference](../../base44-sdk/SKILL.md) | ||
|
|
||
| ## Examples | ||
|
|
||
| ```bash | ||
| # Run a script file | ||
| cat ./script.ts | npx base44 exec | ||
|
|
||
| # Inline script | ||
| echo "const users = await base44.entities.User.list(); console.log(users)" | npx base44 exec | ||
| ``` | ||
|
|
||
| ## Requirements | ||
|
|
||
| - Must be authenticated (`npx base44 login`) | ||
| - Must be run from a linked Base44 project directory | ||
| - Script must be piped via stdin (non-interactive mode) | ||
|
|
||
| ## Notes | ||
|
|
||
| - The script runs with the Base44 SDK pre-authenticated — you can use `base44.entities`, `base44.functions`, etc. directly | ||
| - Exit code from the script is forwarded as the CLI process exit code | ||
| - This command requires stdin to be piped (it does not accept input in interactive TTY mode) | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.