From 8ad87d2251aa6fabc804e6d35b14c21f7b66a62e Mon Sep 17 00:00:00 2001 From: 0xdiymax Date: Fri, 7 Feb 2025 18:59:20 +0800 Subject: [PATCH] docs(readme): update CLI commands for katana and torii - Update katana command flags (--dev.no-fee, --http.cors_origins) - Update torii command flags (--world, --http.cors_origins) - Fix sozo migrate command syntax --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 1ca47039..6ec230b2 100644 --- a/readme.md +++ b/readme.md @@ -39,17 +39,17 @@ npx @dojoengine/create-dojo start -t example-vite-react-sdk ```bash cd dojo-starter - katana --disable-fee --allowed-origins "*" + katana --dev --dev.no-fee --http.cors_origins "*" ``` 2. **Terminal 2: Build and migrate the Dojo starter** ```bash cd dojo-starter - sozo build && sozo migrate apply + sozo build && sozo migrate # Start Torii indexer - world address can be found in the print out of migrate - torii --world --allowed-origins "*" + torii --world --http.cors_origins "*" ``` 3. **Terminal 3: Launch the frontend application** @@ -209,7 +209,7 @@ To run the examples, you'll need to set up three terminal windows: 2. Start Katana (local Starknet devnet) with fee disabled and all origins allowed: ```bash - katana --disable-fee --allowed-origins "*" + katana --dev.no-fee --http.cors_origins "*" ``` **Terminal 2**: Build, migrate, and run Torii @@ -230,7 +230,7 @@ To run the examples, you'll need to set up three terminal windows: 3. Run Torii (indexer) with the world address and allowed origins: ```bash - torii --world --allowed-origins "*" + torii --world --http.cors_origins '*' ``` Note: The world address may change. Ensure you're using the correct address from your migration output.