@spikefrost/cli
v0.6.8
Published
Spikefrost CLI — cloud tools, AI services, and connected APIs from your terminal
Downloads
939
Maintainers
Readme
Spikefrost CLI
sf is the command-line interface for Spikefrost. It lets humans and local
coding agents manage Spike Apps from a terminal: checkout app files, sync with
Spike storage, build, deploy, create agents, manage surfaces and routines, and
call Spikefrost tools.
Install
npm install -g @spikefrost/cli
sf --versionIf sf --version shows an older version after installing, another executable is
earlier in your PATH. Check with:
which -a sfAuthenticate
Interactive login:
sf loginAPI key login:
sf set-api-key <key>
sf whoamiUse the dev environment when needed:
sf login --dev
# or
sf set-api-key <key> --env devWork With An App
Create or repair a local Spike app scaffold:
sf init ./my-app
cd ./my-appFresh scaffolds put deployable Worker code under app/, the same layout used by
Spike runtime init_project. Legacy apps with a root package.json keep the
root layout.
Checkout app files:
sf app checkout <appId> ./my-app
cd ./my-appsf app checkout writes .spikefrost/project.json with the app id. Later
commands in that folder use the saved app id unless you pass another one.
Sync files:
sf app pull
sf app status
sf app pushBuild and deploy:
sf build
sf deployInspect deployments:
sf apps deployments <appId>Get an embedded chat website snippet:
sf surfaces list
sf surfaces embed <surfaceId>Manage App Resources
sf apps list
sf apps get <appId>
sf apps create "My App"
sf agents list --app <appId>
sf surfaces list --app <appId>
sf surfaces embed <surfaceId>
sf routines list --app <appId>
sf templates listThe CLI also exposes REST endpoints used by the Spikefrost web console:
sf api get /apps
sf api get /apps/<appId>Skills For Coding Agents
Spike Apps are not generic folders. They can contain Cloudflare Worker/Hono web code, AI agents, communication surfaces, routines, schemas, assets, and deployment metadata.
If you are using a local coding agent such as Codex, Claude, Cursor, or another assistant, have it load Spike skills before editing an app:
sf skills list
sf skills get web_development
sf skills get agent_rulebooks
sf skills get communication_surfaces
sf skills get software_development_lifecycle
sf skills get sf_blocks
sf docsTeam-scoped skills can be created or updated from the CLI:
sf skills upsert ecommerce_ops \
--title "Ecommerce Ops" \
--description "Use for ecommerce app work" \
--content-file ./skills/ecommerce.mdAssign skills to agents:
sf skills assign customer_service web_development communication_surfaces
sf skills list-agent customer_service
sf skills set customer_service sf_blocks web_development
sf skills unassign customer_service ecommerce_opsSkills are text instructions. They do not grant tools, credentials, or permissions by themselves.
Tool Discovery And Execution
Search tools:
sf find_tools --query "send email"
sf find_tools --provider gmailInspect and execute a tool:
sf get_tool_schema --tool gmail#send_email
sf execute_tool --tool gmail#send_email --to [email protected] --subject Hi --body HelloMany core tools can also be called directly:
sf list_agents --app <appId>
sf list_surfaces --app <appId>Edge Nodes
In Spike Edge actions, app id and sync credentials can be injected by the
runner. On a normal user machine, sf can operate from the checked-out app
folder and the app id saved in .spikefrost/project.json.
Run:
sf --helpfor the full command list.
