Apext Logo

APEXT

List Command

This command will display all the API routes in your Next.js project. Open a terminal and set yourself in a Next.js project root directory and run:

apext list

Options:

You can specify a --path option within your api directory. In the case you have something similar to this folder structure:

|-pages
|  |-api
|  |  |-auth
|  |  |  |-login.ts
|  |  |-hello.ts

You can run list with the --path option pointing to the auth folder.

apext list --path auth

And it will only display the routes within the auth folder.

An open source project powered by LifeSpikes

MIT Licensed - 2022