mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
1.2 KiB
1.2 KiB
@logto/tunnel |
---|
minor |
add deploy command and env support
Add new deploy
command to deploy your local custom UI assets to your Logto Cloud tenant
- Create a machine-to-machine app with Management API permissions in your Logto tenant
- Run the following command
npx @logto/tunnel deploy --auth <your-m2m-app-id>:<your-m2m-app-secret> --endpoint https://<tenant-id>.logto.app --management-api-resource https://<tenant-id>.logto.app/api --experience-path /path/to/your/custom/ui
Note: The --management-api-resource
(or --resource
) can be omitted when using the default Logto domain, since the CLI can infer the value automatically. If you are using custom domain for your Logto endpoint, this option must be provided.
Add environment variable support
- Create a
.env
file in the CLI root directory, or any parent directory where the CLI is located. - Alternatively, specify environment variables directly when running CLI commands:
ENDPOINT=https://<tenant-id>.logto.app npx @logto/tunnel ...
Supported environment variables:
- LOGTO_AUTH
- LOGTO_ENDPOINT
- LOGTO_EXPERIENCE_PATH
- LOGTO_EXPERIENCE_URI
- LOGTO_MANAGEMENT_API_RESOURCE