Juju documentation

Juju Command reference

You can get a list of the currently used commands by entering juju help commands from the commandline. The currently understood commands are listed here, with some examples.

  • add-relation add a relation between two services
  • add-unit add a service unit
  • bootstrap start up an environment from scratch
  • debug-log display the consolidated log file
  • deploy deploy a new service
  • destroy-environment terminate all machines and other associated resources for an environment
  • destroy-machine destroy machines
  • destroy-relation destroy a relation between two services
  • destroy-service destroy a service
  • destroy-unit destroy service units
  • expose expose a service
  • generate-config alias for init
  • get get service config options
  • get-constraints view constraints
  • get-env alias for get-environment
  • get-environment view environment values
  • help show help on a command or other topic
  • init generate boilerplate configuration for juju environments
  • publish publish charm to the store
  • remove-relation alias for destroy-relation
  • remove-unit alias for destroy-unit
  • resolved marks unit errors resolved
  • scp launch a scp command to copy files to/from remote machine(s)
  • set set service config options
  • set-constraints replace constraints
  • set-env alias for set-environment
  • set-environment replace environment values
  • ssh launch an ssh shell on a given unit or machine
  • stat alias for status
  • status output status information about an environment
  • sync-tools copy tools from the official bucket into a local environment
  • terminate-machine alias for destroy-machine
  • unexpose unexpose a service
  • unset set service config options back to their default
  • upgrade-charm upgrade a service's charm
  • upgrade-juju upgrade the tools in a juju environment
  • version print the current version