Description
Deno Install Command: Support for Remote Configuration Files
Version
Deno 2.0.0
Issue Description
The deno install
command's --config
flag currently only accepts local file paths, limiting its functionality when installing CLI tools with remotely hosted source code and configuration files.
Expected vs. Current Behavior
Expected
The --config
flag should accept URLs, allowing for a streamlined installation process of remotely hosted CLI tools.
Current
The --config
flag only accepts local file paths, causing installation failures when attempting to use a URL.
Example Commands
Desired (Not Currently Supported)
deno install -Afg --config https://example-server-url/deno.json --import-map https://example-server-url/import_map.json https://example-server-url/main.ts
Current Workaround
- Fetch
deno.json
from the server - Save it locally
- Run:
deno install -Afg --config ./deno.json --import-map https://example-server-url/import_map.json https://example-server-url/main.ts
Impact
This limitation complicates the installation process for CLI tools relying on remote configuration files, affecting developers who maintain or use such tools.
Suggested Enhancement
Implement support for remote URLs in the --config
flag of the deno install
command to allow for a more flexible and streamlined installation process.
Additional Information
- The
--import-map
flag already supports remote URLs, suggesting similar functionality could be implemented for--config
. - This enhancement aligns with Deno's philosophy of supporting URL-based imports and configurations.
Thank you for considering this enhancement to improve the Deno installation process.