Aller au contenu

Installation

ComponentRequirement
OSLinux, macOS, Windows
Rust1.95+
Memory4 GB RAM
Disk2 GB free space
ComponentRequirement
Rust1.95+ (latest supported)
Memory8 GB RAM
CPUMulti-core processor

If you don’t have Rust installed:

Fenêtre de terminal
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Set the correct toolchain version:

Fenêtre de terminal
rustup default 1.95

Add the WASM target for building components:

Fenêtre de terminal
rustup target add wasm32-wasip2

Install the gtc router first, then let gtc install install the Greentic companion tools. Do not install greentic-cli or the individual companion crates directly for normal use; gtc install keeps the delegated binaries aligned with the router.

Fenêtre de terminal
cargo install cargo-binstall
cargo binstall gtc
gtc install
gtc doctor

cargo binstall gtc installs the thin gtc router binary. gtc install then installs the Greentic companion tools that gtc delegates to, such as greentic-dev, greentic-setup, greentic-start, greentic-pack, and greentic-flow.

Fenêtre de terminal
gtc --version
gtc doctor

For production session persistence:

Fenêtre de terminal
docker run -d --name redis -p 6379:6379 redis:alpine

For webhook-based providers (Telegram, Slack, etc.):

Fenêtre de terminal
# Install
brew install ngrok/ngrok/ngrok # macOS
# or download from https://ngrok.com/download
# Configure
ngrok config add-authtoken YOUR_TOKEN
# Run
ngrok http 8080

Install or update the delegated Greentic binaries used by the gtc router:

Fenêtre de terminal
gtc install

Use gtc install --dry-run to preview the install plan. For controlled environments, pin the toolchain:

Fenêtre de terminal
gtc install --release 1.0.15
gtc install --manifest ./greentic-toolchain.json

gtc install installs the standard companion tools. For standalone component development you may also install cargo-component:

Fenêtre de terminal
cargo binstall cargo-component

Then use the delegated component surface:

Fenêtre de terminal
gtc dev component --help

Run the following to verify everything is working:

Fenêtre de terminal
# Check GTC CLI
gtc --help
# Check Rust WASM target
rustup target list --installed | grep wasm32-wasip2
# Create and run a test bundle
gtc wizard --dry-run

Error: “wasm32-wasip2 target not found”

Fenêtre de terminal
rustup target add wasm32-wasip2

Error: “Permission denied”

Fenêtre de terminal
# On Linux/macOS, ensure binary is executable
chmod +x /usr/local/bin/gtc