customer create
Create a new customer in your application and associate a customer to a channel. Customer information returned on success.
Usage
replicated customer create [Flags]
Flag | Type (if applicable) | Description |
---|---|---|
--name | string | The name of the customer. (Required) |
--channel | string | The channel name to associate with the customer. Case-sensitive. (Required) |
--ensure-channel | If set, channel is created if it does not exist. | |
--expires-in | duration | If set, license will expire a specified number of units from the current time. For example, 2h or 1h60m or 120m are all the same duration. |
--custom-id | string | If set, this custom alphanumeric ID is associated with this customer to more easily tie this record to your external data systems (i.e. Salesforce, Hubspot, etc.) |
-h, --help | Help for the command. | |
--app | string | The app slug or app ID to use in all calls. The default uses the $REPLICATED_APP environment variable. |
--token | string | The API token used to access your application in the Vendor API. The default uses the $REPLICATED_API_TOKEN environment variable. |
Examples
replicated customer create --channel Megacorp_Beta --name "Megacorp" --ensure-channel --expires-in "8760h" --custom-id "salesforceid-123"
ID NAME CHANNELS EXPIRES TYPE CUSTOM_ID
2u4KGXSY65SAUW0ltG_pPhxBGPJ4XNSS Megacorp Megacorp_Beta 2021-01-20 00:17:38 +0000 UTC dev salesforceid-123