Getting Started

To start working with the APImetrics CLI, all you need to do is install it via npm. If you do not currently have npm installed, follow the link here.

Run the following to install:

npm install -g @apimetrics/cli

Once this is done, you will need to log in to your APImetrics account. To do this, run the following command:

apimetrics login

You will be redirected to a page in your browser that has a code. Check this code is the same as the code displayed in your APImetrics CLI. If they are, click confirm. If you have multi-factor authentication enabled, you will be asked to input your one-time code. After this, you will be logged in and are able to return to your CLI.

Now that you are logged in, the CLI will ask you to select one of the Organizations you are part of to work on. Once this is selected, it will ask you to select the Project you want to work on. Now you are ready to start with your CLI.


What’s Next

Want to change your Project or Organization, follow our Configuration tutorial.