Skip to content

feat: switch CLI command parameter names to kebab-case - #4256

Merged
jy-vivox merged 3 commits into
develop-3.x.xfrom
feat/mtt-16710-kebab-case
Nov 25, 2026
Merged

jy-vivox merged 3 commits into
develop-3.x.xfrom
feat/mtt-16710-kebab-case

Conversation

@jy-vivox

Copy link
Copy Markdown
Contributor

Purpose of this PR

The netcode.gameobjects CLI commands now take kebab-case parameter names, matching the com.unity.pipeline convention used by every other command group: --dry-run, --client-id, --min-clients, --player-object, --name-contains, --delay-ms, --jitter-ms, --drop-percent, --duration-ms and --discard-message-queue. Command names and result fields are unchanged.

The CLI assemblies and their tests now need com.unity.pipeline 1.0.0 or later. Pipeline 1.0.0 checks parameter names against the command, so an old snake_case name is refused with exit code 2 and a "Did you mean --min-clients?" hint, instead of being ignored.

PR Scope:

  • Parameter names on the netcode.gameobjects command groups, and the error messages and tests that name them.
  • The versionDefines floor for com.unity.pipeline, raised from 0.9.0-exp.1 to 1.0.0.
  • The CLI docs page's minimum Pipeline version.

Out of scope:

  • Command names and result field names.
  • Netcode for Entities' netcode commands (the same change, in the unity repo).

Jira ticket

MTT-16710

Changelog

  • Changed: The netcode.gameobjects CLI command parameters are now kebab-case, matching the com.unity.pipeline convention, for example --dry-run, --client-id, --min-clients and --delay-ms. The old snake_case names are refused. Command names and result fields are unchanged. The commands now require com.unity.pipeline 1.0.0 or later, which refuses unknown parameter names instead of ignoring them.

Documentation

  • Includes edits to existing public API documentation: Documentation~/unity-cli-commands.md now names Pipeline 1.0.0 as the minimum version.

Testing & QA (How your changes can be verified during release Playtest)

Functional Testing

Manual testing :

  • Manual testing done

With Pipeline 1.0.0 in a test project, unity command netcode.gameobjects.session wait_ready --min_clients 1 is refused with exit code 2 and "Did you mean --min-clients?", and --min-clients 1 is accepted.

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

NetcodeGameObjectsCliCommandsTests and NgoCliQueriesTests use the new names and pass locally with Pipeline 1.0.0.

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?
  • Provide feedback about the PR?

Up-port

N/A (develop-3.x.x only; develop-2.0.0 has no CLI commands)

Backports

N/A

jy-vivox and others added 2 commits November 19, 2026 08:48
The netcode.gameobjects CLI commands now take kebab-case parameter names,
matching the com.unity.pipeline convention: --dry-run, --client-id,
--min-clients, --delay-ms and so on. Command names and result fields are
unchanged.

The CLI assemblies and their tests now need com.unity.pipeline 1.0.0 or
later, which refuses unknown parameter names, so the old snake_case names
fail with a "Did you mean" hint instead of being ignored. The docs and the
CHANGELOG list the new names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jy-vivox
jy-vivox marked this pull request as ready for review November 23, 2026 15:22

@u-pr u-pr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Harness Review

Ship it

The kebab-case parameter names are consistent across command declarations, validation messages, and test expectations. I also examined the Pipeline version gates, documentation, and repository usages for stale flags, and found no actionable issues.

Reviewed commit 9b8b590

🤖 Helpful? 👍/👎

@michalChrobot michalChrobot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Emma/Noel can take one more look but it looks good to me

@codecov-github-com

codecov-github-com Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

@@              Coverage Diff               @@
##           develop-3.x.x    #4256   +/-   ##
==============================================
  Coverage          76.72%   76.72%           
==============================================
  Files                159      159           
  Lines              28101    28101           
==============================================
  Hits               21560    21560           
  Misses              6541     6541           
Flag Coverage Δ
NGOv2_project_testproject_ubuntu 75.77% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
com.unity.netcode.gameobjects 76.72% <ø> (ø)

ℹ️ Need help interpreting these results?

@EmandM EmandM left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay for updating off of the experimental version!

@jy-vivox
jy-vivox merged commit 5d46229 into develop-3.x.x Nov 25, 2026
27 of 29 checks passed
@jy-vivox
jy-vivox deleted the feat/mtt-16710-kebab-case branch November 25, 2026 20:52
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.

4 participants