Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(readme): update CLI commands for katana and torii #391

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0xdiymax
Copy link

@0xdiymax 0xdiymax commented Feb 7, 2025

  • Update katana command flags (--dev.no-fee, --http.cors_origins)
  • Update torii command flags (--world, --http.cors_origins)
  • Fix sozo migrate command syntax

Summary by CodeRabbit

  • Documentation
    • Updated the instructions for starting the node and running the indexer with revised flags and options.
    • Simplified the migration command to streamline the local development setup.

- Update katana command flags (--dev.no-fee, --http.cors_origins)
- Update torii command flags (--world, --http.cors_origins)
- Fix sozo migrate command syntax
Copy link

coderabbitai bot commented Feb 7, 2025

Walkthrough

This pull request updates command-line instructions in the readme file. The modifications adjust the syntax for starting the Katana node and running the Torii indexer by replacing and adding flags, as well as simplifying the migration command for the Dojo starter. No changes were made to exported entities.

Changes

File Change Summary
readme.md Updated commands for local development: changed Katana node flags from "--disable-fee" to "--dev --dev.no-fee" and updated CORS flag from "--allowed-origins" to "--http.cors_origins"; simplified migration command by removing "apply" from "sozo migrate".

Possibly related PRs

Poem

In the code garden where I roam,
I found new flags to call home.
Katana hops with a playful beat,
Torii sings with a fresh new tweet.
Carrot commands now lead the way,
A rabbit’s dance in code today!
🥕🐇 Enjoy the change, let bugs sway away!


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
readme.md (1)

233-233: Standardize Quoting Style for Torii Command.
In this section, the Torii command uses single quotes around the asterisk:
  torii --world <WORLD_ADDRESS> --http.cors_origins '*'
For consistency with the Quick Start instructions (which use double quotes), it is advisable to standardize the quoting style. Consider updating it to:

-    torii --world <WORLD_ADDRESS> --http.cors_origins '*'
+    torii --world <WORLD_ADDRESS> --http.cors_origins "*"

This small change will improve the overall clarity.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1a3eeef and 8ad87d2.

📒 Files selected for processing (1)
  • readme.md (3 hunks)
🔇 Additional comments (3)
readme.md (3)

42-42: Updated Katana Command in Quick Start Section.
The command now reads:
  katana --dev --dev.no-fee --http.cors_origins "*"
This update matches the new CLI flags as described in the PR objectives. Please verify that adding the --dev flag along with --dev.no-fee is the intended change for all usage scenarios.


49-49: Simplification of the Sozo Migrate Command.
The command has been updated to:
  sozo build && sozo migrate
This removes the previously used verb ("apply") for migration, simplifying the command to match the updated workflow.


52-52: Updated Torii Command Flags.
The command now uses:
  torii --world <WORLD_ADDRESS> --http.cors_origins "*"
This replaces the earlier --allowed-origins flag with --http.cors_origins and ensures the world address is explicitly passed. The update aligns with the new CLI flag requirements.

@@ -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 "*"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Consistency Check for Katana Command in Examples Section.
In the “Running The Examples” section, the Katana command is updated to:
  katana --dev.no-fee --http.cors_origins "*"
Notice that the --dev flag present in the Quick Start section (line 42) is missing here, which may lead to inconsistencies in user guidance. Consider standardizing the command across the documentation. For example, you could change it to:

-    katana --dev.no-fee --http.cors_origins "*"
+    katana --dev --dev.no-fee --http.cors_origins "*"

Please verify if the --dev flag is mandatory in both contexts.


I'm going to gather more context from the repository to see how the Katana command appears in the documentation. In particular, I'll search for all occurrences of the command (including the flags) in readme.md to verify if the --dev flag is used consistently across sections.


🏁 Script executed:

#!/bin/bash
# Show all occurrences of the 'katana' command within readme.md with line numbers
rg --line-number 'katana' readme.md

Length of output: 144


Inconsistency found in Katana command usage.

  • Line 42 uses:
      katana --dev --dev.no-fee --http.cors_origins "*"
  • Line 212 uses:
      katana --dev.no-fee --http.cors_origins "*"

Based on the Quick Start section, the --dev flag appears necessary. I recommend standardizing the command in the “Running The Examples” section by adding the missing --dev flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant