@galaxy-cloud/cli
v1.0.5
Published
Official Galaxy Platform CLI - Deploy and manage your applications
Maintainers
Readme
Galaxy CLI
Official command-line interface for deploying and managing applications on Galaxy.
Quick Start
# 1. Authenticate with Galaxy
npx @galaxy-cloud/cli login
# 2. Initialize your project
npx @galaxy-cloud/cli init
# 3. Deploy
npx @galaxy-cloud/cli deployThat's it! Your app is now live on Galaxy.
Using
npxensures you always have the latest version.
Global Installation (Optional)
If you prefer shorter commands:
npm install -g @galaxy-cloud/cli
galaxy login
galaxy init
galaxy deployCommands
Authentication
| Command | Description |
| --------- | ---------------------------------------- |
| login | Authenticate with Galaxy (opens browser) |
| logout | Clear local credentials |
| whoami | Show current user and organization |
Deployment
| Command | Description |
| ---------------- | ---------------------------------------------- |
| init | Create a new app and link it to your directory |
| link <app-id> | Link directory to an existing app |
| deploy | Deploy your application |
| logs | Stream application logs |
| config | Show current configuration |
Environment Variables
Galaxy uses a staged deployment workflow for environment variables - changes are saved but not applied until you deploy them.
| Command | Description |
| -------------------------- | ------------------------------ |
| variables | List all environment variables |
| variables --env .env | Import variables from a file |
| variables:set KEY value | Set a variable |
| variables:unset KEY | Delete a variable |
| variables:deploy | Apply pending variable changes |
| variables:status | Check for pending changes |
Example workflow:
# Set multiple variables
npx @galaxy-cloud/cli variables:set DATABASE_URL postgresql://localhost/mydb
npx @galaxy-cloud/cli variables:set API_KEY secret123
# Apply all changes at once
npx @galaxy-cloud/cli variables:deployConfiguration Files
.galaxy/config.json (Auto-generated, gitignored)
Links your local directory to a Galaxy app. Created automatically by init or link.
{
"appId": "your-app-id"
}galaxy.json (Optional, can be committed)
Deployment configuration. If not present, Galaxy uses your app's default settings.
{
"commands": {
"install": "npm ci",
"build": "npm run build",
"start": "npm start"
},
"health": {
"path": "/health"
},
"deploy": {
"rootDirectory": "./"
}
}.galaxyignore (Optional)
Exclude files from deployment, similar to .gitignore:
node_modules/
.git/
*.log
.envDefault patterns are applied automatically even without this file.
Team Collaboration
When a teammate clones your repository:
# Get the app ID from the Galaxy dashboard or a teammate
npx @galaxy-cloud/cli link <app-id>
# Deploy
npx @galaxy-cloud/cli deployThe galaxy.json file can be committed to share deployment settings, while .galaxy/config.json stays local to each developer.
Requirements
- Node.js >= 18.0.0
Support
- Documentation: docs.galaxycloud.app
- Support: help.galaxycloud.app
License
MIT
