Support for recording deployments using the newrelic deployments command is now deprecated and will be fully removed in agent version 10.0.0.
The api_key config setting is now also deprecated and will be removed. Its only use was for the newrelic deployments command.
Migration Guide
Going forward, we recommend using New Relic Change Tracking, which offers growing number of automated and manual ways to record changes (including deployments).
Please see our official guide to Change Tracking in New Relic for a list of available options and integration steps.