Skip to content

Add --location flag to project create#248

Open
fxck wants to merge 3 commits intomainfrom
add-location-flag-project-create
Open

Add --location flag to project create#248
fxck wants to merge 3 commits intomainfrom
add-location-flag-project-create

Conversation

@fxck
Copy link
Copy Markdown
Member

@fxck fxck commented Apr 5, 2026

Summary

  • Adds a --location flag to zcli project create so customers can pick the project location (e.g. eu-central, us-east).
  • Defaults to eu-central.
  • Wires the value through entity.PostProjectbody.PostProject.Location (using stringId.LocationIdNull, already supported by zerops-go v1.0.18).

Test plan

  • zcli project create --name foo --org-id <id> creates a project in eu-central (default)
  • zcli project create --name foo --org-id <id> --location us-east creates a project in us-east
  • --help shows the new flag with description

🤖 Generated with Claude Code

fxck and others added 3 commits April 5, 2026 21:09
Allows customers to specify the project location (e.g. eu-central, us-east)
when creating a project via zcli. Defaults to eu-central.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Avoid sending empty string to API; let server apply its default when
the flag is not set.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant