Skip to content

Allow workspace creation by name#244

Open
pru55e11 wants to merge 6 commits intomasterfrom
CreateWorkspace
Open

Allow workspace creation by name#244
pru55e11 wants to merge 6 commits intomasterfrom
CreateWorkspace

Conversation

@pru55e11
Copy link
Copy Markdown

Description

Add a console:workspace:create command that allows creating new workspaces by providing a project name (or title) and workspace name. This enables agents to create workspaces in App Builder projects without user interaction.

Builds on #243 (project create) and follows the same patterns.

How it works

  • Accepts --projectName (required) which resolves by matching against both project name and title fields
  • Accepts --name (required) for the workspace name and optional --title (defaults to name)
  • --orgId is optional, falling back to the configured org (same pattern as project create)
  • Validates name and title client-side before calling the API
  • Checks for duplicate workspace names before creating
  • Delegates to consoleCLI.createWorkspace() which also enables Runtime on the new workspace

How Has This Been Tested?

  • 15 unit tests with 100% code coverage (statements, branches, functions, lines)
  • Manually tested: successfully created workspace testabc123 in the PRUtils project via aio console:workspace:create --projectName PRUtils --name testabc123

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the code style of this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants