Synopsis
<network> is one of: local, dev.
The optional --rpc-url flag overrides the default RPC URL for the network.
This is useful when testing against a different validator instance or ephemeral
environment:
Behavior
- Create project directory structure:
-
Generate a wallet — Calls the same logic as
cowboy wallet create. Writes the private key to.cowboy/key. -
Write network config — Writes
.cowboy/config.jsonwith the RPC URL for the selected network (or the--rpc-urloverride). -
Create starter actor — Writes
actors/hello/main.pywith a minimal actor template. -
Fund the wallet (if faucet available) — For
localanddevnetworks, sends aPOST /faucetrequest to fund the new wallet with CBY. Prints the funded amount and balance. - Print summary — Shows the created project structure, wallet address, and next steps.
Network Defaults
| Network | RPC URL | Faucet |
|---|---|---|
local | http://localhost:4000 | Yes — POST http://localhost:4000/faucet |
dev | <your-validator-url> | Yes — POST <your-validator-url>/faucet |
Example
Edge Cases
- Directory already exists — If
.cowboy/already exists, print a warning and skip wallet generation (do not overwrite existing key). - Faucet unreachable — If the faucet request fails (network down, local validator not running), print a warning but continue. The project is still usable.

