Sicilian CLI Usage

@ilokesto/sicilian is a CLI tool designed to improve developer productivity and reduce repetitive code. The CLI helps you generate sicilian code snippets quickly and insert them into your project.

help command#

The help command displays usage information and available flags and options for the Sicilian CLI.

Running sicilian without arguments also shows the help output.

generate command#

The generate command creates a new code snippet and inserts it into the specified file.

  • <file_path>: the file path to add the snippet to. If the file doesn't exist, it will be created; if it does exist, the snippet will be appended. Parent directories will be created if necessary.
  • -o, --object: generate an object-style snippet. If omitted, the CLI will default to destructured output.

1. Generate a basic snippet (destructured)#

Use the following command to generate a destructured snippet into src/components/MyForm.tsx.

The command result will append code similar to the example below to src/components/MyForm.tsx:

2. Generate an object-style snippet#

Use the following command to generate an object-style snippet into src/utils/formHooks.ts.

The command result will append code similar to the example below to src/utils/formHooks.ts.

CLI Usage - Command Line Tools | ilokesto - React Library Collection