Documentation

Get Started with Codesfer

Everything you need to know to install and use the Codesfer CLI for secure code sharing.

Installation

Choose your preferred installation method to get started.

Install via Homebrew Recommended for MacOS

The easiest way to install Codesfer on macOS and Linux using Homebrew.

brew tap gnitoahc/tap brew install gnitoahc/tap/codesfer
Download from Releases Recommended for Linux/Windows

Download the pre-built binary for your platform from GitHub Releases.

Build from Source

Requires Go 1.24+ installed on your system.

git clone https://github.com/GNITOAHC/codesfer.git cd codesfer make all

Authentication

Manage your account and authentication on the server.

Register

Create a new account on the server.

codesfer register
Login

Log in to your account.

codesfer login
Logout

Log out from your current session.

codesfer logout

CLI Usage

Essential commands to manage your code snippets.

Push (Upload)

Compresses files into a zip, encrypts if requested, and uploads to your server.

codesfer push <file> [-k alias] [-d desc] [--pass password]
-k, --key Custom alias for the snippet
-d, --desc Description for the upload
--pass Password for encryption
Pull (Download)

Downloads the archive and automatically decompresses it to your specified directory.

codesfer pull <code|alias> [-o out_dir]
-o, --out Output directory (default: current directory)
List

List all your uploaded snippets.

codesfer list
Remove

Remove a snippet from the server.

codesfer remove <code|alias>