Pulsar Academy

Pulsar Namespaces CLI Tutorial

Learn how to manage Namespaces using the Pulsar Admin CLI.

Introduction

Namespaces in Pulsar are used as a logical grouping of topics that allows for organizational separation or applying policies, such as TTL or retention, to all topics within that namespace. Before you run the commands below, make sure you have started Pulsar.

How to create a Pulsar namespace?

To create a new namespace in Pulsar, we need to provide the mandatory parameters:

  • Tenant name & Namespace name
./bin/pulsar-admin namespaces create my-tenant/my-namespace

How to list Pulsar namespaces?

To list the available namespaces under a tenant in Pulsar, we need to provide the mandatory parameters:

  • Tenant name
./bin/pulsar-admin namespaces list my-tenant

How to delete a Pulsar namespace?

To delete namespace in Pulsar, we need to provide the mandatory parameters:

  • Tenant name & Namespace name
./bin/pulsar-admin namespaces delete my-tenant/my-namespace

Table of Contents

Let's stay in touch

Get notified of new developments or blogposts.
Checkmark icon
You've joined the mailing list!
Oops! Something went wrong while submitting the form.