Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have Amplify CLI follow the XDG Base Directory specification #13996

Open
1 of 2 tasks
arnfaldur opened this issue Oct 25, 2024 · 1 comment
Open
1 of 2 tasks

Have Amplify CLI follow the XDG Base Directory specification #13996

arnfaldur opened this issue Oct 25, 2024 · 1 comment
Labels
feature-request Request a new feature ops-general General operations theme platform Issues tied to the general CLI platform

Comments

@arnfaldur
Copy link

Is this feature request related to a new or existing Amplify category?

New category

Is this related to another service?

No response

Describe the feature you'd like to request

Move the .amplify directory from the user's home directory to another location, by default, or via a environment variable / CLI argument.

Describe the solution you'd like

The CLI creates a directory in the user's home directory called .amplify.

A more appropriate location would be .local/share/amplify, according to the XDG spec.

The bin, lib and logs subdirectories of .amplify could also be split among the standard contents of the .local dir.

An easier and quicker solution, that most would find sufficient is to allow for the location of the .amplify folder to be configured via a config file, environment variable, or command line argument. In that case; the structure would not be altered and the default could remain the same; in case that's important for backwards compatibility or something else.

Describe alternatives you've considered

I could find no information that suggests that this is currently possible. One alternative is to use symlinks, but that is not a solution for those intent on reducing clutter in their home directory.

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • ⚠️ This feature might incur a breaking change
@arnfaldur arnfaldur added the pending-triage Issue is pending triage label Oct 25, 2024
@ykethan
Copy link
Member

ykethan commented Oct 29, 2024

Hey @arnfaldur, thank you for filing this issue. Marking this as feature request for further evaluation.

@ykethan ykethan added feature-request Request a new feature platform Issues tied to the general CLI platform ops-general General operations theme and removed pending-triage Issue is pending triage labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature ops-general General operations theme platform Issues tied to the general CLI platform
Projects
None yet
Development

No branches or pull requests

2 participants