Skip to main content

Silicon CLI — create, run, and manage your silicon instances.

Project description

silicon-manager

This is the single source for the installable silicon command. The PyPI package is still named silicon-cli, but the code lives here in silicon-manager so it is not confused with a runnable Silicon instance tree.

The command manages silicon instances on a machine: create them from the silicon-stemcell base, start/stop them under an auto-restart watchdog, stream logs, and back them up to Glass. It reads the same ~/.silicon/registry.json, so existing installs carry over unchanged.

Install

pip install silicon-cli

(Zero runtime dependencies — stdlib only.)

Commands

silicon                      Show status or list instances
silicon new [dir]            Create a new Silicon (hydrate from stemcell)
silicon new .                Hydrate the current folder into a runnable silicon
silicon start <target>       Start silicon(s). target = name, index, 1,2,4, or all
silicon stop [--full] <target>  Stop silicon(s) (--full also stops the glass agent)
silicon restart <target>     Restart silicon(s)
silicon agent <start|stop|status> [name]   Manage the per-silicon glass agent
silicon status [name]        Show instance status
silicon browser [name]       Open a headed browser for login
silicon debug [name]         Tail a running instance's logs
silicon attach [path]        Register an existing silicon directory
silicon pull <username>      Pull a silicon from Glass into a new folder
silicon push [name] [now|stop]   Hourly backups to Glass (now = one-shot, stop = end loop)
silicon backup [name] [now|stop] Alias for silicon push
silicon update <target>      Update silicon(s) from the latest stemcell
silicon list                 List all instances
silicon script update        Update this CLI itself
silicon help                 Show help

Configuration (env vars)

Var Default Purpose
SILICON_HOME ~/.silicon registry + CLI state
GLASS_SERVER_URL https://glass.unlikefraction.com Glass sync server (pull/push)
SILICON_STEMCELL_REPO unlikefraction/silicon-stemcell base for new
SILICON_GLASS_CLI_REPO unlikefraction/glass glass backup CLI
SILICON_PYTHON python3 interpreter used to run a silicon's main.py

Backups

silicon push <name> now and silicon backup <name> now use the .backupsilicon manifest when the instance has one. The CLI archives those paths and uploads them to Glass via /api/v1/silicon-backups/ with the instance's .glass.json API key. If no manifest exists, the command falls back to the legacy glass push snapshot flow.

How it differs from the bash version

  • Pure Python package with a silicon console entry point (installed in an isolated venv), instead of a single bash script.
  • The auto-restart watchdog runs as silicon _watchdog (a detached supervisor process) rather than a backgrounded bash function — same crash-loop detection, .silicon.stop sentinel, and .silicon.pid/.silicon.log behavior.
  • silicon script update reinstalls the package via pip from its recorded source.
  • Everything (server, stemcell repo) is env-overridable.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

silicon_cli-1.0.1.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

silicon_cli-1.0.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file silicon_cli-1.0.1.tar.gz.

File metadata

  • Download URL: silicon_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for silicon_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e3942fda948d651a834948d5b92b0efa70594bc3d203a6998e840d171f994a22
MD5 ca38100168e0af2f9fb5fa4d3567ded9
BLAKE2b-256 f3980599dca4ebae3e22cee22def1d7479b6fd6f1abd308833036fa522cb49f8

See more details on using hashes here.

File details

Details for the file silicon_cli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: silicon_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for silicon_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e8f2d167eb95575bac5630aa24609b3a744166e288a036dc770a350d682b565
MD5 61db5545b95b9c41fc20b5155d050d32
BLAKE2b-256 d8d95c3e67e1fe13ac94e92c7416fefa6dbf76f7d136b7ffd2b1ca94da5090ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page