Namespaces allow you to group and/or isolate different instances of the same federated graph.
development
, staging
, and production
. Every federated graph has a default
namespace to which all graph instances are published unless otherwise specified. To specify a namespace other than the default
, supply the --namespace
or -n
parameter when executing WunderGraph Cosmo CLI (wgc
) commands.
Create Graph in default
Namespace:
production
Namespace:
production
Namespace:
development
, staging
, and production.
namespaces
for your organization using the WunderGraph Cosmo CLI namespace create
command. To create namespaces
in your organization for production
, staging
, and development
environments, execute the commands below.
Create Production Namespace
namespaces
for your organization using the WunderGraph Cosmo CLI namespace list
command. By default, the list of namespaces in your organization will be displayed in a table. To format the output as JSON, supply the --raw
or -r
flag when executing the WunderGraph Cosmo CLI (wgc
) namespace
list
command. To persist the output (as JSON) to the file system, supply the --out
or -o
parameter when executing the WunderGraph Cosmo CLI (wgc
) namespace
list
command.
List Organization Namespaces
wgc
) namespace
rename
command.
Rename Existing Namespace
namespace
for your organization using the WunderGraph Cosmo CLI namespace delete
command. Note that deleting a namespace will delete all resources within it; use caution—only administrators and the creator of a namespace can perform this action. Upon executing the command, you will be prompted for confirmation that you wish to proceed. To force the execution without confirmation, supply the --force
or -f
flag when executing WunderGraph Cosmo CLI (wgc
) namespace
delete
command.
Delete Namespace (Requires Confirmation)