CLI reference, examples, and framework-specific guides.
likhis [options]
| Flag | Short | Description | Default |
|---|---|---|---|
--path |
-p |
Path to project root directory | Current directory |
--output |
-o |
Output format: postman, insomnia, httpie, curl |
postman |
--file |
-f |
Custom output file name | Auto-generated |
--output-path |
-O |
Output directory path | Current directory |
--framework |
-F |
Target framework: auto or plugin name |
auto |
--full |
Generate exports for dev, staging, and prod | false |
Point Likhis at any backend project and let it auto-detect the framework:
likhis -p ./my-project -o postman
Explicitly specify the framework for faster and more accurate detection:
likhis -p ./express-app -o postman -F express
likhis -p ./flask-app -o insomnia -F flask
likhis -p ./spring-app -o httpie -F spring
likhis -p ./laravel-app -o curl -F laravel
Specify a custom file name for the generated collection:
likhis -p ./my-api -o postman -f custom-collection.json
Write the output to a specific directory:
likhis -p ./my-api -o postman --output-path ./exports
likhis -p ./my-api -o postman -f my-api -O ./exports
# Generates: ./exports/my-api.json
Use the --full flag to generate separate collections for development, staging, and production environments. Each environment uses its own base URL.
likhis -p ./my-api -o postman --full
# Generates:
# postman-collection-dev.json
# postman-collection-staging.json
# postman-collection-prod.json
likhis -p ./my-api -o postman --full --output-path ./api-exports
# Generates:
# ./api-exports/postman-collection-dev.json
# ./api-exports/postman-collection-staging.json
# ./api-exports/postman-collection-prod.json
| Format | Flag | Output File | Usage |
|---|---|---|---|
| Postman | -o postman |
postman-collection.json |
Import into Postman Desktop or web |
| Insomnia | -o insomnia |
insomnia-export.json |
Import into Insomnia Desktop |
| HTTPie Desktop | -o httpie |
httpie-collection.json |
Import into HTTPie Desktop |
| cURL | -o curl |
api-requests.sh |
Run directly as a shell script |
likhis -p ./express-app/src -o postman -F express
likhis -p ./django-project -o insomnia -F django
likhis -p ./spring-app/src/main/java -o postman -F spring
likhis -p ./flask-app -o insomnia -F flask
likhis -p ./laravel-app -o curl -F laravel
When you run Likhis on a project, it outputs information about what it found:
$ likhis -p ./exp/express -o postman -F express
Scanning project at: /Users/user/projects/likhis/exp/express
Framework detection: express
Output format: postman
Loaded 1 plugin(s)
Found 3 files to analyze
Extracted 5 routes
Successfully generated postman-collection.json
You can now use this file with Postman
The generated postman-collection.json can be imported directly into Postman. It includes all discovered routes with proper HTTP methods, path parameters, query parameters, and request body templates.