Sha256: 658aed6eb88b43c9bff9de3437386e224ab19d93c7c5bcd13f05f303e2bd9ebb

Contents?: true

Size: 1.47 KB

Versions: 17

Compression:

Stored size: 1.47 KB

Contents

---
title: Ufo Current
---

## service

There's a handy way to shorten ufo commands by setting the current service.  Example:

    ufo ship demo-web # normal usage
    ufo current --service demo-web
    ufo ship # no longer have to type: demo-web

To view the current settings run `ufo current` with no options.

    $ ufo current
    Current env_extra: 1
    Current service: demo-web

Setting the current service helps shorten other commands also:

    ufo cancel
    ufo deploy
    ufo destroy
    ufo ps
    ufo releases
    ufo resources
    ufo rollback VERSION
    ufo scale COUNT
    ufo ship

## UFO_ENV_EXTRA

The UFO_ENV_EXTRA env variable allows you create multiple environments with of the same services quickly.  More info about is is detailed at [ufo-env-extra]({% link _docs/ufo-env-extra.md %}).  You can also set a current UFO_ENV_EXTRA with the `--env-extra` option.

    ufo current --env-extra 1

## services

The `ufo ships` commands builds one Docker image and deploys them to multiple ECS services, so it usually takes a list of services like so:

    ufo ships demo-web demo-worker demo-clock

This can be shorten with with current also.

    ufo current --services demo-web demo-worker demo-clock
    ufo ships

<a id="prev" class="btn btn-basic" href="{% link _docs/ufo-env-extra.md %}">Back</a>
<a id="next" class="btn btn-primary" href="{% link _docs/load-balancer.md %}">Next Step</a>
<p class="keyboard-tip">Pro tip: Use the <- and -> arrow keys to move back and forward.</p>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ufo-4.3.1 docs/_docs/ufo-current.md
ufo-4.3.0 docs/_docs/ufo-current.md
ufo-4.2.0 docs/_docs/ufo-current.md
ufo-4.1.10 docs/_docs/ufo-current.md
ufo-4.1.9 docs/_docs/ufo-current.md
ufo-4.1.8 docs/_docs/ufo-current.md
ufo-4.1.7 docs/_docs/ufo-current.md
ufo-4.1.6 docs/_docs/ufo-current.md
ufo-4.1.5 docs/_docs/ufo-current.md
ufo-4.1.4 docs/_docs/ufo-current.md
ufo-4.1.2 docs/_docs/ufo-current.md
ufo-4.1.1 docs/_docs/ufo-current.md
ufo-4.1.0 docs/_docs/ufo-current.md
ufo-4.0.3 docs/_docs/ufo-current.md
ufo-4.0.2 docs/_docs/ufo-current.md
ufo-4.0.1 docs/_docs/ufo-current.md
ufo-4.0.0 docs/_docs/ufo-current.md