+
+ - Run the
configure command:
+
+
{`goose configure`}
+
+
+ - Choose to add a
Command-line Extension.
+
+
{`┌ goose-configure
+│
+◇ What would you like to configure?
+│ Add Extension (Connect to a new extension)
+│
+◆ What type of extension would you like to add?
+│ ○ Built-in Extension
+// highlight-start
+│ ● Command-line Extension (Run a local command or script)
+// highlight-end
+│ ○ Remote Extension
+└`}
+
+
+ - Give your extension a name.
+
+
{`┌ goose-configure
+│
+◇ What would you like to configure?
+│ Add Extension (Connect to a new extension)
+│
+◇ What type of extension would you like to add?
+│ Command-line Extension
+// highlight-start
+◆ What would you like to call this extension?
+│ ${name}
+// highlight-end
+└`}
+
+
+ - Enter the command to run when this extension is used.
+
+
{`┌ goose-configure
+│
+◇ What would you like to configure?
+│ Add Extension (Connect to a new extension)
+│
+◇ What type of extension would you like to add?
+│ Command-line Extension
+│
+◇ What would you like to call this extension?
+│ ${name}
+│
+// highlight-start
+◆ What command should be run?
+│ ${command}
+// highlight-end
+└`}
+
+
+ -
+ Enter the number of seconds Goose should wait for actions to complete before timing out. Default is
300 seconds.
+
+
+
{`┌ goose-configure
+│
+◇ What would you like to configure?
+│ Add Extension (Connect to a new extension)
+│
+◇ What type of extension would you like to add?
+│ Command-line Extension
+│
+◇ What would you like to call this extension?
+│ ${name}
+│
+◇ What command should be run?
+│ ${command}
+│
+// highlight-start
+◆ Please set the timeout for this tool (in secs):
+│ ${timeout}
+// highlight-end
+└`}
+
+
+ - Choose to add a description. If you select
Yes, you’ll be prompted to enter a description for the extension.
+
+
{`┌ goose-configure
+│
+◇ What would you like to configure?
+│ Add Extension (Connect to a new extension)
+│
+◇ What type of extension would you like to add?
+│ Command-line Extension
+│
+◇ What would you like to call this extension?
+│ ${name}
+│
+◇ What command should be run?
+│ ${command}
+│
+◇ Please set the timeout for this tool (in secs):
+│ ${timeout}
+│
+// highlight-start
+◆ Would you like to add a description?
+│ No
+// highlight-end
+└`}
+
+
+ - {envStepText}
+
+
+ {hasEnvVars && (
+ <>
+ {infoNote &&
{infoNote}
}
+
+
{`┌ goose-configure
+│
+◇ What would you like to configure?
+│ Add Extension (Connect to a new extension)
+│
+◇ What type of extension would you like to add?
+│ Command-line Extension
+│
+◇ What would you like to call this extension?
+│ ${name}
+│
+◇ What command should be run?
+│ ${command}
+│
+◇ Please set the timeout for this tool (in secs):
+│ ${timeout}
+│
+◇ Would you like to add a description?
+│ No
+│
+// highlight-start
+◆ Would you like to add environment variables?
+│ Yes
+${envVars
+ .map(
+ ({ key, value }, i) => `│
+◇ Environment variable name:
+│ ${key}
+│
+◇ Environment variable value:
+│ ${value}
+│
+◇ Add another environment variable?
+│ ${i === envVars.length - 1 ? 'No' : 'Yes'}`
+ )
+ .join('\n')}
+// highlight-end
+└ Added ${name} extension`}
+ >
+ )}
+
+ );
+}