ctosooa
v1.0.17
Published
CTO Sooatek tool
Readme
ctosooa
CTO Sooatek tool - A command-line utility package.
Installation
Install globally using npm:
npm install -g ctosooaUsage
Built-in Commands
Echo Command
The echo command prints the provided message to the console.
ctosooa echo <message>Examples:
# Simple message
ctosooa echo "Hello World"
# Multiple words
ctosooa echo This is a test message
# With quotes
ctosooa echo "Welcome to ctosooa CLI"Output:
Hello World
This is a test message
Welcome to ctosooa CLIVersion Command
ctosooa --version
ctosooa -vCustom Commands
The CLI automatically routes commands to files in the commands/ folder.
Example: Hello Command
ctosooa hello 1Output:
Hello 1! Welcome to ctosooa.
You passed the number: 1
Double of 1 is: 2ctosooa hello WorldOutput:
Hello World! Welcome to ctosooa.Symfony Command
Create a complete Symfony API project with all configurations.
ctosooa symfony <project-name>Example:
ctosooa symfony helloWhat it does automatically:
- ✅ Creates complete Symfony API skeleton
- ✅ Installs API Platform and Maker bundle
- ✅ Configures MySQL database
- ✅ Creates the database (if MySQL is running)
- ✅ Creates
HelloControllerwith two API endpoints:GET /api/hello- Returns hello messageGET /api/hello/{name}- Returns personalized message
- ✅ Clears cache
- ✅ Everything ready to use!
Prerequisites:
- Composer installed
- PHP 8.1+
- MySQL running (recommended: root/root credentials)
After creation (only 2 steps!):
cd hello
symfony server:start
curl http://localhost:8000/api/helloThat's it! Everything is pre-configured.
Analyse Command
Analyze a directory using Claude CLI to get insights about the codebase.
ctosooa analyse [directory]Prerequisites:
Make sure you have Claude CLI installed and available in your PATH. The command will use the claude command by default.
Examples:
# Analyze current directory
ctosooa analyse
# Analyze specific directory
ctosooa analyse /path/to/projectConfiguration (Optional):
If your Claude CLI is not in PATH or has a custom location, create a config.json file in the ctosooa installation directory:
{
"claudePath": "/usr/local/bin/claude"
}Or for custom installations:
{
"claudePath": "/home/user/.nvm/versions/node/v20.0.0/bin/claude"
}What it does:
- Scans all code files in the directory (
.js,.ts,.json,.md, etc.) - Skips
node_modules,.git, and hidden files - Executes Claude CLI with the codebase content
- Provides insights on:
- Project structure and organization
- Technologies and frameworks used
- Code quality observations
- Potential improvements
- Security considerations
Creating Your Own Commands
- Create a new
.jsfile in thecommands/folder - Export a function that takes an
argsarray as parameter - The command name will match the filename
Example: commands/greet.js
module.exports = function(args) {
const name = args[0] || 'Guest';
console.log(`Greetings, ${name}!`);
};Usage:
ctosooa greet Alice
# Output: Greetings, Alice!Uninstallation
To remove the package:
npm uninstall -g ctosooa