You cannot "create" new command syntax in vanilla Minecraft, but you can build custom command functionality using the game's built-in systems.
data/namespace/functions/name.mcfunction file in a Data Pack./function namespace:name./give @p command_block (requires Creative + Cheats)./execute if entity @p[distance=..5]), or functions./scoreboard objectives add myTrigger trigger/scoreboard players enable @a myTrigger/trigger myTrigger set 1 (works without Cheats/OP)./execute as @a if score @s myTrigger matches 1.. run function my:custom_command./mycommand aliases with complex logic in YAML or scripts.datapacks/kits/data/kits/functions/starter.mcfunction:give @p diamond_sword{display:{Name:'{"text":"Starter Sword"}'}} 1
give @p shield 1
give @p cooked_beef 32
tellraw @p {"text":"Starter kit granted!","color":"green"}
/reload./function kits:starter (or bind to a trigger score for survival).For most servers, a plugin like EssentialsX is the easiest way to get player-facing custom commands (/home, /tpa, /kit) without coding.