@neardefi/shade-agent-cli
v2.2.1
Published
A CLI for deploying Shade Agents
Downloads
355
Readme
@neardefi/shade-agent-cli
CLI for deploying and managing Shade Agent contracts and agent apps (either locally or in TEEs). Create the contract account, deploy the agent contract (from source, WASM, or global hash), approve measurements and PPIDs, build the Docker image and deploy to Phala Cloud.
Install
npm install -g @neardefi/shade-agent-cliCommands
shade deploy— Run the full deployment from yourdeployment.yaml.shade reproduce— Produces the reproducible Docker image hash and the app compose hash. Used when verifying the code.shade plan— Show what the deployment will do without executing.shade whitelist— Whitelist an agent account for local mode (whitelist_agent_for_local).shade auth— Set NEAR credentials (master account per network) and optional Phala API key for TEE deploys.
Run shade with no arguments for the interactive menu.
Setup
- Put a
deployment.yamlin your project root (see example below). - Run
shade auth setto store the NEAR master account (and Phala key if using TEE). - Run
shade deployfrom the project directory.
Reference
The CLI docs are available here.
Example deployment.yaml
You can find example deployment files in the example-deployment-files directory.
