Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions docs/cli/index.mdx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# CLI

<p className="subtitle">Interact with Sourcegraph from the command line</p>
<p className="subtitle">Interact with Sourcegraph and Cody from the command line interface.</p>

`src` is a command line interface to Sourcegraph that allows you to <a href="/code-search">search code</a> from your terminal, <a href="/batch-changes">create and apply batch changes</a>, and <a href="/admin">manage and administrate repositories, users, and more</a>.

## Getting Started
[Cody CLI](/cody/clients/install-cli) is the same technology that powers the Cody IDE plugins but available from the command-line. Use Cody CLI for ad-hoc exploration in your terminal or as part of scripts to automate your workflows.

## Quick Links

<QuickLinks>
<QuickLink title="Quickstart" icon='lightbulb' href="./cli/quickstart" description="Learn about src in minutes." />
<QuickLink title="Command reference" icon='installation' href="./cli/references" description="Check the commands available in src and their flags." />
<QuickLink title="Sourcegraph src CLI" icon='lightbulb' href="./cli/quickstart" description="A quickstart tutorial to learn about the src CLI in minutes." />
<QuickLink title="Cody CLI" icon='installation' href="/cody/clients/install-cli" description="Learn how to use Cody with the command line interface ecosystem." />
<QuickLink title="Command reference" icon='theming' href="./cli/references" description="Check the commands available in the src CLI and their flags." />
<QuickLink title="Create a batch change" icon='presets' href="/batch-changes/quickstart" description="src is the gateway to Sourcegraph's batch change functionality: find out how to create a batch change with it in less than 10 minutes." />
</QuickLinks>
5 changes: 3 additions & 2 deletions src/data/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export const navigation: NavigationItem[] = [
{ title: "Cody for VS Code", href: "/cody/clients/install-vscode", },
{ title: "Cody for JetBrains", href: "/cody/clients/install-jetbrains", },
{ title: "Cody for Web", href: "/cody/clients/cody-with-sourcegraph", },
{ title: "Cody for CLI", href: "/cody/clients/install-cli", },
{ title: "Cody for Enterprise", href: "/cody/clients/enable-cody-enterprise", },
{ title: "Model Configuration", href: "/cody/clients/model-configuration", },
]
Expand Down Expand Up @@ -280,13 +279,15 @@ export const navigation: NavigationItem[] = [
separator: "CLI & API",
topics: [
{
title: "Sourcegraph CLI",
title: "Sourcegraph & Cody CLI",
href: "/cli",
sections: [
{ title: "Quickstart", href: "/cli/quickstart" },
{ title: "Explanations", href: "/cli/explanations" },
{ title: "How-to Guides", href: "/cli/how-tos" },
{ title: "References", href: "/cli/references" },
{ title: "Cody CLI", href: "/cody/clients/install-cli", },

],
},
{
Expand Down
Loading