This is an MVP of a cli for our deployment metrics API.
You need to have a product-spec.yaml in the directory where the command is executed.
Sample can be found in this repo.
- Sign-up using the sign-up command. You'll get a token that you will need to put in an environment variable called DEPLOYMENT_API_TOKEN
- Run commands needed to track metrics
- Create new deployment using the create command. Save the deployment ID for next steps.
- Run your steps needed to deploy you application
- Update the deployment using the ID you got in step 1, for each step in the deployment(created, running, done, cancelled, failed).
- When deployment flow is done, the deployment ID can be discarded.