FeatureFuel
2

Appwrite CLI working with Multiple Projects

Source: appwrite/appwrite#991 · opened by @lohanidamodar
Working with multiple Appwrite projects at once is common. Right now each time we want CLI to work with another project, we need to run Appwrite init again every time, this is painful if we want to keep switching between projects.

Suggested Solutions
Using .appwrite.yml file

Create .appwrite.yml file in a local directory with the required settings (project id, api key, host) and execute Appwrite CLI from that folder, it will look for .appwrite.yml file and load the settings from there. If the file is not present it will use the default settings from preferences set using appwrite init

Using alias

We could save multiple project settings by providing Alias in preferences

1. Appwrite init —alias=project1 ...... (like this we can setup multiple alias)
2. appwrite select project1 (will select an alias project to work with)
3. All further appwrite commands will take project1 settings

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests