Documentation
¶
Overview ¶
Command levelrail-cli is a thin, scriptable HTTP client for the control plane's versioned API (internal/api, mounted at /api/v1), the first command-line surface this project has (cmd/levelrail is the control plane server, cmd/levelrail-agent is the node agent, neither is meant to be typed at by an operator).
It is designed the way this platform's own API is meant to be: "AI-ready" from the start. Concretely, per the competitive research direction this command was built against (flyctl launch, railway up, vercel):
- Every required input has a flag. Supplying all of them skips every prompt, so a missing required flag is reported as an immediate, actionable error rather than a hang on stdin: safe to drive from CI or an agent with no TTY at all. "apps create --interactive" is the one deliberate exception, a step-by-step wizard for a human at a real terminal (see apps_create_interactive.go).
- --json switches every command's stdout to a single parseable JSON value (the result, or {"error": "..."} on failure) and nothing else; diagnostics always go to stderr, in both modes. --output json|table|text is the more general form --json is shorthand for (--json means --output json); --query takes a JMESPath expression and filters the result before it's printed, in any of the three formats, e.g. `apps list --query "[?node_id=='node-1'].name"`.
- Exit codes are real and distinct (see output.go's exitOK/ exitUsage/exitValidation/exitNetwork/exitAPIError), not just 0/1, so a caller can branch on *why* a call failed.
No product name is hardcoded anywhere in this command: "prog" (the string every usage message is built from) always comes from filepath.Base(os.Args[0]), matching this project's standing rule that a CLI's command name comes from os.Args[0], not a literal, and APP_API_TOKEN/APP_API_URL follow this project's existing APP_* env-var-prefix convention (see internal/brand's own envPrefix), not a name-specific one.
Source Files
¶
- ai.go
- ai_chat.go
- ai_control.go
- ai_sessions.go
- alerts.go
- alerts_maintenance.go
- alerts_runner.go
- aliases.go
- api_docs.go
- app_volume_backups.go
- app_volume_backups_delete.go
- app_volume_backups_download.go
- app_volume_backups_list.go
- app_volume_backups_restore.go
- app_volume_backups_restore_as_new.go
- app_volume_backups_schedule.go
- app_volume_backups_trigger.go
- app_volume_backups_verifications.go
- app_volume_backups_verify.go
- apply.go
- apply_input.go
- apply_render.go
- apply_vars.go
- apps.go
- apps_alerts.go
- apps_alerts_noise.go
- apps_alerts_slo.go
- apps_apply.go
- apps_auto_rollback.go
- apps_auto_rollback_slo_burn.go
- apps_auto_update.go
- apps_branch_env.go
- apps_build_cache.go
- apps_builds.go
- apps_bulk.go
- apps_canary.go
- apps_clone.go
- apps_connections.go
- apps_cost_estimate.go
- apps_create.go
- apps_create_interactive.go
- apps_create_secrets.go
- apps_database.go
- apps_delete.go
- apps_deploy.go
- apps_deploy_compose.go
- apps_deploy_notify_targets.go
- apps_deploy_safety.go
- apps_deploy_source.go
- apps_deploy_spec.go
- apps_deploys.go
- apps_deploys_control.go
- apps_deploys_failed.go
- apps_deploys_gate.go
- apps_deploys_show.go
- apps_deploys_steps.go
- apps_deploys_wait.go
- apps_diagnose.go
- apps_domains.go
- apps_domains_env.go
- apps_egress.go
- apps_env.go
- apps_env_diff.go
- apps_environments.go
- apps_environments_clone.go
- apps_exec.go
- apps_exec_access.go
- apps_exec_interactive.go
- apps_freeze.go
- apps_get.go
- apps_git_source.go
- apps_git_source_build.go
- apps_git_source_settings.go
- apps_group.go
- apps_health.go
- apps_health_score.go
- apps_hook_runs.go
- apps_images.go
- apps_insights.go
- apps_integrations.go
- apps_list.go
- apps_log_drain.go
- apps_logs.go
- apps_metrics.go
- apps_moves.go
- apps_network.go
- apps_organizations.go
- apps_overview.go
- apps_preflight.go
- apps_preview_env.go
- apps_previews.go
- apps_previews_policy.go
- apps_previews_settings.go
- apps_projects.go
- apps_projects_topology.go
- apps_promote.go
- apps_requests.go
- apps_resource_recommendation.go
- apps_resource_usage.go
- apps_restart.go
- apps_rollback.go
- apps_save_as_template.go
- apps_scale.go
- apps_schedule.go
- apps_scheduled_tasks.go
- apps_secrets.go
- apps_set_environment.go
- apps_set_node.go
- apps_set_project.go
- apps_sleep.go
- apps_start.go
- apps_status.go
- apps_stop.go
- apps_storage.go
- apps_streams.go
- apps_supply_chain.go
- apps_tag.go
- apps_timeline.go
- apps_validate.go
- apps_vault_env.go
- apps_volumes.go
- apps_wait.go
- apps_webhook_deliveries.go
- attention.go
- audit_log.go
- audit_purge.go
- auth.go
- auth_2fa.go
- auth_2fa_disable.go
- auth_2fa_enable.go
- auth_2fa_recovery_codes.go
- auth_2fa_setup.go
- auth_2fa_status.go
- auth_engine.go
- auth_login.go
- auth_login_device.go
- auth_session_link.go
- auth_sign_in.go
- auth_whoami.go
- authclient.go
- authclient_2fa.go
- authprompt.go
- backup_targets.go
- backup_targets_create.go
- backup_targets_delete.go
- backup_targets_get.go
- backup_targets_list.go
- backup_targets_testcmd.go
- backup_targets_update.go
- backups.go
- backups_delete.go
- backups_download.go
- backups_list.go
- backups_list_all.go
- backups_protection.go
- backups_restore.go
- backups_restore_as_new.go
- backups_schedule.go
- backups_trigger.go
- backups_verifications.go
- backups_verify.go
- bitbucket_app.go
- build_cmd.go
- caprover_client.go
- caprover_map.go
- cascade_delete.go
- changelog.go
- channels.go
- channels_client.go
- channels_create.go
- channels_delete.go
- channels_deliveries.go
- channels_list.go
- channels_testcmd.go
- channels_update.go
- cli_call.go
- client.go
- clone_restores_list.go
- cloudflare_tunnel.go
- completion.go
- completion_bash.go
- completion_fish.go
- completion_zsh.go
- compose.go
- compose_actions.go
- config.go
- containers.go
- containers_orphans.go
- control_plane_backups.go
- control_plane_dr.go
- control_plane_dr_keys.go
- coolify_apply.go
- coolify_client.go
- coolify_files.go
- coolify_map.go
- coolify_report.go
- coolify_yaml.go
- databases.go
- databases_access.go
- databases_access_common.go
- databases_create.go
- databases_create_interactive.go
- databases_delete.go
- databases_external.go
- databases_get.go
- databases_list.go
- databases_logs.go
- databases_major_upgrade.go
- databases_metrics.go
- databases_network.go
- databases_public_access.go
- databases_query.go
- databases_resource_recommendation.go
- databases_set_node.go
- databases_set_project.go
- databases_set_resources.go
- databases_set_version.go
- databases_slow_queries.go
- databases_start.go
- databases_status.go
- databases_stop.go
- databases_upgrades.go
- databases_users.go
- debug_flag.go
- deploy_approvals.go
- deployments.go
- diagnosis_print.go
- dns.go
- dns_check.go
- dns_records.go
- docker_guard.go
- doctor.go
- dokploy_client.go
- dokploy_map.go
- domains.go
- domains_basic_auth.go
- domains_certificates.go
- domains_check.go
- domains_cloudflare_dns.go
- domains_connectivity.go
- domains_dns_records.go
- domains_doctor.go
- domains_error_pages.go
- domains_go_live.go
- domains_list.go
- domains_maintenance.go
- domains_policies.go
- domains_policies_forwarders.go
- domains_policies_geo_cache.go
- domains_policies_headers.go
- domains_policies_redirects.go
- domains_redirect.go
- domains_route53_dns.go
- domains_search_visibility.go
- domains_tls_cert.go
- domains_waf.go
- env_dotenv.go
- environments.go
- errcodes.go
- experimental_gate.go
- export_destinations.go
- firewall.go
- firewall_allow.go
- firewall_delete.go
- firewall_exposure.go
- firewall_host.go
- firewall_list.go
- flags.go
- flagutil.go
- functions.go
- git_providers.go
- gitdetect.go
- gitea_app.go
- github_app.go
- github_app_register.go
- gitlab_app.go
- iam.go
- iam_access.go
- iam_policies.go
- iam_templates.go
- import.go
- import_apps.go
- import_apps_images.go
- import_cutover.go
- import_platform.go
- init.go
- invites.go
- invites_create.go
- invites_list.go
- invites_revoke.go
- jobs.go
- lb.go
- lb_flags.go
- lb_history.go
- lb_list.go
- list_command.go
- logs_archive.go
- logs_query.go
- main.go
- metrics_cmd.go
- migrate.go
- migrate_caprover.go
- migrate_coolify.go
- migrate_data.go
- migrate_dokploy.go
- migrate_server.go
- models.go
- models_cache.go
- models_deploy.go
- models_fit.go
- models_keys.go
- models_list.go
- models_logs.go
- models_manage.go
- models_metrics.go
- models_preflight.go
- models_residency.go
- models_swap_group.go
- move_env.go
- network_shares.go
- network_shares_create.go
- network_shares_delete.go
- network_shares_get.go
- network_shares_list.go
- network_shares_testcmd.go
- network_shares_update.go
- nodes.go
- nodes_capacity_forecast.go
- nodes_cert.go
- nodes_cordon.go
- nodes_delete.go
- nodes_drain.go
- nodes_events.go
- nodes_get.go
- nodes_gpu.go
- nodes_health.go
- nodes_join_token.go
- nodes_list.go
- nodes_mesh.go
- nodes_metrics.go
- nodes_multinode.go
- nodes_patch_status.go
- nodes_providers.go
- nodes_provision.go
- nodes_provisions.go
- nodes_resource_usage.go
- nodes_ssh_provision.go
- nodes_ssh_provisions.go
- nodes_topology.go
- nodes_traffic.go
- nodes_workloads.go
- observability.go
- output.go
- pipelines.go
- pipelines_all.go
- pipelines_oidc.go
- pipelines_sync.go
- pitr.go
- pitr_base_backups.go
- pitr_disable.go
- pitr_enable.go
- pitr_restore.go
- pitr_status.go
- preview.go
- profile.go
- protected_environment_confirm.go
- provider_http.go
- proxy.go
- proxy_integration.go
- push_subscriptions.go
- readiness.go
- registry.go
- registry_credentials.go
- registry_credentials_create.go
- registry_credentials_delete.go
- registry_credentials_get.go
- registry_credentials_list.go
- registry_credentials_repositories.go
- registry_credentials_tags.go
- registry_credentials_testcmd.go
- registry_credentials_update.go
- restores_list.go
- roles.go
- scope_flags.go
- secrets.go
- secrets_binding.go
- security.go
- settings.go
- settings_ai_assistant.go
- settings_dashboard_url.go
- settings_deploy_freeze.go
- settings_email.go
- settings_ingress.go
- settings_ingress_https.go
- settings_oauth.go
- settings_updates.go
- shared_env.go
- static_sites.go
- status.go
- status_page.go
- storage.go
- system_prune.go
- tags.go
- tags_apps.go
- tags_create.go
- tags_delete.go
- tags_list.go
- teams.go
- teams_members.go
- templates.go
- templates_install.go
- terminal_resize_unix.go
- timerange.go
- tokens.go
- tokens_create.go
- tokens_list.go
- tokens_revoke.go
- upgrade_apply.go
- upgrade_cmd.go
- upgrade_history.go
- upgrade_releases.go
- users.go
- users_access.go
- users_create.go
- users_delete.go
- users_list.go
- users_roles.go
- users_set_abilities.go
- vault.go
- version.go
- volumes_orphaned.go
- volumes_orphaned_cleanup.go