
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@apimatic/cli
Advanced tools
apimatic is in beta.
The official CLI for APIMatic.
To get started with APIMatic's CLI using a step by step wizard, run the following command:
$ apimatic quickstart
$ npm install -g @apimatic/cli
$ apimatic COMMAND
running command...
$ apimatic (--version)
@apimatic/cli/1.0.0-beta.1 win32-x64 node-v23.4.0
$ apimatic --help [COMMAND]
USAGE
$ apimatic COMMAND
...
apimatic api transform
apimatic api validate
apimatic auth login
apimatic auth logout
apimatic auth status
apimatic autocomplete [SHELL]
apimatic help [COMMAND]
apimatic portal copilot
apimatic portal generate
apimatic portal recipe new
apimatic portal serve
apimatic portal toc new
apimatic quickstart
apimatic sdk generate
apimatic api transform
Transform API specifications between different formats.
USAGE
$ apimatic api transform --format
apimatic|wadl2009|wsdl|swagger10|swagger20|swaggeryaml|oas3|openapi3yaml|apiblueprint|raml|raml10|postman10|postman2
0|graphqlschema [--file <value>] [--url <value>] [-d <value>] [-f] [-k <value>]
FLAGS
-d, --destination=<value> [default: ./] directory to save the transformed file to
-f, --force overwrite changes without asking for user consent.
-k, --auth-key=<value> override current authentication state with an authentication key.
--file=<value> path to the API specification file to transform
--format=<option> (required) specification format to transform API specification into
<options: apimatic|wadl2009|wsdl|swagger10|swagger20|swaggeryaml|oas3|openapi3yaml|apibluep
rint|raml|raml10|postman10|postman20|graphqlschema>
--url=<value> URL to the API specification file to transform (publicly accessible)
DESCRIPTION
Transform API specifications between different formats.
Transform API specifications from one format to another.
Supports multiple formats including OpenAPI/Swagger, RAML, WSDL, and Postman Collections.
EXAMPLES
apimatic api transform --format=openapi3yaml --file=./specs/sample.json --destination=./
apimatic api transform --format=raml --url="https://petstore.swagger.io/v2/swagger.json" --destination=./
See code: src/commands/api/transform.ts
apimatic api validate
Validate API specification for syntactic and semantic correctness.
USAGE
$ apimatic api validate [--file <value>] [--url <value>] [-k <value>]
FLAGS
-k, --auth-key=<value> override current authentication state with an authentication key.
--file=<value> Path to the API specification file to validate
--url=<value> URL to the API specification file to validate (publicly accessible)
DESCRIPTION
Validate API specification for syntactic and semantic correctness.
Validate your API specification to ensure it adheres to syntactic and semantic standards.
EXAMPLES
apimatic api validate --file=./specs/sample.json
apimatic api validate --url="https://petstore.swagger.io/v2/swagger.json"
See code: src/commands/api/validate.ts
apimatic auth login
Login to your APIMatic account.
USAGE
$ apimatic auth login [-k <value>]
FLAGS
-k, --auth-key=<value> Sets authentication key for all commands.
DESCRIPTION
Login to your APIMatic account.
Login using your APIMatic credentials or an API Key
EXAMPLES
apimatic auth login
apimatic auth login --auth-key={api-key}
See code: src/commands/auth/login.ts
apimatic auth logout
Clears the local login credentials.
USAGE
$ apimatic auth logout
DESCRIPTION
Clears the local login credentials.
Clears the local login credentials. This will also clear any cached credentials from the CLI.
EXAMPLES
apimatic auth logout
See code: src/commands/auth/logout.ts
apimatic auth status
View the currently logged in user.
USAGE
$ apimatic auth status
DESCRIPTION
View the currently logged in user.
EXAMPLES
apimatic auth status
See code: src/commands/auth/status.ts
apimatic autocomplete [SHELL]
Display autocomplete installation instructions.
USAGE
$ apimatic autocomplete [SHELL] [-r]
ARGUMENTS
SHELL (zsh|bash|powershell) Shell type
FLAGS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
DESCRIPTION
Display autocomplete installation instructions.
EXAMPLES
$ apimatic autocomplete
$ apimatic autocomplete bash
$ apimatic autocomplete zsh
$ apimatic autocomplete powershell
$ apimatic autocomplete --refresh-cache
See code: @oclif/plugin-autocomplete
apimatic help [COMMAND]
Display help for apimatic.
USAGE
$ apimatic help [COMMAND...] [-n]
ARGUMENTS
COMMAND... Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for apimatic.
See code: @oclif/plugin-help
apimatic portal copilot
Configure API Copilot for your API Documentation portal
USAGE
$ apimatic portal copilot [-i <value>] [--disable] [-f] [-k <value>]
FLAGS
-f, --force overwrite changes without asking for user consent.
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes API
specifications and configuration files.
-k, --auth-key=<value> override current authentication state with an authentication key.
--disable marks the API Copilot as disabled in the configuration
DESCRIPTION
Configure API Copilot for your API Documentation portal
Displays available API Copilots associated with your account and allows you to select which one to integrate with your
portal. Each APIMatic account includes one Copilot by default. The selected Copilot will be added to your
'APIMATIC-BUILD.json' file
EXAMPLES
apimatic portal copilot --input=./
apimatic portal copilot --input=./ --disable
See code: src/commands/portal/copilot.ts
apimatic portal generate
Generate an API Documentation portal.
USAGE
$ apimatic portal generate [-i <value>] [-d <value>] [-f] [--zip] [-k <value>]
FLAGS
-d, --destination=<value> [default: <input>/portal] path where the portal will be generated.
-f, --force overwrite changes without asking for user consent.
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes
API specifications and configuration files.
-k, --auth-key=<value> override current authentication state with an authentication key.
--zip download the generated portal as a .zip archive
DESCRIPTION
Generate an API Documentation portal.
Generate an API Documentation portal. Requires an input directory containing API specifications, a config file and
optionally, markdown guides. For details, refer to the [documentation](https://docs.apimatic.io/platform-api/#/http/gu
ides/generating-on-prem-api-portal/build-file-reference)
EXAMPLES
apimatic portal generate
apimatic portal generate --input="./" --destination="./portal"
See code: src/commands/portal/generate.ts
apimatic portal recipe new
Add an API Recipe to your API documentation portal.
USAGE
$ apimatic portal recipe new [--name <value>] [-i <value>] [-f]
FLAGS
-f, --force overwrite changes without asking for user consent.
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes API
specifications and configuration files.
--name=<value> name for the recipe
DESCRIPTION
Add an API Recipe to your API documentation portal.
This command adds a new API Recipe file to your documentation portal.
To learn more about API Recipes, visit:
https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/api-recipes
EXAMPLES
apimatic portal recipe new
apimatic portal recipe new --name="My API Recipe" --input="./"
See code: src/commands/portal/recipe/new.ts
apimatic portal serve
Generate and serve an API Documentation Portal with hot reload.
USAGE
$ apimatic portal serve [-p 3000] [-i <value>] [-d <value>] [-o] [--no-reload] [-k <value>]
FLAGS
-d, --destination=<value> [default: <input>/portal] path where the portal will be generated.
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes
API specifications and configuration files.
-k, --auth-key=<value> override current authentication state with an authentication key.
-o, --open open the portal in the default browser.
-p, --port=3000 [default: 3000] port to serve the portal.
--no-reload disable hot reload.
DESCRIPTION
Generate and serve an API Documentation Portal with hot reload.
Requires an input directory with API specifications, a config file, and optionally markdown guides. Supports disabling
hot reload and opening the portal in the default browser.
EXAMPLES
apimatic portal serve
apimatic portal serve --input=./ --destination=./portal --port=3000 --open --no-reload
See code: src/commands/portal/serve.ts
apimatic portal toc new
Generate a Table of Contents (TOC) file for your API documentation portal
USAGE
$ apimatic portal toc new [-d <value>] [-i <value>] [-f] [--expand-endpoints] [--expand-models]
FLAGS
-d, --destination=<value> [default: <input>/src/content] path where the toc.yml will be generated.
-f, --force overwrite changes without asking for user consent.
-i, --input=<value> [default: ./] path to the parent directory containing the 'src' directory, which includes
API specifications and configuration files.
--expand-endpoints include individual entries for each endpoint in the generated 'toc.yml'. Requires a valid
API specification in the working directory.
--expand-models include individual entries for each model in the generated 'toc.yml'. Requires a valid API
specification in the working directory.
DESCRIPTION
Generate a Table of Contents (TOC) file for your API documentation portal
This command generates a new Table of Contents (TOC) file used in the
generation of your API documentation portal.
The output is a YAML file with the .yml extension.
To learn more about the TOC file and APIMatic build directory structure, visit:
https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/overview-generating-api-portal
EXAMPLES
apimatic portal toc new --destination=./src/content/
apimatic portal toc new --input=./
apimatic portal toc new --input=./ --destination=./src/content/
See code: src/commands/portal/toc/new.ts
apimatic quickstart
Create your first SDK or API Portal using APIMatic.
USAGE
$ apimatic quickstart
DESCRIPTION
Create your first SDK or API Portal using APIMatic.
Get started with your first SDK or API Portal in four easy steps.
EXAMPLES
apimatic quickstart
See code: src/commands/quickstart.ts
apimatic sdk generate
Generate an SDK for your API
USAGE
$ apimatic sdk generate -l csharp|java|php|python|ruby|typescript|go [--spec <value>] [-d <value>] [-f] [--zip]
[-k <value>]
FLAGS
-d, --destination=<value> directory where the SDK will be generated
-f, --force overwrite changes without asking for user consent.
-k, --auth-key=<value> override current authentication state with an authentication key.
-l, --language=<option> (required) programming language for SDK generation
<options: csharp|java|php|python|ruby|typescript|go>
--spec=<value> [default: ./src/spec] path to the folder containing the API specification file
--zip download the generated SDK as a .zip archive
DESCRIPTION
Generate an SDK for your API
Generate Software Development Kits (SDKs) from API specifications.
Supports multiple programming languages including Java, C#, Python, JavaScript, and more.
EXAMPLES
apimatic sdk generate --language=java
apimatic sdk generate --language=csharp --spec=./src/spec
apimatic sdk generate --language=python --destination=./sdk --zip
See code: src/commands/sdk/generate.ts
FAQs
The official CLI for APIMatic.
The npm package @apimatic/cli receives a total of 204 weekly downloads. As such, @apimatic/cli popularity was classified as not popular.
We found that @apimatic/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.