# Genlayer CLI

Use the GenLayer CLI to deploy, interact with, and debug intelligent contracts.

- Repository: https://github.com/internet-court/internet-court-skill (7050 stars)
- Category: Testing
- License: see repository
- Last updated: 2026-10-26
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add internet-court/internet-court-skill --skill genlayer-cli -g -a claude-code -y`
Codex: `npx skills add internet-court/internet-court-skill --skill genlayer-cli -g -a codex -y`
Cursor: `npx skills add internet-court/internet-court-skill --skill genlayer-cli -g -a cursor -y`
Gemini CLI: `npx skills add internet-court/internet-court-skill --skill genlayer-cli -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add internet-court/internet-court-skill`

## Description

Use the GenLayer CLI to deploy, interact with, and debug intelligent contracts.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# GenLayer CLI

The `genlayer` CLI manages contract deployment, interaction, transaction inspection, and network configuration. Works with GenLayer Studio (local), studio.genlayer.com, and Testnet Bradbury.

## Setup

```bash
npm install -g genlayer
```

## Network Configuration

```bash
genlayer network set                    # Interactive selector
genlayer network set testnet-bradbury   # Direct
genlayer network info                   # Show current network config
genlayer network list                   # List all networks
```

Networks: `localnet`, `studionet`, `testnet-asimov`, `testnet-bradbury`

**Note**: `studionet` is gasless, no tokens are required to deploy or interact with contracts. A 0 GEN balance is expected and does not prevent any operations.

**Note**: `studionet` is rate-limited per IP, **60 req/min, 1000 req/hr, 10000 req/day**. Limits aren't permanent, batching many `deploy`/`write` calls trips `-32429` / HTTP 429 and further requests are rejected until the window resets (next minute / hour / day cycle). `-32028` signals the pending-queue cap, **up to 32 in-flight txs per sender**; a separate cap also applies per contract. Throttle batch scripts, wait for receipts between submissions, or use `localnet` for heavy batches.

**Always use `genlayer network set` instead of `--rpc`** for built-in networks. The `--rpc` flag bypasses the chain configuration (consensus contract ABI, `isStudio` flag, etc.) and will cause transaction polling failures. Only use `--rpc` for custom/private networks not in the built-in list.

## Account Management

The rest: https://github.com/internet-court/internet-court-skill/blob/HEAD/vendored/genlayer/genlayer-cli/SKILL.md
