# The CLI

> Every command of npx @sypnia/git.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://git.docs.sypnia.com/tools/cli/

For agents: Commands: login/logout (device flow; installs git-credential-sypnia), create owner/name [--private|--internal|--public], import github owner/repo | --org, export github owner/repo | export archive, mirror github owner/repo [--stop] (one way: a read-only copy on GitHub), keys add|list|remove, deploy-keys add <repo> key.pub [--write], tokens create --repo --scope --expires, pr create|list|checkout|merge, issue create|list|link <n> --case <id>.

### `git login / git logout`\[Cloud]Signs in with your Sypnia account and installs the credential helper, so plain `git` uses your session ([The Sypnia session](https://git.docs.sypnia.com/access/sypnia-session)).

### `git create <owner/name>`\[Cloud]Creates a repository. Flags: `--private` (default), `--internal`, `--public`.

### `git import github <owner/repo>`\[Cloud]Brings a repository, or an organization with `--org`, from GitHub ([From GitHub](https://git.docs.sypnia.com/migrate/from-github)).

### `git export github <owner/repo>`\[Cloud]Moves a repository to GitHub; `export archive` writes a file instead ([To GitHub](https://git.docs.sypnia.com/migrate/to-github)).

### `git mirror github <owner/repo>`\[Cloud]Keeps a read-only copy of the repository on GitHub, updated on every push to Sypnia Git; `--stop` ends it ([Mirroring](https://git.docs.sypnia.com/migrate/mirroring)).

### `git keys / git deploy-keys`\[Engine, Cloud]Adds, lists and removes SSH keys and deploy keys. On a self-hosted engine, `keys host-records` prints the SSHFP records of its host keys.

### `git tokens create`\[Cloud]Creates an HTTPS token: `--repo`, `--scope`, `--expires` (required).

### `git pr / git issue`\[Cloud]Opens, lists, checks out and merges pull requests; creates issues and links them to a use case with `--case <id>`.

### `git log --case <id>`\[Engine, Cloud]Lists the commits of one use case, from their `Case:` trailers: `--since`, `--until`, `--repo`.

All commands run as `npx @sypnia/git …`; the names above leave out the prefix.
