Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Fix `install-skill` flag spelling in CLI help and parser (#3223)

Rahul Tarak1c4b428a386d
diff --git a/ts/packages/cli/README.md b/ts/packages/cli/README.md
index fe2610772..7fa5b7de0 100644
--- a/ts/packages/cli/README.md
+++ b/ts/packages/cli/README.md
@@ -22,7 +22,7 @@ composio [--log-level all|trace|debug|info|warning|error|fatal|none]
### Optional Flags
- `--log-level`: Set the log verbosity level. Accepted values: all, trace, debug, info, warning, error, fatal, none
-- `--instal-skill [skill-name] <claude|codex|openclaw>`: Manually install the composio skill for a supported agent when automatic installation fails. `--install-skill` is accepted as an alias.
+- `--install-skill [skill-name] <claude|codex|openclaw>`: Manually install the composio skill for a supported agent when automatic installation fails. `--instal-skill` is still accepted as a backward-compatible alias.
## 🧭 Commands
@@ -45,7 +45,7 @@ composio [--log-level all|trace|debug|info|warning|error|fatal|none]
- `composio generate py [-o, --output-dir <directory>] [--toolkits <toolkit>]`: Generate Python type stubs for toolkits, tools, and triggers from the Composio API.
- `composio generate ts [-o, --output-dir <directory>] [--compact] [--transpiled] [--type-tools] [--toolkits <toolkit>]`: Generate TypeScript types for toolkits, tools, and triggers from the Composio API.
- `composio upgrade [--beta]`: Self-update the Composio CLI from the stable channel, or from the beta channel with `--beta`.
-- `composio --instal-skill [skill-name] <claude|codex|openclaw>`: Manually install the composio skill for Claude, Codex, or OpenClaw.
+- `composio --install-skill [skill-name] <claude|codex|openclaw>`: Manually install the composio skill for Claude, Codex, or OpenClaw.
## Configuration
diff --git a/ts/packages/cli/src/commands/index.ts b/ts/packages/cli/src/commands/index.ts
index 53fba1f81..3b9d60a69 100644
--- a/ts/packages/cli/src/commands/index.ts
+++ b/ts/packages/cli/src/commands/index.ts
@@ -171,7 +171,7 @@ const findNestedSubcommandMismatch = (
return undefined;
};
-const ROOT_INSTALL_SKILL_FLAGS = ['--instal-skill', '--install-skill'] as const;
+const ROOT_INSTALL_SKILL_FLAGS = ['--install-skill', '--instal-skill'] as const;
const SKILL_INSTALL_TARGETS = [
'claude',
'codex',
@@ -210,7 +210,7 @@ export const parseRootInstallSkillRequest = (
return {
_tag: 'error',
message:
- 'Missing target for --instal-skill. Usage: composio --instal-skill [skill-name] <claude|codex|openclaw>',
+ 'Missing target for --install-skill. Usage: composio --install-skill [skill-name] <claude|codex|openclaw>',
};
}
@@ -219,7 +219,8 @@ export const parseRootInstallSkillRequest = (
if (!isSkillInstallTarget(target)) {
return {
_tag: 'error',
- message: 'Invalid target for --instal-skill. Expected one of: claude, codex, openclaw.',
+ message:
+ 'Invalid target for --install-skill. Expected one of: claude, codex, openclaw.',
};
}
return { _tag: 'parsed', target };
@@ -230,7 +231,8 @@ export const parseRootInstallSkillRequest = (
if (!isSkillInstallTarget(target)) {
return {
_tag: 'error',
- message: 'Invalid target for --instal-skill. Expected one of: claude, codex, openclaw.',
+ message:
+ 'Invalid target for --install-skill. Expected one of: claude, codex, openclaw.',
};
}
return { _tag: 'parsed', skillName, target };
@@ -239,7 +241,7 @@ export const parseRootInstallSkillRequest = (
return {
_tag: 'error',
message:
- 'Too many arguments for --instal-skill. Usage: composio --instal-skill [skill-name] <claude|codex|openclaw>',
+ 'Too many arguments for --install-skill. Usage: composio --install-skill [skill-name] <claude|codex|openclaw>',
};
}
diff --git a/ts/packages/cli/src/commands/root-help.ts b/ts/packages/cli/src/commands/root-help.ts
index 19c8ab65e..b7c4c63fd 100644
--- a/ts/packages/cli/src/commands/root-help.ts
+++ b/ts/packages/cli/src/commands/root-help.ts
@@ -1335,8 +1335,8 @@ export function printRootHelp(
` ${name} run 'const me = await execute("GITHUB_GET_THE_AUTHENTICATED_USER"); console.log(me)'`,
'',
` ${dim('# Manually install the composio skill when auto-install fails')}`,
- ` ${name} --instal-skill claude`,
- ` ${name} --instal-skill composio-cli codex`,
+ ` ${name} --install-skill claude`,
+ ` ${name} --install-skill composio-cli codex`,
'',
` ${dim('# Run a multi-step script with Promise.all')}`,
` ${name} run '`,
@@ -1408,7 +1408,7 @@ export function printRootHelp(
bold('FLAGS'),
' -h, --help [mode] Show help for command (simple, default, full)',
` --version Show ${name} version`,
- ' --instal-skill [skill-name] <claude|codex|openclaw>',
+ ' --install-skill [skill-name] <claude|codex|openclaw>',
' Manually install the composio skill for a supported agent',
'',
bold('LEARN MORE'),
diff --git a/ts/packages/cli/test/src/commands/install-skill-root-flag.test.ts b/ts/packages/cli/test/src/commands/install-skill-root-flag.test.ts
index 015fd54f1..35a68b807 100644
--- a/ts/packages/cli/test/src/commands/install-skill-root-flag.test.ts
+++ b/ts/packages/cli/test/src/commands/install-skill-root-flag.test.ts
@@ -1,9 +1,11 @@
import { describe, expect, it } from '@effect/vitest';
import { parseRootInstallSkillRequest } from 'src/commands';
-describe('CLI: --instal-skill', () => {
+describe('CLI: --install-skill', () => {
it('parses the default skill name when only a target is provided', () => {
- expect(parseRootInstallSkillRequest(['node', 'composio', '--instal-skill', 'claude'])).toEqual({
+ expect(
+ parseRootInstallSkillRequest(['node', 'composio', '--install-skill', 'claude'])
+ ).toEqual({
_tag: 'parsed',
target: 'claude',
});
@@ -11,7 +13,13 @@ describe('CLI: --instal-skill', () => {
it('parses an explicit skill name and target', () => {
expect(
- parseRootInstallSkillRequest(['node', 'composio', '--instal-skill', 'composio-cli', 'codex'])
+ parseRootInstallSkillRequest([
+ 'node',
+ 'composio',
+ '--install-skill',
+ 'composio-cli',
+ 'codex',
+ ])
).toEqual({
_tag: 'parsed',
skillName: 'composio-cli',
@@ -19,9 +27,9 @@ describe('CLI: --instal-skill', () => {
});
});
- it('accepts the --install-skill alias', () => {
+ it('accepts the legacy --instal-skill alias', () => {
expect(
- parseRootInstallSkillRequest(['node', 'composio', '--install-skill', 'openclaw'])
+ parseRootInstallSkillRequest(['node', 'composio', '--instal-skill', 'openclaw'])
).toEqual({
_tag: 'parsed',
target: 'openclaw',
@@ -35,7 +43,7 @@ describe('CLI: --instal-skill', () => {
'composio',
'--log-level',
'debug',
- '--instal-skill',
+ '--install-skill',
'claude',
])
).toEqual({
@@ -51,17 +59,20 @@ describe('CLI: --instal-skill', () => {
});
it('returns a helpful error when the target is missing', () => {
- expect(parseRootInstallSkillRequest(['node', 'composio', '--instal-skill'])).toEqual({
+ expect(parseRootInstallSkillRequest(['node', 'composio', '--install-skill'])).toEqual({
_tag: 'error',
message:
- 'Missing target for --instal-skill. Usage: composio --instal-skill [skill-name] <claude|codex|openclaw>',
+ 'Missing target for --install-skill. Usage: composio --install-skill [skill-name] <claude|codex|openclaw>',
});
});
it('returns a helpful error for invalid targets', () => {
- expect(parseRootInstallSkillRequest(['node', 'composio', '--instal-skill', 'cursor'])).toEqual({
- _tag: 'error',
- message: 'Invalid target for --instal-skill. Expected one of: claude, codex, openclaw.',
- });
+ expect(parseRootInstallSkillRequest(['node', 'composio', '--install-skill', 'cursor'])).toEqual(
+ {
+ _tag: 'error',
+ message:
+ 'Invalid target for --install-skill. Expected one of: claude, codex, openclaw.',
+ }
+ );
});
});