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.
Recommended for Linux Also available for macOS
curl -LsSf https://www.codesfer.io/install.sh | sh # or using wget wget -qO- https://www.codesfer.io/install.sh | shRecommended for Windows
powershell -ExecutionPolicy ByPass -c "irm
https://www.codesfer.io/install.ps1 | iex"Recommended for macOS
brew tap gnitoahc/tap brew install gnitoahc/tap/codesferRequires Go installed on your system.
go install github.com/gnitoahc/codesfer/cmd/codesfer@latestDownload the pre-built binary for your platform from GitHub Releases.
View Releases on GitHubRequires Go 1.24+ installed on your system.
git clone https://github.com/GNITOAHC/codesfer.git cd codesfer make allAuthentication
Manage your account and authentication on the server.
Register
Create a new account on the server.
codesfer auth register Login
Log in to your account.
codesfer auth login Logout
Log out from your current session.
codesfer auth logoutCLI 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>