Okteto CLI¶
The Okteto CLI is a command-line interface that facilitates Remote Development Environments powered by Kubernetes^[400-devops-01-concepts-of-software-development-okteto.md]. It allows developers to build and run their applications directly on a Kubernetes cluster, streamlining the workflow for cloud-native development^[400-devops-01-concepts-of-software-development-okteto.md].
Overview and Installation¶
Okteto is designed to act as a Kubernetes development environment^[400-devops-01-concepts-of-software-development-okteto.md]. The CLI can be installed using package managers like Scoop^[400-devops-01-concepts-of-software-development-okteto.md].
Core Workflow¶
Setting up a development environment with the Okteto CLI typically involves two main steps^[400-devops-01-concepts-of-software-development-okteto.md]:
1. Deploying your application code.
2. Launching your development container using the okteto up command^[400-devops-01-concepts-of-software-development-okteto.md].
The configuration is managed via an okteto.yml manifest file^[400-devops-01-concepts-of-software-development-okteto.md]. To help users get started, the CLI provides an init command to automatically generate this manifest^[400-devops-01-concepts-of-software-development-okteto.md].
Key Commands¶
The CLI provides a variety of commands for managing contexts, namespaces, and development containers^[400-devops-01-concepts-of-software-development-okteto.md].
Context and Namespace Management¶
okteto context use <url>: Sets the default context (e.g.,https://cloud.okteto.com)^[400-devops-01-concepts-of-software-development-okteto.md].okteto kubeconfig: Downloads credentials for the selected Kubernetes cluster^[400-devops-01-concepts-of-software-development-okteto.md].okteto ns list: Lists available namespaces^[400-devops-01-concepts-of-software-development-okteto.md].okteto ns delete <name>: Deletes a specific namespace^[400-devops-01-concepts-of-software-development-okteto.md].
Development Lifecycle¶
okteto build: Builds and pushes images defined in the manifest^[400-devops-01-concepts-of-software-development-okteto.md].okteto up: Activates and launches the development container^[400-devops-01-concepts-of-software-development-okteto.md].okteto down: Deactivates the development container^[400-devops-01-concepts-of-software-development-okteto.md].okteto deploy: Executes commands defined in the 'deploy' section of the manifest^[400-devops-01-concepts-of-software-development-okteto.md].okteto destroy: Removes resources created by the deploy command^[400-devops-01-concepts-of-software-development-okteto.md].okteto status: Shows the status of the synchronization process^[400-devops-01-concepts-of-software-development-okteto.md].
Related Concepts¶
- Kubernetes
- Helm
- [[Software Development Workflow]]
Sources¶
^[400-devops-01-concepts-of-software-development-okteto.md]