INFRA CONSOLIDATION - nself-org/cli GitHub Wiki
Migration Guide: v0.9.6 โ v1.0.0
In nself v1.0.0, all infrastructure-related commands have been consolidated under a single infra command for better organization and discoverability.
-
nself provider- Cloud provider management -
nself cloud- Alias for provider (deprecated) -
nself k8s- Kubernetes management -
nself helm- Helm chart management
-
nself infra provider- Cloud provider infrastructure -
nself infra k8s- Kubernetes infrastructure -
nself infra helm- Helm chart management
| Old Command | New Command | Status |
|---|---|---|
nself provider list |
nself infra provider list |
โ Working |
nself provider init <name> |
nself infra provider init <name> |
โ Working |
nself provider validate |
nself infra provider validate |
โ Working |
nself provider show <name> |
nself infra provider show <name> |
โ Working |
nself provider server create |
nself infra provider server create |
โ Working |
nself provider server list |
nself infra provider server list |
โ Working |
nself provider server ssh <id> |
nself infra provider server ssh <id> |
โ Working |
nself provider cost estimate |
nself infra provider cost estimate |
โ Working |
nself provider cost compare |
nself infra provider cost compare |
โ Working |
| Old Command | New Command | Status |
|---|---|---|
nself k8s init |
nself infra k8s init |
โ Working |
nself k8s convert |
nself infra k8s convert |
โ Working |
nself k8s apply |
nself infra k8s apply |
โ Working |
nself k8s deploy |
nself infra k8s deploy |
โ Working |
nself k8s status |
nself infra k8s status |
โ Working |
nself k8s logs <pod> |
nself infra k8s logs <pod> |
โ Working |
nself k8s scale <dep> <n> |
nself infra k8s scale <dep> <n> |
โ Working |
nself k8s rollback |
nself infra k8s rollback |
โ Working |
nself k8s delete |
nself infra k8s delete |
โ Working |
nself k8s cluster <action> |
nself infra k8s cluster <action> |
โ Working |
nself k8s namespace <action> |
nself infra k8s namespace <action> |
โ Working |
| Old Command | New Command | Status |
|---|---|---|
nself helm init |
nself infra helm init |
โ Working |
nself helm generate |
nself infra helm generate |
โ Working |
nself helm install <release> |
nself infra helm install <release> |
โ Working |
nself helm upgrade <release> |
nself infra helm upgrade <release> |
โ Working |
nself helm rollback <release> |
nself infra helm rollback <release> |
โ Working |
nself helm uninstall <release> |
nself infra helm uninstall <release> |
โ Working |
nself helm list |
nself infra helm list |
โ Working |
nself helm status <release> |
nself infra helm status <release> |
โ Working |
nself helm values <release> |
nself infra helm values <release> |
โ Working |
nself helm template |
nself infra helm template |
โ Working |
nself helm package |
nself infra helm package |
โ Working |
nself helm repo <action> |
nself infra helm repo <action> |
โ Working |
Old commands still work but show deprecation warnings:
$ nself cloud list
โ DEPRECATION: 'nself cloud' is deprecated and will be removed in v1.0.0
Please use 'nself infra provider' instead.
https://docs.nself.org/migration/cloud-to-infra
# ... then shows provider list ...All old commands continue to work through v0.9.x releases with deprecation warnings. They will be removed in v1.0.0.
-
nself cloudโ redirects tonself infra provider -
nself providerโ still works directly (no redirect needed yet) -
nself k8sโ still works directly (no redirect needed yet) -
nself helmโ still works directly (no redirect needed yet)
- Better Organization: All infrastructure commands in one place
-
Clearer Hierarchy:
infraclearly indicates infrastructure management -
Easier Discovery:
nself infra --helpshows all 38 infrastructure subcommands - Consistent Patterns: Matches other consolidated commands (auth, service, config)
- Reduced Top-Level Clutter: Fewer commands at top level (79 โ 31)
The nself infra command consolidates 38 subcommands across three categories:
- Provider: 14 subcommands
- K8s: 11 subcommands
- Helm: 12 subcommands
- v0.9.5: Old commands work, no warnings
- v0.9.6: Old commands work, deprecation warnings shown
-
v1.0.0: Old commands removed, must use new
infrastructure
# List providers
nself infra provider list
# Initialize provider
nself infra provider init digitalocean
# Create server
nself infra provider server create --provider hetzner --size medium
# SSH to server
nself infra provider server ssh myserver
# Compare costs
nself infra provider cost compare# Initialize K8s
nself infra k8s init
# Convert compose to manifests
nself infra k8s convert
# Deploy
nself infra k8s deploy
# Check status
nself infra k8s status
# Scale deployment
nself infra k8s scale api --replicas 3# Initialize chart
nself infra helm init
# Generate from compose
nself infra helm generate
# Install release
nself infra helm install myapp
# Upgrade release
nself infra helm upgrade myapp
# View releases
nself infra helm listFor questions or issues with migration:
- GitHub Issues: https://github.com/nself-org/cli/issues
- Documentation: https://docs.nself.org/commands/infra
- Discord: https://discord.gg/nself