A powerful CLI tool for API testing and workflow automation using a simple, human-readable DSL.
npm install -g @restflow/cli
# or
pnpm add -g @restflow/clinpm install @restflow/cli
# or
pnpm add @restflow/cli### Get Todo
GET https://jsonplaceholder.typicode.com/todos/1
> assert status == 200
> assert body.id == 1
> assert body.title contains "delectus"
### Create Post
POST https://jsonplaceholder.typicode.com/posts
Content-Type: application/json
{
"title": "My New Post",
"body": "This is the content of my post",
"userId": 1
}
> assert status == 201
> assert body.title == "My New Post"
> capture postId = body.idThis project uses Nx monorepo architecture:
# Install dependencies
pnpm install
# Build all packages
pnpm nx run-many -t build --all
# Run tests
pnpm nx run-many -t test --all
# Build CLI
pnpm nx build cli@restflow/cli- Command line interface@restflow/parser- Flow file parser@restflow/engine- Flow execution engine@restflow/http- HTTP client@restflow/variables- Variable resolution@restflow/environment- Environment loading@restflow/assertions- Response validation@restflow/reporter- Output formatting@restflow/types- TypeScript definitions@restflow/utils- Shared utilities
Check out the examples/basic directory for a complete working example with:
- Express.js server with authentication
- Health check flows
- User registration and login flows
- JWT token handling
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
MIT License - see LICENSE file for details.
Built for API testing and automation