Engineering Blog

                            

Command Your Cloud: Ultimate Project Management with ZOCLI on 01Cloud

Introduction

Managing projects efficiently is crucial for developers and organizations. 01Cloud offers a powerful command-line interface, zocli, which enables seamless project management without navigating complex UI settings. This blog will guide you through the essential project commands in zocli, categorized into:

  • Basic Commands: Retrieve, modify, and manage project information.
  • Context Commands: Set and manage default projects.
  • Advanced Commands: Handle permissions and project-specific configurations.

Let’s dive into how these commands can optimize your workflow.

1. Basic Commands: Quick and Efficient Project Management

Get Project Information

Need details about a project? Use the following command to fetch relevant information:

Usage:

$ zocli project get [<id>|<name>]

Examples:
$ zocli project get 2454
$ zocli project get “demo project”
$ zocli project get  # Fetches all accessible projects

Flags:

  • –help | -h: Displays help menu.
  • –id | -i <id>: Fetches project details using ID.
  • –name | -n <name>: Fetches project details using name.
  • -o [json | yaml]: Outputs data in JSON or YAML format.
  • -w | –wide: Displays additional project details.

View Project Overview

Want an overview of resource usage? The following command provides insights into your project’s resource consumption:

Usage:

$ zocli project overview [<id>|<name>]

Example:
$ zocli project overview –id 1
$ zocli project overview –name “zocli docs”

Enable a Project

Reactivating a deactivated project is straightforward:

Usage:

$ zocli project enable [<projectID>|<projectName>]

Example:
$ zocli project enable –id 1
$ zocli project enable –name “zocli docs”

Disable a Project

Temporarily deactivate an active project:

Usage:

$ zocli project disable [<projectID>|<projectName>]

Example:
$ zocli project disable –id 1
$ zocli project disable –name “zocli docs”

Rename a Project

Change the name of your project with ease:

Usage:

$ zocli project rename [–id <id>] [–name <new_name>]

Example:
$ zocli project rename –id 1 –name “New Project Name”

Delete a Project

Permanently remove a project when it’s no longer needed:

Usage:

$ zocli project delete [<projectID>|<projectName>]

Example:
$ zocli project delete –id 1
$ zocli project delete –name “zocli docs”

2. Context Commands: Managing Project Context

Get Default Project

Retrieve the current default project with:

$ zocli project getdefault

Set Default Project

Set a project as the default for seamless workflow:

Usage:

$ zocli project use [<projectId>]

Example:
$ zocli project use –id 2454

Remove Default Project

Clear the default project setting when switching contexts:

Usage:

$ zocli project removedefault

3. Advanced Commands: Fine-Tuning Project Access

Manage Permissions

Control who can access your project by listing or modifying user permissions.

List Permissions

Retrieve a list of permissions associated with a project:

$ zocli project settings permission list [<id>|<name>]

Example:
$ zocli project settings permission list –id 1
$ zocli project settings permission list –name test -o json

Flags:

  • –help | -h: Display help.
  • –id | -i <id>: Fetch permissions using project ID.
  • –name | -n <name>: Fetch permissions using project name.
  • -o [json | yaml]: Output permissions data in the specified format.

Conclusion

01Cloud’s zocli empowers developers by streamlining project management via the command line. Whether you’re managing multiple projects, setting defaults, or controlling access, these commands enable an efficient, automated workflow. Leverage zocli today to optimize your 01Cloud project management!

Join the 01Cloud Community!

Do you need guidance, have questions, or want to collaborate with fellow cloud professionals? Join the 01Cloud Community on Discord and engage with developers, DevOps engineers, and cloud enthusiasts. Share insights, discuss best practices, and get expert advice.

Embrace the power of automation and efficiency with ZOCLI. Take control of your 01Cloud environment today!

Follow us for more Updates

Previous Post