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 | sh
Recommended for Windows
powershell -ExecutionPolicy ByPass -c "irm https://www.codesfer.io/install.ps1 | iex"

Authentication

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 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>