SnippKit CLI (SNiX)
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/cliAuthentication
Authenticate CLI
Authenticate securely using your SnippKit secret API Key (sk_live_...). Credentials are saved in a local AES-256 encrypted vault.
snix auth loginActive Identity
Verify active identity, user handle, email, API URL, and masked API key.
snix auth statusOptions & Flags
Clear Credentials
Safely purge stored vault credentials and tokens from this machine.
snix auth logoutExecution 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
Execute Command Playbook
Run a multi-step shell command playbook with interactive parameter substitution and safety verification.
snix run command <id>Options & Flags
Source Code Upload (Push)
Push Local Files
Upload files directly into your SnippKit library with automatic language detection.
snix push app.pyOptions & Flags
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-engineLibrary Management
List Snippets
View all snippets with pagination, visibility badges [PUBLIC]/[PRIVATE], byte sizes, and timestamps.
snix snippets listOptions & Flags
List Command Playbooks
View all command playbooks with step counts, visibility, and size.
snix commands listInspect Source / Steps
Render source code with terminal syntax highlighting or inspect ordered playbook steps.
snix snippets show <id>Options & Flags
Download File (Pull)
Save snippet code or command definitions directly to disk.
snix snippets pull <id>Options & Flags
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 doctorGlobal 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
Open Source & Repository
Why use the CLI?
- Isolated Execution: Scripts run in sandboxed temp directories with direct runner execution.
- Zero Context Switching: Push code, pull snippets, and trigger multi-step playbooks straight from bash/zsh.
- Encrypted Vault: API Keys and credentials are protected with AES-256 local encryption.
- Ambiguity Protection: Smart guards prevent accidental deletion if slugs match across resources.