Skip to content

[Codex] 5.4: Update CLI remote submission for API-key flow #45

@taariq

Description

@taariq

Parent: #28

Depends on: #42 (Task 5.1), #38 (Task 3.3), #39 (Task 3.4)

Task

Update init and sync commands to send project identifiers in JobSpec when using API-key flow + --seren.

Files to Modify

  • src/commands/init.rs
  • src/commands/sync.rs

What to Change

When building JobSpec for remote submission:

  • If using API-key flow (has TargetState), send target_project_id, target_branch_id, target_databases, seren_api_key
  • If using traditional mode, send target_url as before

See docs/plans/api-key-flow-implementation.md Task 5.4 for full code.

How to Test

export SEREN_API_KEY=your_key
# Run init with remote execution
cargo run -- init --source "postgresql://localhost/test" --seren
# Should show interactive picker, then submit job with project identifiers

Commit Message

feat(init): Send project identifiers for remote API-key flow

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions