

# Install the CodeDeploy agent
<a name="codedeploy-agent-operations-install"></a>

**Important**  
Version 2.0.0 of the CodeDeploy agent is being rolled out across AWS Regions and might not be available in all Regions yet. It is an opt-in upgrade that can currently only be installed via the command line. To upgrade to version 2.0.0, see [Install the CodeDeploy agent using the command line](codedeploy-agent-operations-install-cli.md).

To use CodeDeploy on EC2 instances or on-premises servers, the CodeDeploy agent must be installed first. You can install the CodeDeploy agent with the command line or, for versions earlier than 2.0.0, with AWS Systems Manager. For more information about Systems Manager, see [What is AWS Systems Manager](https://docs.aws.amazon.com/systems-manager/latest/userguide/what-is-systems-manager.html).

For the recommended version to install, see [Version history of the CodeDeploy agent](codedeploy-agent.md#codedeploy-agent-version-history).

**Topics**
+ [Install the CodeDeploy agent using AWS Systems Manager](codedeploy-agent-operations-install-ssm.md)
+ [Install the CodeDeploy agent using the command line](codedeploy-agent-operations-install-cli.md)