File | Date | Author | Commit |
---|---|---|---|
.github | 2025-02-15 |
![]() |
[b16255] release action update |
src | 2025-03-05 |
![]() |
[e05b8b] error messages updates |
.gitignore | 2025-02-09 |
![]() |
[d97bf8] fixes and updates |
Cargo.lock | 2025-03-03 |
![]() |
[c1f63a] proxied body fix, version bump |
Cargo.toml | 2025-03-03 |
![]() |
[c1f63a] proxied body fix, version bump |
README.md | 2025-02-21 |
![]() |
[368604] rust package renaming |
A command-line interface tool for API mocking and proxying using Apimimic. Apimimic is a powerful API mocking platform that allows you to create, manage, and simulate API endpoints with ease. This CLI tool integrates with the Apimimic service to provide local API mocking and proxying capabilities.
Apimimic is a comprehensive API mocking solution that offers:
The CLI tool extends these capabilities to your local development environment, allowing you to:
Download the latest release for your platform (Windows, macOS, or Linux) from our GitHub Releases page.
To build from source, you'll need to have Rust and Cargo installed on your system:
git clone https://github.com/rarar89/apimimic-cli.git
cd apimimic-cli
cargo build --release
The binary will be available in target/release/
.
Project key can be found in Apimimic dashboard in project view.
You can pre-set your project key by running:
apimimic set-project YOUR_PROJECT_KEY
Or provide it directly when running the server:
apimimic run --project YOUR_PROJECT_KEY
Basic usage (starts server on default port 8080):
apimimic run
With custom configuration:
apimimic run --listen 127.0.0.1:3000 --project YOUR_PROJECT_KEY --server http://localhost:3001
help
: Show help messageset-project <key>
: Save the project KEYrun
: Start the HTTP server with the following options:-p, --project <key>
: Project KEY. Required if not set with apimimic set-project
-l, --listen <address>
: Local address to listen on (default: 127.0.0.1:8080)-r, --remote <url>
: Remote API Mimic URL (default: https://cli.apimimic.com)--server <url>
: real api server URL (required if proxy mode is enabled on apimimic.com)The tool stores configuration in the following location:
- Windows: %APPDATA%\apimimic\apimimic-cli\config\config.json
- macOS: ~/Library/Application Support/com.apimimic.apimimic-cli/config.json
- Linux: ~/.config/apimimic-cli/config.json
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.