LogoFreestyle

Git CLI

Use the Git CLI commands for repository lifecycle operations.

Prerequisites

  • Set FREESTYLE_API_KEY in your environment.
  • Run commands as npx freestyle ....

Create repositories

Create an empty repository

npx freestyle git create

Create with options

npx freestyle git create \
	--name my-repo \
	--public \
	--default-branch main

Create from an existing source URL

npx freestyle git create \
	--source-url https://github.com/owner/repo.git \
	--source-rev main

List repositories

npx freestyle git list --limit 20

JSON output:

npx freestyle git list --json

Delete a repository

npx freestyle git delete <repo-id>

Notes

  • These commands manage repository lifecycle only.

  • Use native Git for clone/push/fetch against https://git.freestyle.sh/<repo-id>.

  • For hooks, sync, and advanced operations, use the service docs below.

  • Getting Started with Git

  • Git Hooks

  • GitHub Sync

On this page

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.