Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @openfn/cli

## 1.29.1

### Patch Changes

- Fix an issue when doing an initial pull with GH sync and an openfn.yaml file, where the endpoint in config.json should be used to intiate the sync

## 1.29.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfn/cli",
"version": "1.29.0",
"version": "1.29.1",
"description": "CLI devtools for the OpenFn toolchain",
"engines": {
"node": ">=18",
Expand Down
9 changes: 8 additions & 1 deletion packages/cli/src/deploy/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ async function deployHandler(
logger.always(
'Detected openfn.yaml file - switching to v2 deploy (openfn project deploy)'
);
return beta.handler({ ...options, force: true }, logger);
return beta.handler(
{
...options,
force: true,
endpoint: config.endpoint,
},
logger
);
}

logger.debug('Deploying with config', JSON.stringify(config, null, 2));
Expand Down
7 changes: 6 additions & 1 deletion packages/cli/src/pull/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ async function pullHandler(options: PullOptions, logger: Logger) {
'Detected openfn.yaml file - switching to v2 pull (openfn project pull)'
);
return beta(
{ ...options, project: options.projectId, force: true },
{
...options,
project: options.projectId,
force: true,
endpoint: config.endpoint,
},
logger
);
}
Expand Down