- Node.js (v20.12.0 or later)
- npm (v10.1.0 or later)
At the root of the agentql-cli directory, run the following command to install the necessary modules:
npm install
--
allows you to pass arguments to the underlying Node.js process.
npm run start --agentql <command>
To run unit tests, use the following command:
npm run test
To run prettier
on files, use the following command:
npm run format
At the root of the agentql-cli directory, run the following command to build the CLI:
npm run build
After building the CLI, run the following command to register the CLI globally:
npm link
You can now use agentql
to run the CLI globally!