> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prismy.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI Overview

> Manage translations from the command line

The Prismy CLI provides commands for managing translations, tailored to your integration setup.

<Card title="Install from NPM" icon="link" href="https://www.npmjs.com/package/prismy-cli" arrow="true" />

## Two use cases

Choose the guide that matches how you use Prismy:

### 1. GitHub or GitLab integration

If Prismy is connected to your GitHub or GitLab repo, translations sync automatically and you can trigger them via PR comments. Use the CLI to **generate translations locally** during development.

<Card title="GitHub / GitLab — prismy generate" icon="GitHub" href="/tech/cli/github-gitlab" arrow="true" />

### 2. Prismy Hosted

If you use Prismy Hosted without native GitHub/GitLab, you sync translation files yourself. Use **`prismy push`** and **`prismy pull`** to upload and download translations (locally or in CI).

<Card title="Prismy Hosted — push & pull" icon="cloud" href="/tech/cli/prismy-hosted" arrow="true" />

## Quick start

1. **Get an API key** from [Prismy Settings](https://app.prismy.io/settings).
2. **Install the CLI**: `npm install -g prismy-cli`
3. **Authenticate**: `prismy auth <your-api-key>`
4. Follow the guide for your setup: [GitHub/GitLab](/tech/cli/github-gitlab) or [Prismy Hosted](/tech/cli/prismy-hosted).

Source: [prismy-cli on GitHub](https://github.com/TheCompanyX/prismy-cli)
