To deploy the test definition to your org in the CLI, use the project deploy start command. For more information, see Salesforce CLI Command Reference.
1sf project deploy start
You can also deploy your test case with the Command Palette using SFDX: Deploy This Source to Org.
Run Tests With Agentforce DX
You can run tests in the command line with Agentforce DX using the agent test run command. To run tests with Agentforce DX, you’ll need the API name of the agent you want to test as well as your development org.
Agentforce DX Run Test Command
1sf agent test run --api-name Resort_Manager_Test --target-org my-dev-org