engine-ai v0.0.2
Engine Command Line Interface
πQuickstart 
Do Your Work Smoothly With CLI
1. Install
npm install engine-ai
OR Install Globally
npm install -g engine-ai
2. Initilize Engine CLI
Run :- eng start
You Will See // β¨ 'Welcome To Engine CLI'
For Any Kind Of Help Run engine start -h
utility name and -h Or --help ...
βοΈ Setup Execution Policy (Windows Users Only) Optional
If you are a Windows user and encounter an error related to the execution policy (e.g., set-executionpolicy
), follow these steps to allow your CLI tool to run scripts:
π Steps:
Open PowerShell:
- Right-click on the Start menu and select Windows PowerShell (Admin).
Check Current Execution Policy:
Before changing the policy, you can check the current setting by running:
Get-ExecutionPolicy
Set Execution Policy:
Run the following command to set the execution policy to
RemoteSigned
:Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Confirm the Change:
- When prompted, type
Y
and press Enter.
- When prompted, type
Verify the Policy:
To verify the change, you can run:
Get-ExecutionPolicy -Scope CurrentUser
It should now display
RemoteSigned
.Close PowerShell:
- After making the change, close the PowerShell window.
Run Your CLI:
- Now, you should be able to run the CLI command without any issues.
β Why is this Required?
Windows has a built-in security feature that prevents running scripts from untrusted sources. By changing the execution policy to RemoteSigned
, you are allowing scripts that are downloaded from the internet to run, provided they are signed by a trusted publisher. This ensures a balance between security and usability.
With these steps completed, you can continue using the CLI tool on Windows without any execution policy errors!
π API Summary
eng start | To Initilize the CLI | New in eng@2.1 |
eng start tp | To Create A Template | New in eng@2.0 |
eng start ai | Start Generative AI For Help | New in eng@2.3 |
|
β‘ API Details
eng_start
This Will Start CLI Engine.
Example:
Run :- eng start
You Will See // β β¨ 'Welcome To Engine CLI'
eng_start_tp
This Will Propmt For The Choosing The Kinds Of Templates ...
Example:
Run :- eng start tp
Please select a template:
- βοΈ React
- π₯οΈ Express
- π HTML
eng_start_ai
This Will Propmt For The Choosing The Kinds Of AI Help ...
Example:
Run :- eng start ai
You Will Be Prompted For
- π General: Get help with general queries or prompts.
- π οΈ Modifying a File Based on the Prompt: Update a specific file according to the prompt.
π Genral
Choose Genral Help if you want to solve your doubt or any specific purpose for example :- give the propmt and see your answer as usual on Chat GPT. Right from you terminal
π οΈ Modifying A FIle Based On The Prompt
Choose this option if you want the help for a specefic file and based on the prompt you want to update your file.
β¨ Examples
* Suppose you are in root directory of your vite project
Command : eng start ai ./src/App.jsx
Prompt : Change this component to the counter component
Response :
- Your Counter Component has been genrated
- see in the terminal
- if you satisfy from this output
- And it will peompt for the overwrite the content which is inside the App.jsx
- If choose Yes
- it insert the newly genrated code To the App.jsx
β¨ Features
- Create Template
- Remove Unnecessary code from the Template
- AI Integrated
- Modify File with response genrated by AI
π Key Highlights:
- π and π¦ Icons to give a visual appeal to different sections.
- A clear instruction for Windows users to set the execution policy manually.
- The usage of command blocks to make instructions clear and readable.
This should help users understand how to fix the execution policy error and run your CLI tool successfully.
π¬ Contact
For any questions or support, please reach out to us at support@engine-ai.com.