Vaktum CLI
Vaktum CLI Overview
The Vaktum CLI is a powerful command-line tool that allows you to run Vaktum's core functionality locally on your machine or in your CI/CD pipelines.
Key Features
The following functionality is supported from the CLI tooling:
- API Validation: Validate OpenAPI specifications for correctness and best practices
- SDK Generation: Generate client SDKs from your API definitions
- Test Execution: Run API tests against your environments
- Test Runner: Host a local test runner to execute tests against private APIs
No Cost to Use
The Vaktum CLI tooling is available at no cost. It is designed to be downloaded freely and used in local development and CI/CD pipelines.
Artifacts generated in Vaktum.com or via the Vaktum API are designed to work seamlessly with the CLI tooling. For example, test suites created on Vaktum.com are stored in open formats and can be executed with the CLI. This approach reduces the risk of vendor lock-in and gives you full control over your testing assets.
Installation
To obtain the Vaktum CLI:
- Visit the Vaktum.com download page
- Download the appropriate version for your operating system
- Make the file executable (on Linux/macOS):
chmod +x vaktum
- Optionally, add to your PATH for easier access
Basic Usage
# Check the CLI version
./vaktum --version
# Get help
./vaktum --help
# Validate an API definition
./vaktum validate --api path/to/openapi.json
# Generate an SDK
./vaktum generate sdk --api path/to/openapi.json --language typescript --output ./sdk
# Run tests
./vaktum test --tests path/to/tests.json --env path/to/environment.json
# Start a local test runner
./vaktum runner start
CLI vs. Vaktum.com
While the CLI provides essential testing functionality, Vaktum.com offers additional features:
Feature | Vaktum CLI | Vaktum.com |
---|---|---|
Validate API | ✅ | ✅ |
Run Tests | ✅ | ✅ |
Generate SDK | ✅ | ✅ |
Edit API | ❌ | ✅ |
Generate Tests | ❌ | ✅ |
Edit Tests | ❌ | ✅ |
Generate Data Model | ❌ | ✅ |
API Docs | ✅ | ✅ |
Test Scheduling | ❌ | ✅ |
For more detailed information on specific CLI functions, see: