forgeloop commands
Usage
forgeloop commands list [--dir ./project]
forgeloop commands diff [--guild|--global] [--dir ./project]
forgeloop commands deploy [--guild|--global] [--dir ./project]
commands is available for modular and advanced projects only.
Basic preset error:
This ForgeLoop project uses the "basic" shape, so slash command tooling is only available for "modular" or "advanced" projects.
Invalid subcommand:
Usage: forgeloop commands deploy|list|diff [--guild|--global] [--dir <path>]
list
- Loads command modules from your project
src/commands. - Prints the local application command names (slash commands and context menus).
- If none are found, prints a warning.
deploy
- Builds application command payload from local modules and sends a PUT request to Discord.
--guildforces guild-scoped deploy (requiresGUILD_ID).--globalforces global deploy.- If neither is set:
production -> global, otherwiseguild. - Requires
.envvalues:DISCORD_TOKEN,CLIENT_ID, andGUILD_IDfor guild deploy.
diff
- Builds the local application command payload the same way as
deploy. - Fetches the current Discord command set for the selected target.
- Reports commands that are local-only, remote-only, or changed by name.
- Uses the same target rules and required
.envvalues asdeploy.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dir | string | cwd | Project root containing ForgeLoop config. |
--guild | boolean | — | Deploy to a guild application command scope. |
--global | boolean | — | Deploy to global application command scope. |