SnippKit Logo
v2

SnippKit CLI (SNiX)

v2.0.3Production StableNode.js 18+

Control your library directly from your terminal. Fetch and execute code snippets, trigger command playbooks, push local source files, and manage your cloud workspace with zero friction.

npm install -g @snippkit/cli
... MIT License Cross-platform (Win/macOS/Linux)

Authentication

Authenticate CLI

Authenticate securely using your SnippKit secret API Key (sk_live_...). Credentials are saved in a local AES-256 encrypted vault.

snix auth login

Active Identity

Verify active identity, user handle, email, API URL, and masked API key.

snix auth status

Options & Flags

snix whoamiFast shortcut for snix auth status

Clear Credentials

Safely purge stored vault credentials and tokens from this machine.

snix auth logout

Execution Engine

Execute Code Script

Fetch and execute a code snippet in an isolated temp directory with direct runner invocation.

snix run script <id>

Options & Flags

snix script <ids...>Fast shortcut to run one or more scripts sequentially
snix run <id>Auto-detects whether target is a snippet or playbook

Execute Command Playbook

Run a multi-step shell command playbook with interactive parameter substitution and safety verification.

snix run command <id>

Options & Flags

-y, --yesBypass trust prompt and execute immediately
snix cmd <ids...>Fast shortcut to run one or more command playbooks

Source Code Upload (Push)

Push Local Files

Upload files directly into your SnippKit library with automatic language detection.

snix push app.py

Options & Flags

--publicUpload as public snippet (default is private)
-r, --recursiveUpload entire directory tree recursively
--folder <name>Target specific folder (supports interactive selection)

Inline Per-File Modifiers

Specify custom titles, slugs, and language tags inline per uploaded file.

snix push file.py:private:title="Core Engine":slug=core-engine

Library Management

List Snippets

View all snippets with pagination, visibility badges [PUBLIC]/[PRIVATE], byte sizes, and timestamps.

snix snippets list

Options & Flags

--page <num>Specify page number (default 1)
--limit <num>Items per page (default 15)

List Command Playbooks

View all command playbooks with step counts, visibility, and size.

snix commands list

Inspect Source / Steps

Render source code with terminal syntax highlighting or inspect ordered playbook steps.

snix snippets show <id>

Options & Flags

snix commands show <id>Inspect command playbook steps & directives

Download File (Pull)

Save snippet code or command definitions directly to disk.

snix snippets pull <id>

Options & Flags

-f, --file <filename>Specify output filename
snix commands pull <id>Download playbook definition as JSON

Search & Diagnostics

System Diagnostics

Verify Node.js runtime, OS platform, API connectivity, and 10 language runners (Python, Node, Go, Rust, Java, Bash, PowerShell, Ruby, PHP, Deno).

snix doctor

Global Search

Search across all code snippets and command playbooks by keyword, title, or slug.

snix search "docker compose"

Safe Batch Deletion

Delete items with ambiguity guard protection (prompts if a slug matches both a snippet and a command).

snix delete <id1> <id2...>

Options & Flags

-y, --yesNon-interactive confirmation
snix rm <ids...>Alias for snix delete

Open Source & Repository