Skip to content

Agent commands

Here are the list of commands with which you can interact with the copilot agent

Getting help

To get started, use help command

help

List details

Services

Command format

list services SERVICE|REGEX

By default, the agent lists only 20 services to reduce server load. To search for a specific service, use:

list services stripe

The above command will list the stripe service. For a partial match, you can use a wildcard search:

list str*

Here, the asterisk (*) after “str” matches any characters following it and lists all relevant services.

Note: Only the asterisk (*) wildcard is supported. Other regex characters are not allowed in searches.

Versions

Command format

list versions SERVICE VERSION|REGEX

The command below lists all Stripe versions

list versions stripe *

Methods

Command format

list methods SERVICE:VERSION METHOD|REGEX

The command below lists all Stripe methods for version v3

list methods stripe:v3 *

List workflows

Command format

list workflows SERVICE:VERSION WORKFLOW|REGEX

The command below lists all Stripe workflows for version v3, including workflows in all available languages.

list workflows stripe:v3 *

Fetch code

Methods

Command format

generate code SERVICE:VERSION LANGUAGE METHOD

The command retrieves the method code for the specified method in Node.js. For supported languages, please visit here.

generate code stripe:v3 node.js "Retrieve a list of Issuing Transaction objects sorted by creation date in descending order"

Workflows

Command format

generate workflow SERVICE:VERSION LANGUAGE WORKFLOW

The command retrieves the workflow code for the specified workflow in Node.js.

generate workflow stripe:v3 node.js "one-time payment with customer creation"

Supported languages

Currently, the supported languages are

  • Node.js
  • Python
  • Golang
  • Java
  • Rust
  • Ruby
  • C#
  • PHP
  • Kotlin
  • C++
  • C
  • TypeScript
  • Perl
  • Swift