The EasyPost CLI allows a user to interact with the EasyPost API without needing to build a custom solution - all from the command line.
All EasyPost CLI commands use the syntax ep mycommand
. Each available command can be found below.
- If you'd like to view these docs, run
ep help
. - View the version info by running
ep version
.
Create an address. You will be prompted for the address details. The accompanying generated ID can be used to reference this address later. EasyPost docs for this endpoint.
ep create_address
Retrieve an address record. EasyPost docs for this endpoint.
ep retrieve_address
Retrieve a list of addresses.
ep retrieve_addresses
Add a shipment to a batch. EasyPost docs for this endpoint.
ep add_shipment_to_batch
Create an empty batch object that shipments can be added to later. EasyPost docs for this endpoint.
ep add_shipment_to_batch
Generate a label for a batch of shipments. EasyPost docs for this endpoint.
ep create_batch
Remove a shipment from a batch. EasyPost docs for this endpoint.
ep remove_shipment_from_batch
Create insurance for a non-EasyPost shipment. EasyPost docs for this endpoint.
ep create_insurance
Retrieve a single insurance record. EasyPost docs for this endpoint.
ep retrieve_insurance
Retrieve a single insurance record. EasyPost docs for this endpoint.
ep retrieve_insurances
Retrieve a single order record. EasyPost docs for this endpoint.
ep retrieve_order
Create a parcel to use for later. EasyPost docs for this endpoint.
ep create_parcel
Retrieve a single parcel. EasyPost docs for this endpoint.
ep retrieve_parcel
Buy a pickup. EasyPost docs for this endpoint.
ep buy_pickup
Cancel a pickup. EasyPost docs for this endpoint.
ep cancel_pickup
Create a pickup. EasyPost docs for this endpoint.
ep create_pickup
Retrieve a pickup. EasyPost docs for this endpoint.
ep retrieve_pickup
Create a report based on type. Provide the report type and a start date and end date for the report when prompted. EasyPost docs for this endpoint.
ep create_report
Retrieve a list of reports based on type. EasyPost docs for this endpoint.
ep retrieve_reports
Retrieve a report based on report type. Provide an ID for the report you want to retrieve when prompted. EasyPost docs for this endpoint.
ep retrieve_report
Generate a manifest for a batch. EasyPost docs for this endpoint.
ep manifest_batch
Retrieve a single scanform. EasyPost docs for this endpoint.
ep retrieve_scanform
Retrieve a list of scanforms. EasyPost docs for this endpoint.
ep retrieve_scanforms
Provide the shipment ID and rate ID to purchase a label. EasyPost docs for this endpoint.
ep buy_shipment
Buy a single USPS domestic stamp that prints onto a #10 standard envelope.
ep buy_stamp
To do this, you'll need to configure an additional environment variable:
# macOS and Linux
echo "USPS_CARRIER_ACCOUNT_ID=ca_123..." >> ~/.easypost-cli-config
# Windows
@echo set USPS_CARRIER_ACCOUNT_ID=ca_123... >> C:/easypost-cli/easypost-cli-config.bat
Create a return shipment that swaps the to and from addresses on the label.
ep create_return
Create a shipment and have rates returned for all configured carriers. EasyPost docs for this endpoint.
ep create_shipment
Provide the shipment ID to refund the payment. This can take upwards of 15 days to process. EasyPost docs for this endpoint.
ep refund_shipment
Regenerate rates for a shipment. EasyPost docs for this endpoint.
ep regenerate_rates
Retrieve a shipment. EasyPost docs for this endpoint.
ep retrieve_shipment
Retrieve a list of shipments. EasyPost docs for this endpoint.
ep retrieve_shipments
Retrieve a shipment's smartrates. EasyPost docs for this endpoint.
ep retrieve_smartrates
Create a tracker for a shipment you've created. EasyPost docs for this endpoint.
ep create_tracker
Retrieve a single tracker. EasyPost docs for this endpoint.
ep retrieve_tracker
Retrieve a single tracker. EasyPost docs for this endpoint.
ep retrieve_trackers
Create a child user under the configured parent account. EasyPost docs for this endpoint.
ep create_child_user
Retrieve test and production API keys for an account. EasyPost docs for this endpoint.
ep retrieve_api_keys
Retrieve a list of all configured carrier accounts for the configured user. EasyPost docs for this endpoint.
ep retrieve_carrier_account
Retrieve a list of all configured carrier accounts for the configured user. EasyPost docs for this endpoint.
ep retrieve_carrier_accounts
Retrieve the list of all carrier types available to the account of the given API key. EasyPost docs for this endpoint.
ep retrieve_carrier_types
Retrieve a single user. EasyPost docs for this endpoint.
ep retrieve_user
Retrieve a list of users for the configured account.
ep retrieve_users
Create a webhook with a URL endpoint. EasyPost docs for this endpoint.
ep create_webhook
Delete a webhook by ID. EasyPost docs for this endpoint.
ep delete_webhook
Retrieve a single webhook. EasyPost docs for this endpoint.
ep retrieve_webhook
Retrieve a list of webhooks. EasyPost docs for this endpoint.
ep retrieve_webhooks
Enables a Webhook that has been disabled. EasyPost docs for this endpoint.
ep update_webhook