For the latest updates and improvements, see the latest Cloud documentation instead.
Authenticating using an Account API token¶
If you'd like to automate uploading coverage for multiple repositories you can authenticate using an Account API Token:
- Create an Account API token on Codacy. You can find the token in Your account → API tokens.
- Set the API token in your terminal, replacing
%API_Token%
with your own token. - Set your repository name in your terminal, replacing
%Repo_Name%
. - Set your username in your terminal, replacing
%Username%
.
export CODACY_API_TOKEN=%API_Token%
export CODACY_PROJECT_NAME=%Repo_Name%
export CODACY_USERNAME=%Username%
Warning
You should keep your API token well protected, as it grants owner permissions to your projects.
Share your feedback 📢
Did this page help you?
Thanks for the feedback! Is there anything else you'd like to tell us about this page?
255 characters left
We're sorry to hear that. Please let us know what we can improve:
255 characters left
Alternatively, you can create a more detailed issue on our GitHub repository.
Thanks for helping improve the Codacy documentation.
If you have a question or need help please contact support@codacy.com.