Cody CLI (experimental)
Cody CLI is an experimental command-line interface for Cody.
Getting started
pnpm run build
Then ask a question:
$ export SRC_ACCESS_TOKEN=sgp_aaaaaaaaaaaaaaaa # Sourcegraph access token
$ dist/cody
✔ What do you want to ask Cody? … Where is data stored?
Data in Sourcegraph is stored in the following places:
...
Or have it write a commit message for your Git changes:
$ dist/cody commit --dry-run
Use --help
for more information.
Development
pnpm run start
Release
To publish a new release of the @sourcegraph/cody-cli
package:
- Increment the
version
inpackage.json
. - Commit the version increment.
git tag cli-v$(jq -r .version package.json)
git push --tags
- Wait for the cli-release workflow to finish.